/* ==========================================================================
   Bottom Sheet Drawer & Modal Styles (Scoped to Viewport Container)
   ========================================================================== */

.bottom-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  background: #FFFFFF;
  color: #0F172A;
  border-radius: 28px 28px 0 0;
  z-index: 150;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
  padding-bottom: calc(var(--safe-bottom) + 12px);
}

.bottom-sheet.active {
  transform: translateY(0);
}

.sheet-handle-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 6px 0;
  cursor: grab;
  position: relative;
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: #CBD5E1;
  border-radius: 3px;
}

.btn-close-sheet {
  position: absolute;
  right: 16px;
  top: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  font-size: 16px;
  color: #64748B;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sheet-scroll-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 20px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Header & Badges */
.sheet-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
}

.badge-age {
  background: #EEF2FF;
  color: #4F46E5;
}

.badge-cat {
  background: #F1F5F9;
  color: #475569;
}

.badge-pages {
  background: #ECFDF5;
  color: #059669;
}

.sheet-title {
  font-size: 20px;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 6px;
}

.social-proof-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFF1F2;
  color: #BE123C;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 14px;
}

.sheet-desc {
  font-size: 14px;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 16px;
}

/* Skills Tags */
.skills-wrap {
  margin-bottom: 16px;
}

.skills-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94A3B8;
  margin-bottom: 6px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
}

/* Support Button */
.support-bar {
  margin-bottom: 16px;
}

.btn-ask {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: 12px;
  transition: background 0.15s ease;
}

.btn-ask:hover {
  background: #DCFCE7;
}

/* Cross-Sell Stationery Card */
.cross-sell-box {
  background: #F8FAFC;
  border: 2px solid #E2E8F0;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 20px;
  transition: all 0.2s ease;
}

.cross-sell-box.selected {
  background: #F5F3FF;
  border-color: #8B5CF6;
}

.cross-sell-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.cross-sell-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #7C3AED;
  cursor: pointer;
}

.cross-sell-info {
  flex: 1;
}

.cross-sell-title {
  font-size: 13px;
  font-weight: 700;
  color: #1E293B;
}

.cross-sell-sub {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
}

.cross-sell-price {
  font-size: 14px;
  font-weight: 800;
  color: #7C3AED;
}

/* Form Styles */
.sheet-form {
  background: #F8FAFC;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #E2E8F0;
}

.form-title {
  font-size: 15px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.form-sub {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

/* Checkout Summary & Buttons */
.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.price-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}

.price-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
}

.price-amount {
  font-size: 24px;
  font-weight: 900;
  color: #0F172A;
}

.price-old {
  font-size: 15px;
  color: #94A3B8;
  text-decoration: line-through;
}

.btn-primary {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #fff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  width: 100%;
  padding: 12px;
  background: #F1F5F9;
  color: #334155;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.security-badge {
  text-align: center;
  font-size: 11px;
  color: #94A3B8;
  margin-top: 4px;
}

/* Success Screen inside Sheet */
.success-screen {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 54px;
  margin-bottom: 10px;
}

.success-title {
  font-size: 22px;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 6px;
}

.success-sub {
  font-size: 13px;
  color: #64748B;
  margin-bottom: 20px;
}

.download-card {
  background: #F0FDF4;
  border: 2px solid #86EFAC;
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 20px;
}

.download-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 12px;
}

.btn-download {
  display: block;
  background: #16A34A;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  padding: 15px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4);
  margin-bottom: 12px;
}

.download-rules {
  display: flex;
  justify-content: space-around;
  font-size: 11px;
  color: #15803D;
  background: rgba(255,255,255,0.7);
  padding: 8px;
  border-radius: 8px;
}

.btn-continue {
  background: transparent;
  border: none;
  color: #4F46E5;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

/* 3-Tier Option Cards in Bottom Sheet */
.tiers-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 16px;
}

.tiers-heading {
  font-size: 12px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-card {
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.tier-card:hover {
  border-color: #CBD5E1;
}

.tier-card.tier-sample {
  background: #F0FDF4;
  border-color: #BBF7D0;
}

.tier-card.tier-digital {
  background: #F8FAFC;
  border-color: #C7D2FE;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.06);
}

.tier-card.tier-print {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.tier-badge-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #DCFCE7;
  color: #166534;
}

.tier-price-tag {
  font-size: 18px;
  font-weight: 900;
  color: #0F172A;
}

.tier-title {
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 4px;
}

.tier-sub {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
  margin-bottom: 10px;
}

.btn-tier-action {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-tier-sample {
  background: #10B981;
  color: #FFFFFF;
}

.btn-tier-sample:hover {
  background: #059669;
}

.btn-tier-digital {
  background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}

.btn-tier-digital:hover {
  opacity: 0.95;
}

.btn-tier-print {
  background: #F59E0B;
  color: #FFFFFF;
}

.btn-tier-print:hover {
  background: #D97706;
}

.tier-expand-form {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #CBD5E1;
}

