/* Summit Base - Customer Web App Stylesheet (Enhanced Design) */

/* Custom smooth scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for category pills navigation */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Category Pill navigation styling */
.category-nav-wrap {
  padding: 0.65rem 1rem 0.75rem;
  background: #ffffff;
}
.category-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}
.category-scroll .cat-pill {
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.category-scroll .cat-pill:hover {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
  transform: translateY(-1px);
}
.category-scroll .cat-pill.active-pill {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}

/* Bounce effect on button tap */
button:active {
  transform: scale(0.97);
}

/* Modal animation utilities */
.modal-open {
  overflow: hidden;
}

/* Product Section Structure */
.product-sections {
  padding-top: 0.35rem;
  padding-bottom: 1.5rem;
}
.product-type-section + .product-type-section {
  margin-top: 1.75rem;
}
.product-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.2rem 0 0.65rem;
}
.product-section-title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.product-section-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  border: 1px solid #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex: 0 0 auto;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}
.product-section-title h2 {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.25;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.015em;
}
.product-section-count {
  font-size: 0.65rem;
  font-weight: 800;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  white-space: nowrap;
}
.product-section-divider {
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, #10b981 0%, #a7f3d0 35%, #f1f5f9 100%);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.product-grid-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (max-width: 380px) {
  .category-nav-wrap { padding-left: 0.75rem; padding-right: 0.75rem; }
  .product-sections { padding-left: 0.75rem; padding-right: 0.75rem; }
  .product-grid-inner { gap: 0.6rem; }
  .product-section-title h2 { font-size: 0.88rem; }
}

/* Product Card - Modern Enhanced 2-Column Card */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.product-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.15rem;
  padding: 0.65rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #a7f3d0;
  box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.08), 0 0 0 1px #34d399;
}
.product-card-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 0.88rem;
  background: #f8fafc;
  cursor: pointer;
  border: 1px solid #f1f5f9;
}
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card-image {
  transform: scale(1.06);
}
.product-card-tag {
  position: absolute;
  left: 0.45rem;
  top: 0.45rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.product-card-tag.tag-buy {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}
.product-card.product-card-buy:hover {
  border-color: #fcd34d;
  box-shadow: 0 10px 24px -4px rgba(217, 119, 6, 0.12), 0 0 0 1px #f59e0b;
}
.product-card-body {
  padding: 0.65rem 0.15rem 0.1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.product-card-name {
  min-height: 2.5em;
  font-size: 0.84rem;
  line-height: 1.3;
  font-weight: 800;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s;
}
.product-card-name:hover {
  color: #059669;
}
.product-card-price {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.01em;
}
.product-card-price span {
  font-size: 0.62rem;
  font-weight: 600;
  color: #94a3b8;
}
.product-card-actions {
  margin-top: 0.65rem;
}
.product-card-add, .product-card-stepper {
  width: 100%;
  min-height: 2.15rem;
  border-radius: 0.75rem;
  font-size: 0.72rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: all 0.18s;
}
.product-card-add {
  background: #ffffff;
  border: 1.5px solid #10b981;
  color: #059669;
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.08);
}
.product-card-add.btn-add-buy {
  border-color: #f59e0b;
  color: #b45309;
  background: #fffbeb;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.12);
}
.product-card-add.btn-add-buy:hover {
  background: #f59e0b;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}
.product-card-stepper.stepper-buy {
  background: #fffbeb;
  border-color: #fde68a;
}
.product-card-stepper.stepper-buy .plus {
  background: #f59e0b;
}
.product-card-stepper.stepper-buy .plus:hover {
  background: #d97706;
}
.product-card-stepper.stepper-buy .count {
  color: #92400e;
}
.product-card-stepper {
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  padding: 0.15rem;
}
.product-card-stepper button {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  transition: all 0.15s;
}
.product-card-stepper .minus {
  background: #ffffff;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.product-card-stepper .minus:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}
.product-card-stepper .plus {
  background: #10b981;
  color: #ffffff;
}
.product-card-stepper .plus:hover {
  background: #059669;
}
.product-card-stepper .count {
  min-width: 1.6rem;
  text-align: center;
  color: #047857;
  font-size: 0.8rem;
  font-weight: 900;
}

@media (max-width: 380px) {
  .product-grid { gap: 0.6rem; }
  .product-card { padding: 0.55rem; }
  .product-card-name { font-size: 0.78rem; }
  .product-card-price { font-size: 0.8rem; }
}

/* Improved rental date & duration selector */
.rental-date-panel {
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 1.25rem;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.05);
}
.rental-date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.rental-date-eyebrow {
  margin: 0;
  color: #059669;
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.rental-date-title {
  margin: 0.15rem 0 0;
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 900;
}
.rental-duration-bubble {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  padding: 0.42rem 0.65rem;
  border-radius: 0.75rem;
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  color: #047857;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.1);
}
.date-card-grid {
  position: relative;
  display: grid;
  gap: 0.65rem;
}
.date-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  overflow: hidden;
  transition: 0.18s ease;
}
.date-card:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.date-card-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}
.date-card-icon.return {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}
.date-card-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  flex: 1;
}
.date-card-label {
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}
.date-card-hint {
  font-size: 0.58rem;
  color: #94a3b8;
}
.date-arrow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
  pointer-events: none;
}
.quick-duration-wrap {
  margin-top: 0.85rem;
  padding-top: 0.8rem;
  border-top: 1px dashed #cbd5e1;
}
.quick-duration-label {
  font-size: 0.64rem;
  font-weight: 900;
  color: #475569;
  margin-bottom: 0.5rem;
}
.quick-duration-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
}
.duration-preset, .duration-custom {
  width: 100%;
  border-radius: 0.75rem;
  font-size: 0.68rem;
  font-weight: 900;
  transition: 0.16s ease;
  cursor: pointer;
}
.duration-preset {
  min-height: 2.3rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.duration-preset:hover {
  border-color: #10b981;
  background: #ecfdf5;
  color: #047857;
}
.duration-preset.active {
  background: #10b981;
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}
.duration-custom {
  margin-top: 0.5rem;
  min-height: 2.15rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
}
.duration-custom:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.duration-custom.active {
  background: #eff6ff;
  border-color: #93c5fd;
  color: #1d4ed8;
}
.duration-summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.8rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.95rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
.duration-summary-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.duration-summary-label {
  display: block;
  font-size: 0.58rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 900;
}
.duration-summary strong {
  display: block;
  margin-top: 0.08rem;
  font-size: 0.72rem;
  color: #0f172a;
}

@media (max-width: 380px) {
  .rental-date-panel { padding: 0.75rem; }
  .rental-date-title { font-size: 0.76rem; }
  .quick-duration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.date-input-row {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.date-input-row input {
  width: 100%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.45rem 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  color: #0f172a;
  outline: none;
  min-width: 0;
  transition: all 0.15s;
}
.date-input-row input:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.payment-method-panel {
  margin-top: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  padding: 0.9rem;
  background: #ffffff;
}
.payment-manual-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 0.6rem;
  font-weight: 900;
}
.payment-method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.payment-option {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 1rem;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.18s;
}
.payment-option:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}
.payment-option.active {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}
.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-option-icon {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #047857;
  border: 1.5px solid #a7f3d0;
  flex: 0 0 2.15rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.payment-option-icon.qris {
  color: #2563eb;
  border-color: #bfdbfe;
}
.payment-option-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.payment-option-copy strong {
  font-size: 0.76rem;
  font-weight: 900;
  color: #0f172a;
}
.payment-option-copy small {
  margin-top: 0.08rem;
  font-size: 0.6rem;
  color: #64748b;
  line-height: 1.35;
}
.qris-payment-box {
  margin-top: 0.85rem;
  border: 1.5px dashed #6ee7b7;
  background: #f0fdf4;
  border-radius: 1.15rem;
  padding: 0.95rem;
}
.qris-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}
.qris-secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 0.6rem;
  font-weight: 900;
}
.qris-preview-wrap {
  display: flex;
  justify-content: center;
  padding: 0.85rem 0 0.65rem;
}
.qris-preview {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid #d1fae5;
  padding: 0.45rem;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}
.qris-placeholder {
  width: 220px;
  min-height: 160px;
  padding: 1.35rem;
  border: 1px dashed #a7f3d0;
  border-radius: 1rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  color: #047857;
}
.qris-placeholder strong {
  font-size: 0.76rem;
  font-weight: 900;
}
.qris-placeholder span {
  max-width: 180px;
  font-size: 0.6rem;
  color: #64748b;
  line-height: 1.45;
}
.qris-instruction {
  font-size: 0.64rem;
  font-weight: 600;
  line-height: 1.45;
  color: #475569;
  text-align: center;
}
.payment-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.85rem;
  font-size: 0.64rem;
  line-height: 1.45;
}
.payment-note.cash {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #3b82f6;
}

@media (max-width: 520px) {
  .payment-method-grid { grid-template-columns: 1fr; }
  .date-arrow { transform: rotate(90deg); }
  .qris-preview, .qris-placeholder { width: 190px; }
}

/* Floating cart bar overlay protection */
body.modal-open #floating-cart-bar {
  display: none !important;
}

/* Checkout drawer styling */
#checkout-modal {
  padding: 0;
}
#checkout-modal > div {
  width: min(100%, 28rem);
  max-height: 92vh;
  min-height: 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
}
#checkout-modal > div > .overflow-y-auto {
  min-height: 0;
  overscroll-behavior: contain;
  padding-bottom: 1rem;
}
#checkout-modal > div > .p-4.border-t {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  #checkout-modal {
    padding: 1rem;
    align-items: center;
  }
  #checkout-modal > div {
    max-height: min(92vh, 780px);
    border-radius: 1.75rem;
  }
}

/* AutoGoPay (Sphixray) Dynamic QRIS Modal Styling */
#autogopay-modal {
  transition: opacity 0.25s ease;
}
#autogopay-modal > div {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
}
#autogopay-modal.hidden {
  display: none !important;
}
#autogopay-qr-image {
  animation: qrFadeIn 0.35s ease forwards;
}
@keyframes qrFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================ */
/* INTERACTIVE GUARANTEE SELECTOR & MODAL ANIMATIONS            */
/* ============================================================ */
@keyframes modalScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(14px);
  }
  65% {
    transform: scale(1.015) translateY(-2px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#checkout-modal > div,
#item-detail-modal > div,
#info-modal > div,
#autogopay-modal > div {
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.guarantee-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
  user-select: none;
}
.guarantee-card:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
}
.guarantee-card:active {
  transform: scale(0.97);
}
.guarantee-card.active {
  background: #ecfdf5;
  border-color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18);
  transform: translateY(-1px);
}
.guarantee-card-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.guarantee-card.active .guarantee-card-icon {
  transform: scale(1.1);
}
.guarantee-card-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.guarantee-name {
  font-size: 0.76rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
}
.guarantee-card.active .guarantee-name {
  color: #047857;
}
.guarantee-desc {
  font-size: 0.63rem;
  color: #64748b;
  margin-top: 0.1rem;
  line-height: 1.2;
}
.guarantee-card.active .guarantee-desc {
  color: #065f46;
}
.guarantee-check {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s ease;
  flex-shrink: 0;
}
.guarantee-card.active .guarantee-check {
  background: #10b981;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.45);
  transform: scale(1.08);
}

/* Animated App Toasts & Dialogs (Replacing Native Browser Alerts/Confirms) */
@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -15px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.app-toast-container {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: 90vw;
  width: max-content;
}

.app-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  animation: toastSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  backdrop-filter: blur(8px);
}

.app-toast.info {
  background: rgba(15, 23, 42, 0.94);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.app-toast.success {
  background: rgba(5, 150, 105, 0.96);
  color: #ffffff;
  border: 1px solid rgba(167, 243, 208, 0.3);
}

.app-toast.error,
.app-toast.warning {
  background: rgba(225, 29, 72, 0.95);
  color: #ffffff;
  border: 1px solid rgba(254, 205, 211, 0.3);
}

.customer-dialog-box {
  animation: modalScaleIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile-First Customer App Touch & Safe-Area Optimizations */
@media (max-width: 640px) {
  #floating-cart-bar {
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  }
  
  button, a, input, select, textarea {
    touch-action: manipulation;
  }

  /* Smooth scrolling in modal sheets */
  .overflow-y-auto {
    -webkit-overflow-scrolling: touch;
  }
}



