/* ==========================================================
   Boostpapa Website Checkout — Premium Popup CSS
   Fully self-contained; uses !important to override themes
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ── Hard reset inside popup ──────────────────────────────── */
#ttco-popup,
#ttco-popup * {
  box-sizing: border-box !important;
  font-family: 'Hind Siliguri', 'Inter', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* ── Full-viewport overlay ────────────────────────────────── */
#ttco-popup {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 2147483647 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  margin: 0 !important;
}

#ttco-popup.is-open {
  display: flex !important;
}

/* ── Backdrop ─────────────────────────────────────────────── */
#ttco-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(10, 18, 35, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  animation: ttco-fade-in 0.25s ease forwards;
}

/* ── Modal box ────────────────────────────────────────────── */
#ttco-modal {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  max-width: 500px !important;
  max-height: 92vh !important;
  background: #ffffff !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow:
    0 32px 72px rgba(0,0,0,0.24),
    0 8px 24px rgba(0,0,0,0.12) !important;
  animation: ttco-slide-up 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes ttco-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ttco-slide-up {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* ── HEADER ───────────────────────────────────────────────── */
#ttco-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 16px 20px !important;
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%) !important;
  flex-shrink: 0 !important;
}

#ttco-header-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#ttco-header-icon {
  width: 38px !important;
  height: 38px !important;
  background: rgba(255,255,255,0.18) !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#ttco-title {
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

#ttco-header-sub {
  color: rgba(255,255,255,0.65) !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  margin-top: 1px !important;
}

#ttco-close {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.15) !important;
  border: none !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background 0.2s, transform 0.2s !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
}

#ttco-close:hover {
  background: rgba(255,255,255,0.28) !important;
  transform: rotate(90deg) !important;
}

/* ── Scrollable body ──────────────────────────────────────── */
#ttco-body {
  overflow-y: auto !important;
  flex: 1 !important;
  padding: 0 !important;
}

#ttco-body::-webkit-scrollbar { width: 4px; }
#ttco-body::-webkit-scrollbar-track { background: #f8fafc; }
#ttco-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* ── Loading skeleton ─────────────────────────────────────── */
#ttco-skeleton {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.ttco-sk-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.ttco-sk-img {
  width: 54px !important;
  height: 54px !important;
  border-radius: 10px !important;
  flex-shrink: 0 !important;
}

.ttco-sk-lines {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.ttco-sk-box,
.ttco-sk-line {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%) !important;
  background-size: 200% 100% !important;
  animation: ttco-shimmer 1.4s infinite !important;
  border-radius: 6px !important;
  height: 12px !important;
}

@keyframes ttco-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Cart section ─────────────────────────────────────────── */
#ttco-cart-section {
  border-bottom: 1px solid #f1f5f9 !important;
}

#ttco-cart-label {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  padding: 12px 20px 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

#ttco-cart-badge {
  background: #0d9488 !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 7px !important;
  border-radius: 20px !important;
}

#ttco-cart-items {
  padding: 0 20px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

/* Single cart item row */
.ttco-item {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  background: #f8fafc !important;
  border: 1px solid #e8f4f3 !important;
  border-radius: 12px !important;
}

.ttco-item-img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ttco-item-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.ttco-item-no-img {
  font-size: 22px !important;
}

.ttco-item-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.ttco-item-name {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ttco-item-qty {
  display: inline-block !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 3px !important;
  background: #e2e8f0 !important;
  padding: 1px 8px !important;
  border-radius: 20px !important;
}

.ttco-item-price {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0d9488 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

/* ── Form section ─────────────────────────────────────────── */
#ttco-form-section {
  padding: 18px 20px !important;
}

.ttco-field {
  margin-bottom: 13px !important;
}

.ttco-lbl {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
}

.ttco-lbl em {
  color: #ef4444 !important;
  font-style: normal !important;
}

.ttco-lbl svg {
  flex-shrink: 0 !important;
  opacity: 0.7 !important;
}

.ttco-input {
  width: 100% !important;
  display: block !important;
  padding: 11px 14px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

.ttco-input:focus {
  border-color: #0d9488 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.12) !important;
}

.ttco-input::placeholder {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.ttco-textarea {
  resize: vertical !important;
  min-height: 68px !important;
}

/* Select dropdown */
.ttco-select-wrap {
  position: relative !important;
}

.ttco-select-wrap select.ttco-input {
  padding-right: 36px !important;
  cursor: pointer !important;
}

.ttco-select-arrow {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  color: #64748b !important;
}

/* ── Payment Section ──────────────────────────────────────── */
#ttco-payment-section {
  padding: 0 0 16px !important;
  border-bottom: 1px dashed #cbd5e1 !important;
  margin-bottom: 16px !important;
}

.ttco-section-title {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin-bottom: 12px !important;
}

#ttco-payment-methods {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.ttco-pm-card {
  display: flex;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 14px !important;
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  position: relative !important;
  margin: 0 !important;
}

.ttco-pm-card.ttco-hidden {
  display: none !important;
}

.ttco-pm-card:hover {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.ttco-pm-card input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.ttco-pm-radio-dot {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  border: 2px solid #cbd5e1 !important;
  background: #fff !important;
  position: relative !important;
  flex-shrink: 0 !important;
  transition: all 0.2s !important;
}

.ttco-pm-radio-dot::after {
  content: '' !important;
  position: absolute !important;
  inset: 3px !important;
  background: #0d9488 !important;
  border-radius: 50% !important;
  transform: scale(0) !important;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1) !important;
}

.ttco-pm-card input[type="radio"]:checked ~ .ttco-pm-radio-dot {
  border-color: #0d9488 !important;
}

.ttco-pm-card input[type="radio"]:checked ~ .ttco-pm-radio-dot::after {
  transform: scale(1) !important;
}

.ttco-pm-card input[type="radio"]:checked ~ .ttco-pm-check {
  opacity: 1 !important;
  transform: scale(1) !important;
}

.ttco-pm-card:has(input[type="radio"]:checked) {
  background: #f0fdfa !important;
  border-color: #0d9488 !important;
}

.ttco-pm-logo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  flex-shrink: 0 !important;
}

.ttco-pm-logo-cod {
  background: #f1f5f9 !important;
  font-size: 18px !important;
}

.ttco-pm-info {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.ttco-pm-info strong {
  font-size: 14px !important;
  color: #0f172a !important;
  line-height: 1.2 !important;
}

.ttco-pm-info small {
  font-size: 11px !important;
  color: #64748b !important;
}

.ttco-pm-check {
  color: #0d9488 !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  opacity: 0 !important;
  transform: scale(0.5) !important;
  transition: all 0.2s !important;
}

/* Mobile Banking Info Card */
#ttco-mbb-info {
  margin-top: 14px !important;
  animation: ttco-fade-in 0.3s ease forwards !important;
}

#ttco-mbb-card {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
}

#ttco-mbb-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px dashed #cbd5e1 !important;
}

#ttco-mbb-name-badge {
  background: #e2f6e9 !important;
  color: #009a44 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  font-weight: 700 !important;
  font-size: 11px !important;
}

.ttco-mbb-step {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #374151 !important;
  margin-bottom: 12px !important;
  line-height: 1.5 !important;
}

.ttco-mbb-step:last-child {
  margin-bottom: 0 !important;
}

.ttco-mbb-num {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #e2e8f0 !important;
  color: #475569 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

#ttco-mbb-number-row {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 12px 30px !important;
}

#ttco-mbb-number-label {
  font-size: 11px !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

#ttco-mbb-number-val {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#ttco-mbb-number {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: 1px !important;
}

#ttco-copy-number {
  background: #f1f5f9 !important;
  border: none !important;
  color: #64748b !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

#ttco-copy-number:hover {
  background: #e2e8f0 !important;
  color: #0d9488 !important;
}

#ttco-mbb-amount-row {
  margin: 0 0 16px 30px !important;
  font-size: 13px !important;
  color: #475569 !important;
  background: #fff !important;
  border: 1px dashed #cbd5e1 !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  display: inline-block !important;
}

#ttco-mbb-amount {
  color: #0d9488 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}

/* ── Order summary ────────────────────────────────────────── */
#ttco-summary {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 13px 16px !important;
  margin: 16px 0 14px !important;
}

.ttco-sum-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 13px !important;
  color: #64748b !important;
  padding: 4px 0 !important;
}

.ttco-sum-row span:last-child {
  font-weight: 600 !important;
  color: #374151 !important;
}

.ttco-sum-total-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-top: 8px !important;
  padding-top: 10px !important;
  border-top: 1.5px dashed #cbd5e1 !important;
}

.ttco-sum-total-row span:last-child {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0d9488 !important;
}

/* ── Error ────────────────────────────────────────────────── */
#ttco-error {
  display: none; /* Changed from flex !important */
  align-items: flex-start !important;
  gap: 8px !important;
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #b91c1c !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  margin-bottom: 12px !important;
}

/* ── Submit button ────────────────────────────────────────── */
#ttco-submit {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 9px !important;
  padding: 14px 24px !important;
  border: none !important;
  border-radius: 12px !important;
  color: #fff !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s !important;
  box-shadow: 0 4px 16px rgba(13,148,136,0.38) !important;
  position: relative !important;
  overflow: hidden !important;
  letter-spacing: 0.2px !important;
}

#ttco-submit::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: rgba(255,255,255,0) !important;
  transition: background 0.2s !important;
}

#ttco-submit:hover::after { background: rgba(255,255,255,0.08) !important; }
#ttco-submit:hover { transform: translateY(-1px) !important; box-shadow: 0 6px 22px rgba(13,148,136,0.45) !important; }
#ttco-submit:active { transform: translateY(0) !important; }
#ttco-submit:disabled { opacity: 0.72 !important; cursor: not-allowed !important; transform: none !important; }

/* Spinner */
.ttco-spin {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  border: 2.5px solid rgba(255,255,255,0.35) !important;
  border-top-color: #fff !important;
  border-radius: 50% !important;
  animation: ttco-rotate 0.7s linear infinite !important;
}

@keyframes ttco-rotate { to { transform: rotate(360deg); } }

/* COD badge */
#ttco-cod-badge {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  margin-top: 10px !important;
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-align: center !important;
}

/* ── Success screen ───────────────────────────────────────── */
#ttco-success {
  padding: 40px 24px 32px !important;
  text-align: center !important;
}

#ttco-success-ring {
  width: 80px !important;
  height: 80px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px !important;
  box-shadow: 0 8px 28px rgba(13,148,136,0.35) !important;
  animation: ttco-pop 0.45s cubic-bezier(0.34,1.56,0.64,1) !important;
}

@keyframes ttco-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

#ttco-success-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 10px !important;
  line-height: 1.5 !important;
}

#ttco-success-order {
  font-size: 14px !important;
  color: #64748b !important;
  margin: 0 0 24px !important;
}

#ttco-close-success {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 12px 32px !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: inherit !important;
  cursor: pointer !important;
  transition: opacity 0.2s !important;
}

#ttco-close-success:hover { opacity: 0.88 !important; }

/* ── Prevent body scroll when open ───────────────────────── */
body.ttco-open {
  overflow: hidden !important;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 540px) {
  #ttco-popup { padding: 0 !important; align-items: flex-end !important; }
  #ttco-modal {
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 94vh !important;
    animation: ttco-slide-up-mobile 0.35s cubic-bezier(0.34,1.56,0.64,1) forwards !important;
  }
  @keyframes ttco-slide-up-mobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
  }
}

/* ==========================================================
   TTpixel Checkout 1.1 — Screenshot-style responsive layer
   ========================================================== */
html.ttco-html-open,
html.ttco-html-open body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

#ttco-popup {
  width: 100% !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100svh !important;
  padding: 16px !important;
  isolation: isolate !important;
  overscroll-behavior: contain !important;
}

#ttco-modal {
  width: min(500px, 100%) !important;
  max-width: 500px !important;
  height: min(92vh, 820px) !important;
  height: min(92dvh, 820px) !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  min-height: 0 !important;
  overflow: hidden !important;
  border-radius: 18px !important;
}

#ttco-header {
  flex: 0 0 auto !important;
  min-height: 70px !important;
  background: #0f172a !important;
  padding: 14px 18px !important;
}

#ttco-header-left,
#ttco-title,
#ttco-header-sub {
  min-width: 0 !important;
}

#ttco-title {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#ttco-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior-y: contain !important;
  scrollbar-width: thin !important;
}

#ttco-body > * {
  max-width: 100% !important;
}

#ttco-form-section,
#ttco-form,
#ttco-payment-section,
#ttco-coupon-section {
  min-width: 0 !important;
}

#ttco-form {
  padding-bottom: 8px !important;
}

.ttco-input,
.ttco-field,
.ttco-select-wrap,
.ttco-pm-card,
#ttco-submit,
#ttco-coupon-section > div,
#ttco-coupon-section .ttco-field > div {
  max-width: 100% !important;
}

.ttco-input {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  -webkit-appearance: none !important;
}

textarea.ttco-input {
  resize: vertical !important;
  overflow: auto !important;
}

.ttco-pm-card {
  min-width: 0 !important;
}

.ttco-pm-info {
  min-width: 0 !important;
  overflow: hidden !important;
}

.ttco-pm-info strong,
.ttco-pm-info small {
  overflow-wrap: anywhere !important;
}

#ttco-submit {
  width: 100% !important;
  min-height: 48px !important;
}

/* Mobile: edge-to-edge bottom sheet with a real scroll area. */
@media (max-width: 540px) {
  #ttco-popup {
    padding: 0 !important;
    align-items: flex-end !important;
    justify-content: center !important;
  }

  #ttco-modal {
    width: 100% !important;
    max-width: none !important;
    height: min(96vh, 900px) !important;
    height: min(96dvh, 900px) !important;
    max-height: 96vh !important;
    max-height: 96dvh !important;
    min-height: 0 !important;
    border-radius: 18px 18px 0 0 !important;
  }

  #ttco-header {
    min-height: 68px !important;
    padding: 12px 14px !important;
  }

  #ttco-header-left {
    gap: 10px !important;
  }

  #ttco-header-icon {
    width: 36px !important;
    height: 36px !important;
  }

  #ttco-title {
    font-size: 14px !important;
  }

  #ttco-header-sub {
    font-size: 10px !important;
  }

  #ttco-close {
    width: 34px !important;
    height: 34px !important;
  }

  #ttco-body {
    min-height: 0 !important;
    max-height: none !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }

  #ttco-cart-section,
  #ttco-form-section,
  #ttco-success {
    min-width: 0 !important;
  }

  #ttco-skeleton {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  #ttco-cart-section,
  #ttco-form-section {
    overflow: visible !important;
  }

  .ttco-field {
    min-width: 0 !important;
  }

  .ttco-input {
    font-size: 16px !important; /* prevents iOS Safari zoom */
    min-height: 44px !important;
  }

  .ttco-textarea {
    min-height: 76px !important;
  }

  .ttco-pm-card {
    padding: 10px 12px !important;
    gap: 9px !important;
  }

  .ttco-pm-info strong {
    font-size: 13px !important;
  }

  .ttco-pm-info small {
    font-size: 10.5px !important;
  }

  #ttco-coupon-section input {
    min-width: 0 !important;
  }

  #ttco-success {
    min-height: 100% !important;
    padding: 34px 20px !important;
  }
}

@media (max-width: 360px) {
  #ttco-header {
    padding-left: 11px !important;
    padding-right: 11px !important;
  }

  #ttco-cart-label,
  .ttco-section-title,
  .ttco-lbl {
    font-size: 12px !important;
  }

  .ttco-item-name {
    font-size: 12px !important;
  }
}

/* Landscape phones: don't let the header consume the entire viewport. */
@media (max-width: 900px) and (orientation: landscape) {
  #ttco-modal {
    height: 94dvh !important;
    max-height: 94dvh !important;
  }
}


/* TTpixel Checkout 1.1.1 — mobile breathing room / centered popup */
@media (max-width: 540px) {
  #ttco-popup {
    padding: 10px !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100dvh !important;
    min-height: 100svh !important;
  }

  #ttco-modal {
    width: 100% !important;
    max-width: 500px !important;
    height: min(94dvh, 860px) !important;
    max-height: calc(100dvh - 20px) !important;
    border-radius: 18px !important;
    margin: 0 !important;
  }

  #ttco-backdrop {
    backdrop-filter: blur(9px) !important;
    -webkit-backdrop-filter: blur(9px) !important;
  }
}

@media (max-width: 360px) {
  #ttco-popup { padding: 8px !important; }
  #ttco-modal {
    max-height: calc(100dvh - 16px) !important;
    height: min(95dvh, 860px) !important;
  }
}


/* ==========================================================
   BOOSTPAPA WEBSITE CHECKOUT 1.1.2 — FINAL UI OVERRIDES
   - Compact centered mobile popup with breathing room
   - Orange header
   - Animated order confirmation button
   ========================================================== */

#ttco-header {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  box-shadow: 0 3px 14px rgba(234, 88, 12, 0.22) !important;
}

#ttco-submit {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
  box-shadow: 0 7px 20px rgba(234, 88, 12, 0.28) !important;
  animation: ttco-submit-zoom 1.8s ease-in-out infinite !important;
  transform-origin: center center !important;
}

#ttco-submit:hover {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%) !important;
  box-shadow: 0 9px 26px rgba(234, 88, 12, 0.36) !important;
}

@keyframes ttco-submit-zoom {
  0%, 100% { transform: scale(1); }
  45%      { transform: scale(1.025); }
  60%      { transform: scale(0.985); }
  75%      { transform: scale(1.015); }
}

/* Desktop: retain a compact centered modal */
#ttco-modal {
  width: min(500px, calc(100vw - 32px)) !important;
  max-width: 500px !important;
}

/* Mobile: never use full-screen / edge-to-edge popup.
   Keep visible breathing room on every side. */
@media (max-width: 540px) {
  #ttco-popup {
    padding: 14px !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100dvh !important;
    min-height: 100svh !important;
  }

  #ttco-modal {
    width: calc(100vw - 28px) !important;
    max-width: 430px !important;
    height: auto !important;
    max-height: calc(100dvh - 28px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
  }

  #ttco-header {
    min-height: 62px !important;
    padding: 10px 13px !important;
  }

  #ttco-header-icon {
    width: 34px !important;
    height: 34px !important;
  }

  #ttco-title {
    font-size: 14px !important;
  }

  #ttco-header-sub {
    font-size: 10px !important;
  }

  #ttco-close {
    width: 32px !important;
    height: 32px !important;
  }

  #ttco-body {
    min-height: 0 !important;
    max-height: calc(100dvh - 90px) !important;
    overflow-y: auto !important;
  }

  #ttco-form-section {
    padding: 15px 16px !important;
  }

  #ttco-cart-label {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #ttco-cart-items {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #ttco-submit {
    min-height: 48px !important;
    animation-duration: 1.8s !important;
  }
}

/* Extra-small phones */
@media (max-width: 360px) {
  #ttco-popup {
    padding: 8px !important;
  }

  #ttco-modal {
    width: calc(100vw - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 16px !important;
  }

  #ttco-form-section {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  #ttco-cart-label {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }

  #ttco-cart-items {
    padding-left: 13px !important;
    padding-right: 13px !important;
  }
}

/* Respect users who disable motion in their device settings. */
@media (prefers-reduced-motion: reduce) {
  #ttco-submit {
    animation: none !important;
  }
}


/* ==========================================================
   BOOSTPAPA WEBSITE CHECKOUT 1.1.3 — FINAL MOBILE REFINEMENT
   ========================================================== */
#ttco-header {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) !important;
}

#ttco-header-sub {
  color: rgba(255,255,255,0.92) !important;
  line-height: 1.35 !important;
  max-width: 310px !important;
}

#ttco-cod-badge {
  font-size: 11px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

@media (max-width: 540px) {
  #ttco-popup {
    padding: 20px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  #ttco-modal {
    width: calc(100vw - 40px) !important;
    max-width: 420px !important;
    max-height: 86dvh !important;
    border-radius: 18px !important;
  }

  #ttco-header {
    min-height: 60px !important;
    padding: 9px 11px !important;
    gap: 8px !important;
  }

  #ttco-header-left {
    gap: 9px !important;
    min-width: 0 !important;
  }

  #ttco-header-icon {
    width: 33px !important;
    height: 33px !important;
    border-radius: 9px !important;
  }

  #ttco-title {
    font-size: 13px !important;
  }

  #ttco-header-sub {
    font-size: 8.8px !important;
    max-width: 265px !important;
    white-space: normal !important;
  }

  #ttco-close {
    width: 30px !important;
    height: 30px !important;
  }

  #ttco-body {
    max-height: calc(86dvh - 60px) !important;
    min-height: 0 !important;
    overflow-y: auto !important;
  }

  #ttco-form-section {
    padding: 13px 14px !important;
  }

  #ttco-submit {
    min-height: 47px !important;
    font-size: 15px !important;
  }

  #ttco-cod-badge {
    font-size: 10px !important;
    padding-bottom: 4px !important;
  }
}

@media (max-width: 360px) {
  #ttco-popup { padding: 16px !important; }
  #ttco-modal {
    width: calc(100vw - 32px) !important;
    max-height: 88dvh !important;
  }
  #ttco-header-sub {
    font-size: 8.2px !important;
    max-width: 220px !important;
  }
}


/* ==========================================================
   BOOSTPAPA WEBSITE CHECKOUT 1.1.8 — FINAL REQUESTED CHANGES
   ========================================================== */
#ttco-header-sub {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* Larger customer-information labels */
.ttco-lbl {
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Fixed checkout action area: the customer never has to scroll down
   to find the order-confirm button. */
#ttco-actionbar {
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 50 !important;
  background: #ffffff !important;
  padding: 10px 20px 12px !important;
  border-top: 1px solid #eef2f7 !important;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08) !important;
}

#ttco-actionbar #ttco-submit {
  margin: 0 !important;
  width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
}

#ttco-actionbar #ttco-cod-badge {
  margin-top: 7px !important;
  padding: 0 !important;
}

@media (max-width: 540px) {
  #ttco-actionbar {
    padding: 8px 14px 9px !important;
  }

  #ttco-actionbar #ttco-submit {
    min-height: 48px !important;
  }

  #ttco-actionbar #ttco-cod-badge {
    font-size: 10px !important;
    line-height: 1.35 !important;
  }

  .ttco-lbl {
    font-size: 14px !important;
  }

  /* Body height is calculated with the fixed action bar outside it. */
  #ttco-body {
    min-height: 0 !important;
  }
}
