/* ==================== SHOPPING SUMMARY SCREEN ==================== */
    
    .summary-screen {
      padding-top: 0;
      overscroll-behavior: none;
    }
    
.summary-header {
      position: relative;
      border-radius: 20px;
      padding: 40px 32px;
      margin-bottom: 24px;
      text-align: center;
      overflow: hidden;
      background: var(--school-primary);
      color: var(--school-primary-text);
      box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    }

    .summary-header::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
      pointer-events: none;
    }
    
    .summary-header h1 {
      font-family: var(--font-serif);
      font-size: 2rem;
      font-weight: 600;
      color: inherit;
      margin-bottom: 8px;
    }
    
    .summary-tagline {
      font-size: 1.125rem;
      color: inherit;
      opacity: 0.95;
      margin-bottom: 4px;
    }
    
    .summary-stats {
      font-size: 0.9375rem;
      color: inherit;
      opacity: 0.85;
    }
    
    .summary-section-header {
      font-size: 1.125rem;
      font-weight: 600;
      color: var(--slate-800);
      margin-bottom: 16px;
      text-align: center;
    }
    
    .summary-card {
      background: var(--white);
      border: 1px solid var(--slate-200);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 24px;
    }
    
    .summary-items {
      /* items container inside card */
    }
    
    .summary-category {
      margin-bottom: 24px;
    }
    
    .summary-category-name {
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--slate-500);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--slate-200);
      margin-bottom: 12px;
    }
    
    .summary-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 8px;
      margin: 0 -8px;
      border-bottom: 1px solid var(--slate-100);
      cursor: pointer;
      border-radius: 8px;
      transition: background 0.15s ease;
    }

    .summary-item:active {
      background: var(--slate-50);
    }
    
    .summary-item:last-child {
      border-bottom: none;
    }
    
    .summary-item-image {
      width: 56px;
      height: 56px;
      border-radius: 8px;
      background: var(--slate-100);
      overflow: hidden;
      flex-shrink: 0;
    }
    
    .summary-item-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .summary-item-details {
      flex: 1;
      min-width: 0;
    }
    
    .summary-item-name {
      font-size: 0.9375rem;
      font-weight: 500;
      color: var(--slate-800);
      margin-bottom: 2px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    
    .summary-item-meta {
      font-size: 0.8125rem;
      color: var(--slate-500);
    }
    
    .summary-item-remove {
      width: 32px;
      height: 32px;
      border: none;
      background: var(--slate-100);
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--slate-400);
      transition: all 0.2s ease;
      flex-shrink: 0;
    }
    
    .summary-item-remove:hover {
      background: var(--slate-200);
      color: var(--slate-600);
    }
    
    .summary-item-remove svg {
      width: 16px;
      height: 16px;
    }

    .summary-item-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-left: auto;
      flex-shrink: 0;
    }

    .summary-item-chevron {
      width: 16px;
      height: 16px;
      color: var(--slate-400);
    }
    
   .summary-footer {
      padding: 24px 0 40px;
    }

    .summary-actions-card {
      background: var(--white);
      border: 1px solid var(--slate-200);
      border-radius: 12px;
      padding: 20px;
      margin: 0 16px;
    }

    .summary-actions-total {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 16px;
    }

    .summary-actions-label {
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--slate-500);
    }

    .summary-actions-amount {
      font-family: var(--font-serif);
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--slate-900);
    }

    .summary-actions-card .continue-btn {
      width: 100%;
      justify-content: center;
      margin-bottom: 10px;
    }

    .summary-btn-save {
      width: 100%;
      padding: 12px;
      border-radius: 12px;
      background: transparent;
      border: 1.5px solid var(--slate-300);
      font-family: var(--font-sans);
      font-size: 0.875rem;
      font-weight: 500;
      color: var(--slate-600);
      cursor: pointer;
      transition: all 0.15s ease;
      -webkit-tap-highlight-color: transparent;
      margin-bottom: 16px;
    }
    .summary-btn-save:hover {
      border-color: var(--cr-teal);
      color: var(--cr-teal);
    }

    .summary-actions-secondary {
      border-top: 1px solid var(--slate-200);
      padding-top: 14px;
      display: flex;
      justify-content: center;
      gap: 12px;
    }

    .summary-btn-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 10px 20px;
      border-radius: 9999px;
      border: 1.5px solid var(--cr-teal);
      background: transparent;
      font-family: var(--font-sans);
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--cr-teal);
      cursor: pointer;
      transition: all 0.15s ease;
      -webkit-tap-highlight-color: transparent;
    }
    .summary-btn-pill:hover { background: rgba(70, 158, 146, 0.06); }
    .summary-btn-pill:active { transform: scale(0.96); }
    .summary-btn-pill svg { width: 13px; height: 13px; color: var(--cr-teal); }
    .summary-btn-pill.add-more-pill { border-color: #DD693A; color: #DD693A; }
    .summary-btn-pill.add-more-pill:hover { background: rgba(221, 105, 58, 0.06); }
    .summary-btn-pill.add-more-pill svg { color: #DD693A; }
    /* Celebration Modal (Share List) */

    /* Celebration Modal (DEC-445) */
    .celebration-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1100;
      padding: 20px;
      animation: celebrationFadeIn 200ms ease-out;
    }
    .celebration-overlay.hidden { display: none; }
    @keyframes celebrationFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }
    .celebration-modal {
      background: var(--white);
      border-radius: 20px;
      max-width: 340px;
      width: 100%;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
      position: relative;
      overflow: hidden;
      animation: celebrationSlideUp 250ms ease-out;
    }
    @keyframes celebrationSlideUp {
      from { opacity: 0; transform: translateY(12px) scale(0.97); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }
    .celebration-header {
      background: var(--school-primary, var(--cr-teal));
      padding: 28px 28px 24px;
      text-align: center;
      position: relative;
    }
    .celebration-headline {
      font-family: var(--font-serif);
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--white);
      margin: 0;
    }
    .celebration-close {
      position: absolute;
      top: 12px;
      right: 12px;
      width: 32px;
      height: 32px;
      background: rgba(255, 255, 255, 0.15);
      border: none;
      font-size: 1.25rem;
      color: rgba(255, 255, 255, 0.8);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      transition: background 0.15s ease;
      line-height: 1;
      padding: 0;
    }
    .celebration-close:hover {
      background: rgba(255, 255, 255, 0.25);
      color: var(--white);
    }
    .celebration-header.light-bg .celebration-headline {
      color: var(--slate-900);
    }
    .celebration-header.light-bg .celebration-close {
      background: rgba(0, 0, 0, 0.08);
      color: rgba(0, 0, 0, 0.5);
    }
    .celebration-header.light-bg .celebration-close:hover {
      background: rgba(0, 0, 0, 0.15);
      color: var(--slate-900);
    }
    .celebration-body {
      padding: 20px 28px 28px;
      text-align: center;
    }
    .celebration-message {
      font-size: 0.9375rem;
      color: var(--slate-600);
      line-height: 1.5;
      margin-bottom: 24px;
    }
    .celebration-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .celebration-share-btn {
      padding: 14px 24px;
      border-radius: 12px;
      font-family: inherit;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      border: none;
      transition: all 0.2s ease;
      background: var(--school-primary, var(--cr-teal));
      color: var(--white);
    }
    .celebration-share-btn:hover {
      filter: brightness(0.9);
    }
    .celebration-share-btn.light-school {
      color: var(--slate-900);
    }
    .celebration-account-prompt {
      margin-top: 16px;
      text-align: center;
    }
    .celebration-account-prompt.hidden { display: none; }
    .celebration-account-link {
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--cr-teal);
      text-decoration: none;
    }
    .celebration-account-link:hover {
      color: var(--cr-teal-dark);
      text-decoration: underline;
    }

    /* Recipient label prompt (Build My List brief) */
    .celebration-label-section {
      border-top: 1px solid var(--slate-100);
      margin-top: 20px;
      padding-top: 16px;
      text-align: left;
    }
    .celebration-label-section.hidden { display: none; }
    .celebration-label-question {
      font-family: var(--font-sans, 'DM Sans', sans-serif);
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--slate-600);
      margin-bottom: 10px;
      text-align: center;
    }
    .celebration-label-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: center;
    }
    .celebration-label-pill {
      display: inline-flex;
      align-items: center;
      padding: 8px 16px;
      border: 1px solid var(--slate-200);
      border-radius: 9999px;
      background: #fff;
      font-family: var(--font-sans, 'DM Sans', sans-serif);
      font-size: 0.8125rem;
      font-weight: 500;
      color: var(--slate-600);
      cursor: pointer;
      transition: all 0.15s ease;
      -webkit-tap-highlight-color: transparent;
    }
    .celebration-label-pill:active { border-color: var(--cr-teal); }
    .celebration-label-pill.selected {
      border-color: var(--cr-teal);
      color: var(--cr-teal);
      background: rgba(70, 158, 146, 0.06);
    }
    .celebration-label-other-input {
      display: none;
      margin-top: 10px;
      gap: 8px;
      align-items: center;
    }
    .celebration-label-other-input.visible { display: flex; }
    .celebration-label-other-input input {
      flex: 1;
      padding: 8px 12px;
      border: 1px solid var(--slate-200);
      border-radius: 8px;
      font-family: var(--font-sans, 'DM Sans', sans-serif);
      font-size: 0.8125rem;
      color: var(--slate-700);
      outline: none;
    }
    .celebration-label-other-input input:focus { border-color: var(--cr-teal); }
    .celebration-label-other-done {
      color: var(--cr-teal);
      font-family: var(--font-sans, 'DM Sans', sans-serif);
      font-size: 0.8125rem;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      -webkit-tap-highlight-color: transparent;
    }

/* ==================== MOBILE OVERRIDES — SHOPPING & SUMMARY ==================== */
    /* Must appear AFTER desktop rules to win the cascade at equal specificity */
    @media (max-width: 640px) {
      /* Phase 5: Shopping cards */
      .shopping-card-container { padding: 10px; border-radius: 16px; }
      .product-card-large { grid-template-columns: 110px 1fr; }
      .image-carousel { width: 98px; height: 128px; }
      .card-content { padding: 10px 12px; }
      .product-card-small { grid-template-columns: 56px 1fr auto; gap: 10px; padding: 10px; }
      .small-image-wrap { width: 56px; height: 56px; }
      /* Phase 6.5: Summary */
      .summary-header { padding: 32px 24px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
      .summary-card { padding: 14px; border-radius: 12px; }
      .summary-item { gap: 10px; }
      .summary-item-image { width: 48px; height: 48px; }
    }

    /* Auth UI styles (avatar, email auth, error messages, saved state) → css/account.css */

/* ==================== RETURNING USER HUB ==================== */

/* Loading gate */
#loadingGate {
  position: fixed;
  inset: 0;
  background: #F8F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.25s ease;
}

/* Hub preference pills */
#hubPreferencePills.hidden, #hubCategoryGrid.hidden { display: none; }

.hub-pref-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 16px;
  cursor: pointer;
  flex-wrap: wrap;
  -webkit-tap-highlight-color: transparent;
}
.hub-pref-pill {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-700);
  background: rgba(221, 105, 58, 0.08);
  border: 1px solid rgba(221, 105, 58, 0.25);
  border-radius: 9999px;
  padding: 6px 12px;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.hub-pref-edit-icon {
  width: 14px;
  height: 14px;
  color: #DD693A;
  margin-left: 2px;
  flex-shrink: 0;
}
.hub-pref-pills:active .hub-pref-pill {
  background: rgba(221, 105, 58, 0.14);
  border-color: rgba(221, 105, 58, 0.4);
}

/* Hub category grid */
.hub-category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
.hub-category-card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--slate-200);
  background: var(--white);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  -webkit-tap-highlight-color: transparent;
}
.hub-category-card:active {
  transform: scale(0.97);
}
.hub-category-card.shopped {
  border-color: var(--cr-teal);
  background: rgba(70, 158, 146, 0.06);
}
.hub-category-card.on-list {
  border-color: var(--cr-teal);
  background: var(--white);
}
.hub-category-card.discover {
  border-color: var(--slate-200);
  background: var(--slate-50);
}
.hub-category-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-category-status {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.4;
}
.hub-check {
  color: var(--cr-teal);
  font-size: 14px;
  font-weight: 700;
}
.hub-grid-header {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 12px;
  margin-top: 8px;
}
.hub-discover-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-400);
  margin-top: 16px;
  margin-bottom: 8px;
}
.hub-checklist-link {
  display: block;
  text-align: center;
  color: var(--cr-teal);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 0 4px;
  cursor: pointer;
  text-decoration: none;
}
.hub-checklist-link:active {
  text-decoration: underline;
}

/* Consolidated preferences screen */
#preferencesScreen .container {
  padding-top: 24px;
  padding-bottom: 100px;
}
.prefs-hub-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 4px;
}
.prefs-hub-subtitle {
  font-size: 15px;
  color: var(--slate-500);
  margin-bottom: 28px;
  line-height: 1.5;
}
.prefs-hub-section {
  margin-bottom: 28px;
}
.prefs-hub-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 12px;
}
.prefs-hub-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prefs-hub-style-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.prefs-hub-footer {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, #F8F9FA 80%, transparent);
  padding: 16px 0 24px;
}

/* ===== CHECKOUT SCREEN ===== */

.checkout-screen {
  padding-bottom: 40px;
}

.checkout-header {
  position: relative;
  border-radius: 20px;
  padding: 40px 32px;
  margin-bottom: 24px;
  text-align: center;
  overflow: hidden;
  background: var(--school-primary);
  color: var(--school-primary-text);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.checkout-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.checkout-headline {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: inherit;
  margin-bottom: 8px;
  position: relative;
}

.checkout-subline {
  font-size: 1rem;
  color: inherit;
  opacity: 0.9;
  margin-bottom: 6px;
  line-height: 1.5;
  position: relative;
}

.checkout-stats {
  font-size: 0.9375rem;
  color: inherit;
  opacity: 0.7;
  position: relative;
}

/* Retailer cards */

.checkout-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
  padding: 0 4px;
}

.retailer-card {
  border: 1px solid var(--slate-200);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  background: var(--white);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.retailer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.retailer-name {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--slate-800);
}

.retailer-count {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.retailer-price-line {
  font-size: 0.8125rem;
  color: var(--slate-500);
  font-style: italic;
  margin-bottom: 12px;
}

.retailer-thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.retailer-thumb {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid var(--slate-200);
}

.retailer-overflow {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--slate-100);
  color: var(--slate-500);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.retailer-toggle {
  display: inline-block;
  font-size: 0.8125rem;
  color: var(--cr-teal);
  text-decoration: none;
  margin-bottom: 12px;
  cursor: pointer;
}

.retailer-toggle:hover {
  text-decoration: underline;
}

.retailer-item-list {
  border-top: 1px solid var(--slate-100);
  padding-top: 12px;
  margin-bottom: 12px;
}

.retailer-item-list.hidden {
  display: none;
}

.retailer-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.875rem;
}

.retailer-item-name {
  color: var(--slate-700);
  flex: 1;
  padding-right: 12px;
}

.retailer-item-price {
  color: var(--slate-500);
  white-space: nowrap;
}

.retailer-cta {
  width: 100%;
  padding: 14px 24px;
  background: var(--cr-teal);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.retailer-cta:hover {
  background: var(--cr-teal-dark);
}

/* Disclosure */

.checkout-disclosure {
  padding: 0 4px;
  margin-bottom: 20px;
}

.disclosure-primary {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 8px;
}

.disclosure-amazon {
  font-size: 0.6875rem;
  color: var(--slate-400);
  line-height: 1.4;
}

/* Back link */

.checkout-back-link {
  display: inline-block;
  font-size: 0.875rem;
  color: var(--slate-500);
  text-decoration: none;
  padding: 8px 4px;
}

.checkout-back-link:hover {
  color: var(--slate-700);
}

/* Target per-item checkout rows */

.checkout-item-list {
  border-top: 1px solid var(--slate-100);
  margin-top: 12px;
  padding-top: 4px;
}

.checkout-item-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100);
  cursor: pointer;
  transition: background 0.15s ease;
}

.checkout-item-row:last-child {
  border-bottom: none;
}

.checkout-item-row:active {
  background: var(--slate-50);
}

.checkout-item-status {
  font-size: 0.875rem;
  color: var(--slate-400);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.checkout-item-row.visited .checkout-item-status {
  color: var(--cr-teal);
}

.checkout-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.checkout-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checkout-item-price {
  font-size: 0.875rem;
  color: var(--slate-600);
  flex-shrink: 0;
}

.checkout-item-arrow {
  width: 16px;
  height: 16px;
  color: var(--slate-400);
  flex-shrink: 0;
}

.checkout-item-row.visited {
  opacity: 0.5;
  cursor: default;
}

.checkout-item-row.visited .checkout-item-arrow {
  display: none;
}

/* ===== POST-CHECKOUT COMPLETION ===== */

.post-checkout {
  padding-top: 8px;
}

.post-checkout.hidden {
  display: none;
}

.post-checkout-tease {
  background: var(--cr-teal-muted);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.post-checkout-tease p {
  font-size: 0.875rem;
  color: var(--slate-700);
  line-height: 1.5;
  margin: 0;
}

.post-checkout-list {
  margin-bottom: 24px;
}

.packing-list-heading {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 16px;
}

.packing-category {
  margin-bottom: 16px;
}

.packing-category-name {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 8px;
}

.packing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--slate-100);
}

.packing-item:last-child {
  border-bottom: none;
}

.packing-item-image {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--slate-50);
}

.packing-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.packing-item-details {
  flex: 1;
  min-width: 0;
}

.packing-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.packing-item-brand {
  font-size: 0.75rem;
  color: var(--slate-500);
  margin-top: 1px;
}

.post-checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

.post-checkout-btn {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
  border: 1.5px solid var(--cr-teal);
  background: var(--white);
  color: var(--cr-teal);
}

.post-checkout-btn:hover {
  background: var(--cr-teal-muted);
}
    
/* ===== CHECKOUT: OPENED STATE + DONE BUTTON (DEC-422) ===== */

.retailer-card.opened {
  opacity: 0.7;
  position: relative;
}

.retailer-card.opened::after {
  content: '\2713';
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #469E92;
  color: white;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.checkout-done-wrap {
  padding: 8px 0 16px;
}

.checkout-done-wrap.hidden {
  display: none;
}

.checkout-done-btn {
  width: 100%;
}
    
/* Responsive */
@media (max-width: 600px) {
  .checkout-header { padding: 32px 24px; }
  .checkout-headline { font-size: 1.75rem; }
}

/* ==================== SHARED LIST VIEW ==================== */
.shared-list-page {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  min-height: 100vh;
  background: #fff;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
}
.shared-list-logo {
  text-align: center;
  padding: 20px 0 16px;
}
.shared-list-header {
  text-align: center;
  position: relative;
}
.shared-list-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  pointer-events: none;
  border-radius: 20px;
}
.shared-list-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.shared-list-stats {
  font-size: 0.9375rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.shared-list-date {
  font-size: 0.8125rem;
  font-weight: 400;
}
.shared-list-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
.shared-list-category-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cr-teal, #469E92);
  padding: 20px 0 8px;
  border-bottom: 1px solid var(--slate-100, #f1f5f9);
  margin-bottom: 4px;
}
.shared-list-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--slate-100, #f1f5f9);
}
.shared-list-item:last-child {
  border-bottom: none;
}
.shared-list-item-image {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--slate-50, #f8fafc);
}
.shared-list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.shared-list-item-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate-800, #1e293b);
  line-height: 1.3;
}
.shared-list-item-meta {
  font-size: 0.8125rem;
  color: var(--slate-500, #64748b);
  margin-top: 2px;
}
.shared-list-checkout {
  padding: 24px 0;
  border-top: 1px solid var(--slate-200, #e2e8f0);
  margin-top: 16px;
}
.shared-list-retailer-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  margin-bottom: 10px;
  background: var(--cr-teal, #469E92);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}
.shared-list-retailer-btn:hover {
  filter: brightness(0.9);
}
.shared-list-disclosure {
  font-size: 0.75rem;
  color: var(--slate-400, #94a3b8);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.shared-list-acquisition {
  text-align: center;
  padding: 28px 24px;
  margin-top: 24px;
  border-top: 1px solid var(--slate-200, #e2e8f0);
}
.shared-list-acquisition-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900, #0f172a);
  margin-bottom: 14px;
}
.shared-list-acquisition-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.shared-list-acquisition-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: #fff;
  color: var(--cr-teal, #469E92);
  border: 2px solid var(--cr-teal, #469E92);
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}
.shared-list-acquisition-btn:hover {
  background: var(--cr-teal, #469E92);
  color: #fff;
}
@media (min-width: 480px) {
  .shared-list-acquisition-btn {
    width: auto;
    flex: 1;
    min-width: 180px;
  }
}

    
 /* Shopping category pills — hub re-entry (DEC-443 → DEC-669 wrap) */
.category-dots.shopping-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 12px 0 4px;
  margin-bottom: 8px;
}
.shopping-pill {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 20px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.shopping-pill:hover {
  border-color: var(--school-primary);
  color: var(--school-primary);
}
.shopping-pill.active {
  background: var(--school-primary);
  border-color: var(--school-primary);
  color: var(--school-primary-text);
}
.shopping-pill.shopped {
  background: rgba(70, 158, 146, 0.08);
  color: var(--cr-teal-dark);
  border-color: rgba(70, 158, 146, 0.2);
}   
    
/* ================ MOOD BOARD — Editorial Collage (DEC-645) ================ */
.mood-collage[data-style="classic_clean"]  { background: linear-gradient(170deg, #f8f6f1 0%, #eee9e0 100%); }
.mood-collage[data-style="modern_minimal"] { background: linear-gradient(170deg, #f1f3f6 0%, #e4e7ed 100%); }
.mood-collage[data-style="bold_colorful"]  { background: linear-gradient(170deg, #f7f6f5 0%, #edeceb 100%); }
.mood-collage[data-style="warm_cozy"]      { background: linear-gradient(170deg, #f9f5eb 0%, #f0e8d6 100%); }

.mood-collage {
  border-radius: 16px;
  overflow: hidden;
  padding: 22px 18px 20px;
  position: relative;
  /* Cap canvas width so the prototype's tight slot overlap holds on wider
     viewports. Without this, on a 552px-content summary card the absolutely-
     positioned slots spread to canvas edges and the editorial overlap is lost. */
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

.mood-collage-header {
  text-align: center;
  margin-bottom: 18px;
}
.mood-collage-accent {
  width: 36px;
  height: 3px;
  margin: 0 auto 10px;
  border-radius: 2px;
}
.mood-collage-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 500;
  color: #2c2e33;
  line-height: 1.3;
}
.mood-collage-school {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #8e92a0;
  margin-top: 3px;
  font-weight: 500;
}

.mood-collage-canvas {
  position: relative;
}

.mood-collage-item {
  position: absolute;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.10);
  background: #fff;
  transition: box-shadow 0.25s ease;
}
.mood-collage-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.mood-collage-item.mood-collage-slot-active {
  box-shadow: 0 0 0 2.5px #469E92, 0 5px 20px rgba(0, 0, 0, 0.12);
}

/* 4-slot layout */
.mood-collage-4slot { position: relative; height: 370px; }
.mood-collage-4slot .mood-collage-hero {
  width: 200px; height: 185px;
  left: 50%; top: 0;
  transform: translateX(-50%) rotate(-1.5deg);
  z-index: 1; padding: 14px;
}
.mood-collage-4slot .mood-collage-s1 {
  width: 150px; height: 135px;
  left: 4px; top: 148px;
  transform: rotate(2.5deg);
  z-index: 2;
}
.mood-collage-4slot .mood-collage-s1 img {
  object-fit: cover;
  object-position: center 30%;
}
.mood-collage-4slot .mood-collage-s2 {
  width: 135px; height: 135px;
  right: 4px; top: 165px;
  transform: rotate(-2deg);
  z-index: 3; padding: 12px;
  background: #f7f7f5;
}
.mood-collage-4slot .mood-collage-accent {
  width: 115px; height: 100px;
  left: 50%; bottom: 8px;
  transform: translateX(-50%) rotate(1deg);
  z-index: 4; padding: 10px;
  background: #faf9f6;
}

/* 3-slot layout */
.mood-collage-3slot { position: relative; height: 330px; }
.mood-collage-3slot .mood-collage-hero {
  width: 220px; height: 200px;
  left: 50%; top: 0;
  transform: translateX(-50%) rotate(-1deg);
  z-index: 1; padding: 16px;
}
.mood-collage-3slot .mood-collage-s1 {
  width: 150px; height: 140px;
  left: 8px; top: 160px;
  transform: rotate(2.5deg);
  z-index: 2;
}
.mood-collage-3slot .mood-collage-s1 img {
  object-fit: cover;
  object-position: center 30%;
}
.mood-collage-3slot .mood-collage-s2 {
  width: 140px; height: 140px;
  right: 8px; top: 170px;
  transform: rotate(-2deg);
  z-index: 3; padding: 12px;
  background: #f7f7f5;
}

/* Customize link */
.mood-collage-customize-row {
  text-align: center;
  padding: 10px 16px 2px;
}
.mood-collage-customize-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: #469E92;
  font-weight: 500;
  cursor: pointer;
  padding: 6px 0;
  border: none;
  background: none;
  font-family: 'DM Sans', sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.mood-collage-customize-link svg {
  width: 14px;
  height: 14px;
  stroke: #469E92;
  fill: none;
  stroke-width: 1.8;
}

/* Swap tray */
.mood-collage-tray {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s ease;
  padding: 0 16px;
}
.mood-collage-tray.open {
  max-height: 500px;
  padding: 0 16px 16px;
  opacity: 1;
}
.mood-collage-tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 6px;
}
.mood-collage-tray-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c2a26;
}
.mood-collage-tray-done {
  font-size: 12px;
  font-weight: 600;
  color: #469E92;
  cursor: pointer;
  border: none;
  background: none;
  padding: 4px 0;
  font-family: 'DM Sans', sans-serif;
}
.mood-collage-tray-explanation {
  font-size: 12px;
  color: #8a8578;
  margin-bottom: 12px;
  line-height: 1.5;
}
.mood-collage-tray-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.mood-collage-tray-item {
  cursor: pointer;
}
.mood-collage-tray-thumb {
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f5f2ec;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
  position: relative;
}
.mood-collage-tray-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.mood-collage-tray-thumb.on-board {
  border-color: #469E92;
  background: #f0f9f7;
}
.mood-collage-tray-thumb.on-board::after {
  content: '\2713';
  position: absolute;
  top: 2px;
  right: 4px;
  font-size: 10px;
  color: #469E92;
  font-weight: 700;
}
.mood-collage-tray-thumb.selecting {
  outline: 2.5px solid #469E92;
  outline-offset: -2.5px;
}
.mood-collage-tray-label {
  font-size: 9px;
  color: #8a8578;
  text-align: center;
  margin-top: 3px;
  line-height: 1.2;
  font-weight: 500;
}

/* Pinterest auth prompt modal */
.pin-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  padding: 20px;
  animation: celebrationFadeIn 200ms ease-out;
}
.pin-auth-overlay.hidden { display: none; }
.pin-auth-card {
  background: var(--white);
  border-radius: 20px;
  max-width: 320px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: celebrationSlideUp 250ms ease-out;
  text-align: center;
}
.pin-auth-header {
  background: var(--cr-teal);
  padding: 24px 24px 20px;
  position: relative;
}
.pin-auth-header h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.pin-auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.pin-auth-close:hover { color: var(--white); }
.pin-auth-body {
  padding: 24px;
}
.pin-auth-body p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.5;
  margin: 0 0 20px;
}
.pin-auth-btn {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: var(--cr-teal);
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  cursor: pointer;
  margin-bottom: 12px;
}
.pin-auth-btn:hover { background: var(--cr-teal-dark); }
.pin-auth-signin {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--cr-teal);
  text-decoration: none;
  cursor: pointer;
  font-weight: 500;
}
.pin-auth-signin:hover { text-decoration: underline; }

/* Shared list spinner animation */
@keyframes spin { to { transform: rotate(360deg); } }
