/* TARWIQA shopping cart */
:root { --tw-yellow: #ffbe33; --tw-dark: #222831; }

.tw-cart-fab {
  position: fixed; bottom: 20px; right: 20px; z-index: 1040;
  width: 58px; height: 58px; border-radius: 50%; border: 0;
  background: var(--tw-yellow); color: var(--tw-dark);
  box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tw-cart-fab.bump { animation: tw-bump .35s ease; }
@keyframes tw-bump { 50% { transform: scale(1.18); } }
.tw-badge {
  position: absolute; top: -4px; left: -4px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 11px; background: #d9362b; color: #fff; font-size: 13px; font-weight: 700;
  line-height: 22px; text-align: center;
}
.tw-badge[hidden] { display: none; }

.tw-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1050;
  opacity: 0; visibility: hidden; transition: opacity .25s;
}
.tw-overlay.open { opacity: 1; visibility: visible; }

.tw-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1060;
  width: min(100%, 390px); background: #fff; color: var(--tw-dark);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s ease;
  box-shadow: -4px 0 20px rgba(0,0,0,.3);
}
.tw-drawer.open { transform: translateX(0); }

.tw-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; background: var(--tw-dark); color: #fff;
}
.tw-head h3 { margin: 0; font-size: 20px; }
.tw-close { background: none; border: 0; color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }

.tw-items { flex: 1; overflow-y: auto; padding: 10px 14px; }
.tw-empty { text-align: center; color: #777; margin-top: 40px; }

.tw-row { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid #eee; }
.tw-row img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.tw-info { flex: 1; min-width: 0; }
.tw-name { font-weight: 700; font-size: 14px; line-height: 1.3; }
.tw-price { font-size: 12px; color: #777; margin: 2px 0 6px; }
.tw-qty { display: inline-flex; align-items: center; gap: 10px; }
.tw-qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--tw-dark);
  background: #fff; cursor: pointer; font-size: 16px; line-height: 1; padding: 0;
}
.tw-qty button:hover { background: var(--tw-yellow); }
.tw-line { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 700; font-size: 14px; white-space: nowrap; }
.tw-rm { background: none; border: 0; cursor: pointer; font-size: 16px; padding: 0; }

.tw-foot { padding: 12px 16px 16px; border-top: 1px solid #eee; background: #fafafa; }
.tw-notes { width: 100%; border: 1px solid #ccc; border-radius: 8px; padding: 8px; font-size: 14px; resize: none; }
.tw-total { display: flex; justify-content: space-between; font-size: 18px; margin: 10px 0; }
.tw-btn {
  display: block; text-align: center; padding: 11px; border-radius: 8px; margin-bottom: 8px;
  font-weight: 700; text-decoration: none !important; color: #fff !important;
}
.tw-wa { background: #25d366; }
.tw-call { background: var(--tw-dark); }
.tw-btn.disabled { opacity: .45; pointer-events: none; }
.tw-clear { width: 100%; background: none; border: 0; color: #a33; cursor: pointer; font-size: 13px; }

.tw-toast {
  position: fixed; bottom: 90px; left: 50%; transform: translate(-50%, 20px);
  background: var(--tw-dark); color: #fff; padding: 9px 18px; border-radius: 22px;
  z-index: 1070; opacity: 0; pointer-events: none; transition: all .25s; font-size: 14px;
}
.tw-toast.show { opacity: 1; transform: translate(-50%, 0); }
