/*
 * Peepers Customer Portal — Brand Layer
 *
 * Sits on top of Shopify Polaris to bring Peepers brand personality
 * to the customer-facing returns experience.
 *
 * Brand tokens (brand-voice-and-guidelines.md):
 *   Peepers Navy:    #0C2340 (primary)
 *   Peepers Pink:    #CE0F69 (accent, sparingly)
 *   Dark Gray:       #373A36 (copy)
 *   Light Gray:      #C8C9C7 (backgrounds)
 *   Peepers Tan:     #C5B9AC (warmth, sparingly)
 *   Warm Linen:      #F2F0EB (background zones)
 *   Fonts:           Inter (body), Playfair Display (headlines)
 */

/* Google Fonts — Inter + Playfair Display */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

/* ============================================================
   CSS Custom Properties (Brand Tokens)
   ============================================================ */
:root {
  /* Brand colors — from brand-voice-and-guidelines.md */
  --prex-pink: #CE0F69;
  --prex-pink-light: #fce8f0;
  --prex-pink-hover: #a80c55;
  --prex-navy: #0C2340;
  --prex-navy-light: #1a3a5c;
  --prex-charcoal: #373A36;
  --prex-taupe: #C5B9AC;
  --prex-taupe-light: #e8e2db;
  --prex-light-gray: #C8C9C7;
  --prex-offwhite: #fafafb;
  --prex-warm-gray: #F2F0EB;
  --prex-warm-cream: #F4F2EF;
  --prex-success: #12a37d;
  --prex-success-light: #e6f7f2;

  /* Typography — Inter for body, Playfair Display for display */
  --prex-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --prex-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

  /* Spacing */
  --prex-space-xs: 4px;
  --prex-space-sm: 8px;
  --prex-space-md: 16px;
  --prex-space-lg: 24px;
  --prex-space-xl: 32px;
  --prex-space-2xl: 48px;
  --prex-space-3xl: 64px;

  /* Border radius */
  --prex-radius-sm: 6px;
  --prex-radius-md: 10px;
  --prex-radius-lg: 16px;
  --prex-radius-pill: 100px;

  /* Shadows */
  --prex-shadow-sm: 0 1px 3px rgba(14, 30, 37, 0.06), 0 1px 2px rgba(14, 30, 37, 0.04);
  --prex-shadow-md: 0 4px 12px rgba(14, 30, 37, 0.08), 0 2px 4px rgba(14, 30, 37, 0.04);
  --prex-shadow-lg: 0 12px 32px rgba(14, 30, 37, 0.1), 0 4px 8px rgba(14, 30, 37, 0.04);

  /* Transitions */
  --prex-transition: 200ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ============================================================
   Font Loading (acumin-pro via Adobe Typekit)
   ============================================================ */
/* acumin-pro is loaded via peepers.com's Typekit — since we're in
   the app proxy context we can reference it, but we fall back to
   system fonts gracefully. */

/* ============================================================
   Base Overrides
   ============================================================ */

/* Portal wrapper — sets the brand font on the entire portal */
.prex-portal {
  font-family: var(--prex-font);
  color: var(--prex-charcoal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Focus indicators — visible for keyboard navigation */
.prex-portal button:focus-visible,
.prex-portal a:focus-visible,
.prex-portal input:focus-visible,
.prex-portal select:focus-visible,
.prex-portal textarea:focus-visible,
.prex-portal [tabindex]:focus-visible {
  outline: 2px solid var(--prex-navy);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Ensure body doesn't have conflicting Polaris styles */
.prex-portal .Polaris-Page {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--prex-space-md);
}

/* ============================================================
   Header
   ============================================================ */
.prex-header {
  background: white;
  border-bottom: 1px solid var(--prex-taupe-light);
  padding: var(--prex-space-md) var(--prex-space-lg);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.95);
}

.prex-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  gap: var(--prex-space-md);
}

.prex-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--prex-navy);
  flex-shrink: 0;
}

.prex-header__logo svg {
  height: 32px;
  width: auto;
}

.prex-header__title {
  font-family: var(--prex-font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--prex-navy);
  letter-spacing: 0.01em;
}

.prex-header__nav {
  display: flex;
  gap: var(--prex-space-lg);
  align-items: center;
}

.prex-header__nav a {
  color: var(--prex-charcoal);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--prex-transition);
}

.prex-header__nav a:hover {
  color: var(--prex-pink);
}

@media (max-width: 767px) {
  .prex-header {
    padding: var(--prex-space-sm) var(--prex-space-md);
  }

  .prex-header__inner {
    flex-wrap: wrap;
  }

  .prex-header__title {
    font-size: 1rem;
    order: -1;
    flex-basis: 100%;
    text-align: center;
    padding-bottom: var(--prex-space-xs);
  }

  .prex-header__nav {
    gap: var(--prex-space-md);
    font-size: 0.8125rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.prex-footer {
  margin-top: auto;
  background: var(--prex-warm-gray);
  border-top: 1px solid var(--prex-taupe-light);
  padding: var(--prex-space-2xl) var(--prex-space-lg);
  text-align: center;
}

.prex-footer__help {
  margin-bottom: var(--prex-space-xl);
}

.prex-footer__help-title {
  font-family: var(--prex-font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin-bottom: var(--prex-space-sm);
}

.prex-footer__phone {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--prex-pink);
  text-decoration: none;
  transition: color var(--prex-transition);
}

.prex-footer__phone:hover {
  color: var(--prex-pink-hover);
}

.prex-footer__hours {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: var(--prex-space-xs);
}

.prex-footer__legal {
  font-size: 0.8125rem;
  color: #9ca3af;
  line-height: 1.6;
}

.prex-footer__legal a {
  color: #6b7280;
  text-decoration: none;
  transition: color var(--prex-transition);
}

.prex-footer__legal a:hover {
  color: var(--prex-pink);
}

.prex-footer__links {
  display: flex;
  justify-content: center;
  gap: var(--prex-space-md);
  margin-top: var(--prex-space-md);
  flex-wrap: wrap;
}

.prex-footer__links-divider {
  color: #d1d5db;
}

/* ============================================================
   Order Lookup (Landing Page)
   ============================================================ */
.prex-lookup {
  max-width: 480px;
  margin: var(--prex-space-3xl) auto;
  text-align: center;
}

.prex-lookup__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--prex-pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--prex-space-lg);
}

.prex-lookup__icon svg {
  width: 28px;
  height: 28px;
  color: var(--prex-pink);
}

.prex-lookup__title {
  font-family: var(--prex-font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin-bottom: var(--prex-space-sm);
}

.prex-lookup__subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: var(--prex-space-xl);
  line-height: 1.5;
}

.prex-lookup__form {
  text-align: left;
}

.prex-lookup__tv-banner {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--prex-navy);
  background: var(--prex-pink-light);
  border-left: 4px solid var(--prex-pink);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-md) var(--prex-space-lg);
  margin-top: var(--prex-space-xl);
  text-align: left;
  line-height: 1.6;
}

.prex-lookup__tv-banner a {
  color: var(--prex-pink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .prex-lookup {
    margin: var(--prex-space-xl) auto;
    padding: 0 var(--prex-space-md);
  }

  .prex-lookup__title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   Custom Form Inputs (override Polaris TextField styling)
   ============================================================ */
.prex-portal .Polaris-TextField__Input {
  border-radius: var(--prex-radius-md);
  font-size: 1rem;
  padding: 12px 16px;
  height: auto;
}

.prex-portal .Polaris-TextField {
  border-radius: var(--prex-radius-md);
}

.prex-portal .Polaris-TextField--focus .Polaris-TextField__Backdrop {
  border-color: var(--prex-pink);
  box-shadow: 0 0 0 2px var(--prex-pink-light);
}

.prex-portal .Polaris-Label__Text {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
}

/* ============================================================
   Primary Button Override
   ============================================================ */
.prex-btn-primary,
.prex-portal .Polaris-Button--variantPrimary {
  background: var(--prex-navy) !important;
  border-color: var(--prex-navy) !important;
  border-radius: var(--prex-radius-pill) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 12px 32px !important;
  font-size: 0.9375rem !important;
  transition: all var(--prex-transition) !important;
  min-height: 48px !important;
}

.prex-btn-primary:hover,
.prex-portal .Polaris-Button--variantPrimary:hover {
  background: var(--prex-navy-light) !important;
  transform: translateY(-1px);
  box-shadow: var(--prex-shadow-md) !important;
}

.prex-btn-primary:active,
.prex-portal .Polaris-Button--variantPrimary:active {
  transform: translateY(0);
}

/* Secondary/plain buttons */
.prex-portal .Polaris-Button:not(.Polaris-Button--variantPrimary) {
  border-radius: var(--prex-radius-pill) !important;
  font-weight: 500;
}

/* ============================================================
   Cards (override Polaris Card)
   ============================================================ */
.prex-portal .Polaris-ShadowBevel {
  border-radius: var(--prex-radius-lg);
  box-shadow: var(--prex-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.prex-portal .Polaris-ShadowBevel:hover {
  box-shadow: var(--prex-shadow-md);
  transition: box-shadow var(--prex-transition);
}

/* ============================================================
   Grouped Item List
   ============================================================ */
.prex-grouped-items {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-lg);
}

.prex-grouped-items__heading {
  font-family: var(--prex-font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0;
}

.prex-grouped-items__subtext {
  font-size: 0.875rem;
  color: rgba(12, 35, 64, 0.6);
  margin: 2px 0 0;
}

.prex-grouped-items__section {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-md);
}

.prex-grouped-items__section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9ca3af;
  margin: 0;
}

.prex-grouped-items__list {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-md);
}

/* ============================================================
   Product Line Item Cards
   ============================================================ */
.prex-item-card {
  background: white;
  border-radius: var(--prex-radius-lg);
  border: 1px solid var(--prex-taupe-light);
  padding: var(--prex-space-lg);
  transition: all var(--prex-transition);
}

.prex-item-card:hover {
  border-color: var(--prex-taupe);
  box-shadow: var(--prex-shadow-sm);
}

.prex-item-card--selected {
  border-color: var(--prex-pink);
  background: var(--prex-pink-light);
  box-shadow: 0 0 0 2px var(--prex-pink-light);
}

.prex-item-card__image {
  width: 80px;
  height: 80px;
  border-radius: var(--prex-radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--prex-warm-gray);
}

.prex-item-card__info {
  flex: 1;
  min-width: 0;
}

.prex-item-card__title {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
  line-height: 1.3;
}

.prex-item-card__variant {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 2px;
}

.prex-item-card__price {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
  text-align: right;
}

.prex-item-card__qty {
  font-size: 0.8125rem;
  color: #6b7280;
  text-align: right;
}

.prex-item-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: var(--prex-radius-pill);
  line-height: 1.5;
}

.prex-item-card__badge--returnable {
  background: var(--prex-success-light);
  color: var(--prex-success);
}

.prex-item-card__badge--exchange {
  background: #fef3c7;
  color: #92400e;
}

.prex-item-card__badge--ineligible {
  background: #f3f4f6;
  color: #6b7280;
}


.prex-item-card__select {
  display: flex;
  align-items: center;
  gap: var(--prex-space-sm);
  padding: var(--prex-space-sm) var(--prex-space-md);
  border-radius: var(--prex-radius-md);
  cursor: pointer;
  transition: background var(--prex-transition);
  margin-top: var(--prex-space-md);
  border: 1px solid var(--prex-taupe-light);
  background: var(--prex-warm-gray);
  font-size: 0.875rem;
  font-weight: 500;
}

.prex-item-card__select:hover {
  background: var(--prex-taupe-light);
}

.prex-item-card__select--active {
  background: var(--prex-pink-light);
  border-color: var(--prex-pink);
  color: var(--prex-pink);
}

/* ============================================================
   Progress Indicator
   ============================================================ */
.prex-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: var(--prex-space-lg) 0;
  margin-bottom: var(--prex-space-lg);
}

.prex-progress__step {
  display: flex;
  align-items: center;
  gap: var(--prex-space-sm);
}

.prex-progress__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: all var(--prex-transition);
  flex-shrink: 0;
}

.prex-progress__dot--inactive {
  background: var(--prex-warm-gray);
  color: #9ca3af;
  border: 2px solid var(--prex-taupe-light);
}

.prex-progress__dot--active {
  background: var(--prex-navy);
  color: white;
  border: 2px solid var(--prex-navy);
  box-shadow: 0 0 0 4px rgba(12, 35, 64, 0.1);
}

.prex-progress__dot--done {
  background: var(--prex-success);
  color: white;
  border: 2px solid var(--prex-success);
}

.prex-progress__label {
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.prex-progress__label--inactive {
  color: #9ca3af;
}

.prex-progress__label--active {
  color: var(--prex-navy);
}

.prex-progress__label--done {
  color: var(--prex-success);
}

.prex-progress__line {
  width: 48px;
  height: 2px;
  margin: 0 var(--prex-space-sm);
  flex-shrink: 0;
}

.prex-progress__line--inactive {
  background: var(--prex-taupe-light);
}

.prex-progress__line--done {
  background: var(--prex-success);
}

@media (max-width: 767px) {
  .prex-progress__label {
    display: none;
  }

  .prex-progress__line {
    width: 32px;
  }

  .prex-progress__dot {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   Return Summary / Confirmation
   ============================================================ */
.prex-summary {
  background: white;
  border-radius: var(--prex-radius-lg);
  border: 2px solid var(--prex-navy);
  overflow: hidden;
}

.prex-summary__header {
  background: var(--prex-navy);
  color: white;
  padding: var(--prex-space-md) var(--prex-space-lg);
}

.prex-summary__header h2 {
  font-family: var(--prex-font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0;
}

.prex-summary__body {
  padding: var(--prex-space-lg);
}

.prex-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--prex-space-sm) 0;
  font-size: 0.9375rem;
}

.prex-summary__row + .prex-summary__row {
  border-top: 1px solid var(--prex-warm-gray);
}

.prex-summary__row--total {
  border-top: 2px solid var(--prex-charcoal) !important;
  padding-top: var(--prex-space-md);
  margin-top: var(--prex-space-sm);
  font-weight: 700;
  font-size: 1.125rem;
}

.prex-summary__row--bonus {
  color: var(--prex-success);
  font-weight: 600;
}

.prex-summary__row--fee {
  color: #dc2626;
}

.prex-summary__nudge {
  font-size: 0.8125rem;
  color: var(--prex-pink, #CE0F69);
  margin: -4px 0 4px;
  text-align: right;
}

/* ============================================================
   Next Steps Cards
   ============================================================ */
.prex-steps {
  display: grid;
  gap: var(--prex-space-md);
  margin-top: var(--prex-space-lg);
}

@media (min-width: 768px) {
  .prex-steps--2 { grid-template-columns: repeat(2, 1fr); }
  .prex-steps--3 { grid-template-columns: repeat(3, 1fr); }
  .prex-steps--4 { grid-template-columns: repeat(2, 1fr); }
}

.prex-step-card {
  background: var(--prex-warm-gray);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-lg);
  border: 1px solid transparent;
}

.prex-step-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--prex-radius-sm);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--prex-space-sm);
  color: var(--prex-navy);
}

.prex-step-card__title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--prex-navy);
  margin-bottom: var(--prex-space-xs);
}

.prex-step-card__text {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
}

/* ============================================================
   Success State (after submission)
   ============================================================ */
.prex-success {
  text-align: center;
  padding: var(--prex-space-2xl) var(--prex-space-lg);
}

.prex-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--prex-success-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--prex-space-lg);
  animation: prex-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.prex-success__icon svg {
  width: 32px;
  height: 32px;
  color: var(--prex-success);
}

@keyframes prex-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.prex-success__title {
  font-family: var(--prex-font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin-bottom: var(--prex-space-sm);
}

.prex-success__text {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================================
   Action Choice (return vs warranty)
   ============================================================ */
.prex-action-choice {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--prex-space-md);
  max-width: 480px;
  margin: var(--prex-space-xl) auto;
}

.prex-action-choice__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--prex-space-sm);
  padding: var(--prex-space-xl) var(--prex-space-lg);
  border: 2px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-lg);
  background: white;
  cursor: pointer;
  transition: all var(--prex-transition);
  text-align: center;
}

.prex-action-choice__btn:hover {
  border-color: var(--prex-navy);
  box-shadow: var(--prex-shadow-md);
  transform: translateY(-2px);
}

.prex-action-choice__btn-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--prex-offwhite);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--prex-navy);
}

.prex-action-choice__btn-label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
}

.prex-action-choice__btn-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.4;
}

/* ============================================================
   Banner Override (info/warning/error)
   ============================================================ */
.prex-portal .Polaris-Banner {
  border-radius: var(--prex-radius-md);
}

.prex-portal .Polaris-Banner--toneInfo {
  background: var(--prex-warm-gray);
  border-color: var(--prex-taupe-light);
}

/* ============================================================
   Modal Overrides
   ============================================================ */
.prex-portal .Polaris-Modal-Dialog__Modal {
  border-radius: var(--prex-radius-lg);
  overflow: hidden;
}

@media (max-width: 767px) {
  .prex-portal .Polaris-Modal-Dialog__Modal {
    border-radius: var(--prex-radius-lg) var(--prex-radius-lg) 0 0;
    margin-top: auto;
    max-height: 90vh;
  }
}

/* ============================================================
   Error state
   ============================================================ */
.prex-not-found {
  text-align: center;
  max-width: 480px;
  margin: var(--prex-space-xl) auto;
}

.prex-not-found__img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--prex-radius-md);
  margin-bottom: var(--prex-space-lg);
}

.prex-not-found__help {
  display: flex;
  gap: var(--prex-space-sm);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--prex-space-lg);
}

/* ============================================================
   Checkbox Override (selection checkboxes)
   ============================================================ */
.prex-portal .Polaris-Checkbox__Input:checked + .Polaris-Checkbox__Backdrop {
  background: var(--prex-navy);
  border-color: var(--prex-navy);
}

/* ============================================================
   Accessibility
   ============================================================ */
.prex-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prex-sr-only:focus {
  position: fixed;
  top: 10px;
  left: 10px;
  background: white;
  color: black;
  padding: 10px;
  margin: 0;
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100000;
}

/* ============================================================
   Return Options (inline below each item card)
   ============================================================ */
.prex-return-options {
  margin-top: var(--prex-space-md);
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-md);
}

.prex-return-options__body {
  background: var(--prex-warm-gray);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-md);
}

.prex-return-options__summary-box {
  background: var(--prex-warm-gray);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-lg);
}

.prex-return-options__prompt {
  font-size: 0.875rem;
  color: var(--prex-pink);
  font-weight: 500;
  margin: 0;
}

/* ============================================================
   Return Details (reason/notes/qty bar)
   ============================================================ */
.prex-return-details {
  background: var(--prex-warm-gray);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-sm) var(--prex-space-md);
}

.prex-return-details__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--prex-space-md);
  flex-wrap: wrap;
}

.prex-return-details__fields {
  display: flex;
  gap: var(--prex-space-lg);
  flex-wrap: wrap;
  flex: 1;
}

.prex-return-details__field {
  display: flex;
  align-items: baseline;
  gap: var(--prex-space-xs);
}

.prex-return-details__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--prex-charcoal);
}

.prex-return-details__value {
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-return-details__edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 1px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-pill);
  padding: 6px 14px;
  min-height: 36px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-charcoal);
  cursor: pointer;
  transition: all var(--prex-transition);
  font-family: var(--prex-font);
  white-space: nowrap;
}

.prex-return-details__edit:hover {
  border-color: var(--prex-navy);
  color: var(--prex-navy);
  background: white;
}

/* ============================================================
   Reason Picker (inline reason pills — "What went wrong?")
   ============================================================ */
.prex-reason {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-md);
}

.prex-reason__heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--prex-charcoal);
  margin: 0;
}

.prex-reason__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--prex-space-sm);
}

.prex-reason__option {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1.5px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-pill);
  background: white;
  cursor: pointer;
  transition: all var(--prex-transition);
  font-family: var(--prex-font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-charcoal);
}

.prex-reason__option:hover {
  border-color: var(--prex-navy);
  box-shadow: var(--prex-shadow-sm);
}

.prex-reason__option--active {
  background: var(--prex-navy);
  border-color: var(--prex-navy);
  color: white;
}

.prex-reason__option--active:hover {
  background: var(--prex-navy-light);
  border-color: var(--prex-navy-light);
}

.prex-reason__qty {
  display: flex;
  align-items: center;
  gap: var(--prex-space-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-charcoal);
}

.prex-reason__qty-select {
  padding: 6px 12px;
  border: 1.5px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-pill);
  background: white;
  font-family: var(--prex-font);
  font-size: 0.8125rem;
  cursor: pointer;
}

.prex-reason__note {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prex-reason__note-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-charcoal);
}

.prex-reason__note-input {
  padding: 10px 14px;
  border: 1.5px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-md);
  background: white;
  font-family: var(--prex-font);
  font-size: 0.8125rem;
  color: var(--prex-charcoal);
  resize: vertical;
  transition: border-color var(--prex-transition);
}

.prex-reason__note-input:focus {
  outline: none;
  border-color: var(--prex-navy);
}

.prex-reason__note-input::placeholder {
  color: #b0b5b9;
  font-style: italic;
}

.prex-reason__note-count {
  font-size: 0.6875rem;
  color: #b0b5b9;
  text-align: right;
}

.prex-reason__divider {
  height: 1px;
  background: var(--prex-taupe-light);
  margin: var(--prex-space-xs) 0;
}

@media (max-width: 767px) {
  .prex-reason__options {
    flex-direction: column;
  }

  .prex-reason__option {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   Return Method Selector (option pills)
   ============================================================ */
.prex-method {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-md);
}

.prex-method__heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--prex-charcoal);
  margin: 0;
}

.prex-method__groups {
  display: flex;
  gap: var(--prex-space-xl);
  flex-wrap: wrap;
}

.prex-method__group {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-sm);
  flex: 1;
  min-width: 180px;
}

.prex-method__group-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #9ca3af;
}

.prex-method__options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--prex-space-sm);
}

.prex-method__option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1.5px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-pill);
  background: white;
  cursor: pointer;
  transition: all var(--prex-transition);
  font-family: var(--prex-font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-charcoal);
}

.prex-method__option:hover {
  border-color: var(--prex-navy);
  box-shadow: var(--prex-shadow-sm);
}

.prex-method__option--active {
  background: var(--prex-navy);
  border-color: var(--prex-navy);
  color: white;
}

.prex-method__option--active:hover {
  background: var(--prex-navy-light);
  border-color: var(--prex-navy-light);
}

.prex-method__option--accent.prex-method__option--active {
  background: var(--prex-success);
  border-color: var(--prex-success);
}

.prex-method__option-icon {
  display: flex;
  flex-shrink: 0;
}

.prex-method__option-label {
  white-space: nowrap;
}

.prex-method__bonus-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--prex-success);
  margin: 0;
}

@media (max-width: 767px) {
  .prex-method__groups {
    flex-direction: column;
    gap: var(--prex-space-md);
  }

  .prex-method__options {
    flex-direction: column;
  }

  .prex-method__option {
    width: 100%;
    justify-content: center;
  }
}

/* Contextual group emphasis (reason-first routing) */
.prex-method__group--promoted .prex-method__group-label {
  color: var(--prex-navy);
  font-weight: 700;
}

.prex-method__group--secondary .prex-method__group-label {
  font-size: 0.6875rem;
  color: #b0b5b9;
}

.prex-method__group--secondary .prex-method__option {
  font-size: 0.75rem;
  padding: 6px 12px;
  opacity: 0.85;
}

/* ============================================================
   Return Summary Messages (inline within return options)
   ============================================================ */
.prex-return-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.prex-return-summary__primary {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
  margin: 0;
  line-height: 1.5;
}

.prex-return-summary__detail {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.prex-return-summary__info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: var(--prex-space-xs) 0 0;
  line-height: 1.5;
}

.prex-return-summary__info svg {
  flex-shrink: 0;
  color: #9ca3af;
}

/* ============================================================
   Exchange Items (selected for swap)
   ============================================================ */
.prex-exchange-items {
  background: var(--prex-warm-gray);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-md) var(--prex-space-lg);
}

.prex-exchange-items__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--prex-space-md);
}

.prex-exchange-items__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--prex-charcoal);
  margin: 0;
}

.prex-exchange-items__list {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-sm);
}

.prex-exchange-items__item {
  display: flex;
  align-items: center;
  gap: var(--prex-space-md);
}

.prex-exchange-items__image {
  width: 48px;
  height: 48px;
  border-radius: var(--prex-radius-sm);
  object-fit: cover;
}

.prex-exchange-items__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.prex-exchange-items__name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--prex-charcoal);
}

.prex-exchange-items__variant {
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-exchange-items__qty {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* ============================================================
   Custom Banners (replacing Polaris Banner in ActionBanners)
   ============================================================ */
.prex-banner {
  display: flex;
  align-items: flex-start;
  gap: var(--prex-space-md);
  padding: var(--prex-space-md) var(--prex-space-lg);
  border-radius: var(--prex-radius-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prex-banner p {
  margin: 0;
}

.prex-banner__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.prex-banner--warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.prex-banner--warning .prex-banner__icon {
  color: #d97706;
}

.prex-banner--success {
  background: var(--prex-success-light);
  border: 1px solid var(--prex-success);
  color: #065f46;
}

.prex-banner--success .prex-banner__icon {
  color: var(--prex-success);
}

/* ============================================================
   Flow Container
   ============================================================ */
.prex-flow {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-lg);
}

/* ============================================================
   CTA Button (main action — Review / Confirm)
   ============================================================ */
.prex-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--prex-space-sm);
  width: 100%;
  padding: 14px 32px;
  background: var(--prex-navy);
  color: white;
  border: none;
  border-radius: var(--prex-radius-pill);
  font-family: var(--prex-font);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--prex-transition);
  min-height: 52px;
}

.prex-cta:hover:not(:disabled) {
  background: var(--prex-navy-light);
  transform: translateY(-1px);
  box-shadow: var(--prex-shadow-md);
}

.prex-cta:active:not(:disabled) {
  transform: translateY(0);
}

.prex-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.prex-cta--confirm {
  background: var(--prex-success);
}

.prex-cta--confirm:hover:not(:disabled) {
  background: #0d8a6a;
}

.prex-cta__loading {
  display: inline-flex;
  align-items: center;
  gap: var(--prex-space-sm);
}

.prex-cta__spinner {
  animation: prex-spin 0.8s linear infinite;
}

@keyframes prex-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================================
   Kept Items
   ============================================================ */
.prex-kept-items {
  margin-top: var(--prex-space-lg);
}

.prex-kept-items__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--prex-charcoal);
  margin: 0 0 var(--prex-space-sm);
}

.prex-kept-items__list {
  margin: 0;
  padding-left: var(--prex-space-lg);
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.8;
}

/* ============================================================
   Next Steps
   ============================================================ */
.prex-next-steps {
  margin-top: var(--prex-space-xl);
}

.prex-next-steps__title {
  font-family: var(--prex-font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0 0 var(--prex-space-xs);
}

.prex-next-steps__note {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: 0 0 var(--prex-space-lg);
}

.prex-step-card__list {
  margin: var(--prex-space-sm) 0 0;
  padding-left: var(--prex-space-md);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.prex-step-card__list li {
  margin-bottom: 2px;
}

/* ============================================================
   Offer Modals (Store Credit + Keep-It overlays)
   ============================================================ */
.prex-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--prex-space-md);
  animation: prex-fade-in 0.2s ease;
}

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

.prex-offer-modal {
  background: white;
  border-radius: var(--prex-radius-lg);
  padding: var(--prex-space-2xl) var(--prex-space-xl);
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: var(--prex-shadow-lg);
  animation: prex-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes prex-slide-up {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.prex-offer-modal__close {
  position: absolute;
  top: var(--prex-space-md);
  right: var(--prex-space-md);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all var(--prex-transition);
  display: flex;
}

.prex-offer-modal__close:hover {
  color: var(--prex-charcoal);
  background: var(--prex-warm-gray);
}

.prex-offer-modal__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--prex-pink-light);
  color: var(--prex-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--prex-space-lg);
}

.prex-offer-modal__icon--gift {
  background: var(--prex-success-light);
  color: var(--prex-success);
}

.prex-offer-modal__title {
  font-family: var(--prex-font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0 0 var(--prex-space-sm);
}

.prex-offer-modal__amount {
  font-size: 2rem;
  font-weight: 700;
  color: var(--prex-pink);
  margin: 0 0 var(--prex-space-sm);
}

.prex-offer-modal--keep-it .prex-offer-modal__amount {
  color: var(--prex-success);
}

.prex-offer-modal__text {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 var(--prex-space-xl);
}

.prex-offer-modal__actions {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-sm);
}

.prex-offer-modal__actions .prex-cta {
  font-size: 0.9375rem;
}

.prex-offer-modal__decline {
  background: none;
  border: none;
  font-family: var(--prex-font);
  font-size: 0.875rem;
  color: #9ca3af;
  cursor: pointer;
  padding: var(--prex-space-sm);
  transition: color var(--prex-transition);
}

.prex-offer-modal__decline:hover {
  color: var(--prex-charcoal);
}

@media (max-width: 767px) {
  .prex-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .prex-offer-modal {
    border-radius: var(--prex-radius-lg) var(--prex-radius-lg) 0 0;
    padding: var(--prex-space-xl) var(--prex-space-lg) var(--prex-space-2xl);
    max-height: 90vh;
    overflow-y: auto;
    animation: prex-slide-up-mobile 0.3s ease;
  }

  @keyframes prex-slide-up-mobile {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
  }
}

/* ============================================================
   Summary waive reason badge
   ============================================================ */
.prex-summary__waive-reason {
  font-size: 0.8125rem;
  font-weight: 600;
}

/* ============================================================
   DataTable Override (for financial summaries — legacy fallback)
   ============================================================ */
.prex-portal .Polaris-DataTable__Cell {
  font-size: 0.9375rem;
}

.prex-portal .Polaris-DataTable__Footer .Polaris-DataTable__Cell {
  font-weight: 700;
  font-size: 1rem;
}

/* ============================================================
   Status Badges (pill — replaces Polaris Badge)
   ============================================================ */
.prex-status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--prex-radius-pill);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.prex-status-badge--success {
  background: var(--prex-success-light);
  color: var(--prex-success);
}

.prex-status-badge--attention {
  background: #fef3c7;
  color: #92400e;
}

/* ============================================================
   Eligibility Banner (replaces Polaris Banner in OrderDetailsCard)
   ============================================================ */
.prex-eligibility {
  display: flex;
  align-items: flex-start;
  gap: var(--prex-space-md);
  padding: var(--prex-space-md) var(--prex-space-lg);
  border-radius: var(--prex-radius-md);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prex-eligibility__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.prex-eligibility__content {
  flex: 1;
}

.prex-eligibility__message {
  margin: 0;
}

.prex-eligibility__contacts {
  display: flex;
  gap: var(--prex-space-sm);
  flex-wrap: wrap;
  margin-top: var(--prex-space-sm);
}

.prex-eligibility--success {
  background: var(--prex-success-light);
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.prex-eligibility--success .prex-eligibility__icon {
  color: var(--prex-success);
}

.prex-eligibility--warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.prex-eligibility--warning .prex-eligibility__icon {
  color: #d97706;
}

.prex-eligibility--critical {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.prex-eligibility--critical .prex-eligibility__icon {
  color: #dc2626;
}

.prex-eligibility--info {
  background: var(--prex-warm-gray);
  border: 1px solid var(--prex-taupe-light);
  color: var(--prex-charcoal);
}

.prex-eligibility--info .prex-eligibility__icon {
  color: #6b7280;
}

/* Contact Pill Buttons (inside eligibility banners) */
.prex-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid currentColor;
  border-radius: var(--prex-radius-pill);
  background: rgba(255, 255, 255, 0.6);
  font-family: var(--prex-font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--prex-transition);
}

.prex-contact-btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* ============================================================
   Order Card (replaces Polaris Card in OrderDetailsCard)
   ============================================================ */
.prex-order-card {
  background: white;
  border-radius: var(--prex-radius-lg);
  border: 1px solid var(--prex-taupe-light);
  padding: var(--prex-space-lg);
  box-shadow: var(--prex-shadow-sm);
}

.prex-order-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--prex-space-md);
}

.prex-order-card__name {
  font-family: var(--prex-font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0;
}

.prex-order-card__date {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 2px 0 0;
}

.prex-order-card__badges {
  display: flex;
  gap: var(--prex-space-sm);
  flex-wrap: wrap;
}

.prex-order-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--prex-space-md);
  border-top: 1px solid var(--prex-taupe-light);
  padding-top: var(--prex-space-md);
  margin-top: var(--prex-space-md);
}

.prex-order-card__meta-left {
  display: flex;
  gap: var(--prex-space-lg);
  flex-wrap: wrap;
}

.prex-order-card__meta-item {
  font-size: 0.875rem;
  color: #6b7280;
}

.prex-order-card__total {
  font-weight: 700;
  font-size: 1rem;
  color: var(--prex-charcoal);
}

@media (max-width: 767px) {
  .prex-order-card__header {
    flex-direction: column;
  }
}

/* ============================================================
   Back Button (replaces Polaris Button variant="plain")
   ============================================================ */
.prex-back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--prex-space-sm);
  background: none;
  border: 1px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-pill);
  padding: 8px 20px;
  font-family: var(--prex-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--prex-charcoal);
  cursor: pointer;
  transition: all var(--prex-transition);
}

.prex-back-btn:hover {
  border-color: var(--prex-navy);
  color: var(--prex-navy);
  background: var(--prex-warm-gray);
}

/* ============================================================
   USD Notice
   ============================================================ */
.prex-usd-notice {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-sm) var(--prex-space-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: #92400e;
  text-align: center;
}

/* ============================================================
   Order List (replaces Polaris Card + ResourceList)
   ============================================================ */
.prex-order-list {
  background: white;
  border-radius: var(--prex-radius-lg);
  border: 1px solid var(--prex-taupe-light);
  overflow: hidden;
  box-shadow: var(--prex-shadow-sm);
}

.prex-order-list__tabs {
  display: flex;
  border-bottom: 1px solid var(--prex-taupe-light);
}

.prex-order-list__tab {
  flex: 1;
  padding: var(--prex-space-md);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--prex-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all var(--prex-transition);
}

.prex-order-list__tab:hover {
  color: var(--prex-navy);
  background: var(--prex-warm-gray);
}

.prex-order-list__tab--active {
  color: var(--prex-navy);
  border-bottom-color: var(--prex-navy);
  font-weight: 600;
}

.prex-order-list__item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--prex-space-lg);
  padding: var(--prex-space-lg);
  border-bottom: 1px solid var(--prex-taupe-light);
  cursor: pointer;
  transition: background var(--prex-transition);
}

.prex-order-list__item:last-child {
  border-bottom: none;
}

.prex-order-list__item:hover {
  background: var(--prex-warm-gray);
}

.prex-order-list__item-left {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-sm);
}

.prex-order-list__item-name {
  font-family: var(--prex-font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--prex-space-sm);
}

.prex-order-list__item-name svg {
  color: var(--prex-navy);
  flex-shrink: 0;
}

.prex-order-list__item-date {
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-order-list__item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--prex-space-sm);
}

.prex-order-list__item-total {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
}

.prex-order-list__item-count {
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-order-list__item-products {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  padding-left: var(--prex-space-md);
}

.prex-order-list__item-products li {
  margin-bottom: 2px;
}

/* Mini eligibility indicator */
.prex-order-list__eligibility {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--prex-radius-pill);
}

.prex-order-list__eligibility--eligible {
  background: var(--prex-success-light);
  color: var(--prex-success);
}

.prex-order-list__eligibility--ineligible {
  background: #fef3c7;
  color: #92400e;
}

.prex-order-list__eligibility--cancelled {
  background: #fef2f2;
  color: #991b1b;
}

.prex-order-list__eligibility--processing {
  background: #e0f2fe;
  color: #0369a1;
}

.prex-order-list__invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-pink);
  text-decoration: none;
  transition: color var(--prex-transition);
}

.prex-order-list__invoice-link:hover {
  color: var(--prex-pink-hover);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .prex-order-list__item {
    grid-template-columns: 1fr;
    gap: var(--prex-space-md);
  }

  .prex-order-list__item-right {
    align-items: flex-start;
    flex-direction: row;
    gap: var(--prex-space-md);
  }
}

/* ============================================================
   Cancelled Items (replaces Polaris Card in CancelledOrderDetails)
   ============================================================ */
.prex-cancelled-items {
  background: white;
  border-radius: var(--prex-radius-lg);
  border: 1px solid var(--prex-taupe-light);
  padding: var(--prex-space-lg);
  box-shadow: var(--prex-shadow-sm);
}

.prex-cancelled-items__title {
  font-family: var(--prex-font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0 0 var(--prex-space-lg);
}

.prex-cancelled-items__list {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-md);
}

.prex-cancelled-items__item {
  display: flex;
  align-items: center;
  gap: var(--prex-space-md);
  padding: var(--prex-space-md);
  background: var(--prex-warm-gray);
  border-radius: var(--prex-radius-md);
}

.prex-cancelled-items__image {
  width: 60px;
  height: 60px;
  border-radius: var(--prex-radius-sm);
  object-fit: cover;
  background: white;
}

.prex-cancelled-items__name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
}

.prex-cancelled-items__variant {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 2px;
}

.prex-cancelled-items__qty {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 2px;
}

/* ============================================================
   Layout helpers (replaces Polaris BlockStack/InlineStack)
   ============================================================ */
.prex-stack {
  display: flex;
  flex-direction: column;
}

.prex-stack--gap-sm { gap: var(--prex-space-sm); }
.prex-stack--gap-md { gap: var(--prex-space-md); }
.prex-stack--gap-lg { gap: var(--prex-space-lg); }
.prex-stack--gap-xl { gap: var(--prex-space-xl); }
.prex-stack--gap-2xl { gap: var(--prex-space-2xl); }

/* ============================================================
   Returns List (replaces Polaris Card + complex layout)
   ============================================================ */
.prex-returns {
  background: white;
  border-radius: var(--prex-radius-lg);
  border: 1px solid var(--prex-taupe-light);
  box-shadow: var(--prex-shadow-sm);
  overflow: hidden;
}

.prex-returns__heading {
  font-family: var(--prex-font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0;
  padding: var(--prex-space-lg);
  border-bottom: 1px solid var(--prex-taupe-light);
}

.prex-returns__group {
  padding: var(--prex-space-lg);
}

.prex-returns__group + .prex-returns__group {
  border-top: 1px solid var(--prex-taupe-light);
}

.prex-returns__group-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--prex-charcoal);
  margin: 0 0 var(--prex-space-xs);
}

.prex-returns__group-desc {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 var(--prex-space-lg);
}

/* Individual return card */
.prex-returns__card {
  background: white;
  border: 1px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-md);
  overflow: hidden;
}

.prex-returns__card + .prex-returns__card {
  margin-top: var(--prex-space-md);
}

.prex-returns__card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--prex-space-sm);
  padding: var(--prex-space-md) var(--prex-space-lg);
  border-bottom: 1px solid var(--prex-taupe-light);
  background: var(--prex-warm-gray);
}

.prex-returns__card-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
  margin: 0;
}

.prex-returns__card-actions {
  display: flex;
  gap: var(--prex-space-sm);
  flex-wrap: wrap;
}

/* Action buttons within returns */
.prex-returns__action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--prex-taupe-light);
  border-radius: var(--prex-radius-pill);
  background: white;
  font-family: var(--prex-font);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-charcoal);
  cursor: pointer;
  transition: all var(--prex-transition);
  text-decoration: none;
}

.prex-returns__action-btn:hover {
  border-color: var(--prex-navy);
  color: var(--prex-navy);
  box-shadow: var(--prex-shadow-sm);
}

.prex-returns__action-btn--primary {
  background: var(--prex-navy);
  border-color: var(--prex-navy);
  color: white;
}

.prex-returns__action-btn--primary:hover {
  background: var(--prex-navy-light);
  border-color: var(--prex-navy-light);
  color: white;
}

.prex-returns__action-btn--danger {
  border-color: #fca5a5;
  color: #dc2626;
}

.prex-returns__action-btn--danger:hover {
  background: #fef2f2;
  border-color: #dc2626;
}

/* Section within a return card */
.prex-returns__section {
  padding: var(--prex-space-md) var(--prex-space-lg);
}

.prex-returns__section + .prex-returns__section {
  border-top: 1px solid var(--prex-taupe-light);
}

.prex-returns__section--tinted {
  background: var(--prex-warm-gray);
}

.prex-returns__section-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--prex-charcoal);
  margin: 0 0 var(--prex-space-md);
}

/* Line item row within returns */
.prex-returns__item {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--prex-space-md);
  align-items: start;
  padding: var(--prex-space-sm) 0;
}

.prex-returns__item + .prex-returns__item {
  border-top: 1px solid var(--prex-warm-gray);
  padding-top: var(--prex-space-md);
}

.prex-returns__item-image {
  width: 56px;
  height: 56px;
  border-radius: var(--prex-radius-sm);
  object-fit: cover;
  background: var(--prex-warm-gray);
}

.prex-returns__item-info {
  min-width: 0;
}

.prex-returns__item-title {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--prex-charcoal);
}

.prex-returns__item-variant {
  font-size: 0.8125rem;
  color: #6b7280;
  margin-top: 2px;
}

.prex-returns__item-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 120px;
}

.prex-returns__item-status-text {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
  max-width: 180px;
}

.prex-returns__item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  white-space: nowrap;
}

.prex-returns__item-qty {
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-returns__item-price {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--prex-charcoal);
}

.prex-returns__item-reason {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Financial summary rows (refunds, store credit) */
.prex-returns__financial {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--prex-space-sm);
}

.prex-returns__financial-label {
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-returns__financial-amount {
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--prex-charcoal);
}

.prex-returns__financial-detail {
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* Additional badge tones */
.prex-status-badge--info {
  background: #e0f2fe;
  color: #0369a1;
}

.prex-status-badge--warning {
  background: #fef3c7;
  color: #92400e;
}

/* Inline action container (tracking/invoice buttons) */
.prex-returns__inline-action {
  margin-top: var(--prex-space-sm);
  text-align: center;
}

/* Responsive returns */
@media (max-width: 767px) {
  .prex-returns__item {
    grid-template-columns: auto 1fr;
    gap: var(--prex-space-sm);
  }

  .prex-returns__item-status {
    grid-column: 1 / -1;
    align-items: flex-start;
    text-align: left;
    min-width: auto;
  }

  .prex-returns__item-meta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: var(--prex-space-md);
  }

  .prex-returns__card-header {
    flex-direction: column;
    gap: var(--prex-space-sm);
    padding: var(--prex-space-md);
  }

  .prex-returns__card-actions {
    flex-direction: column;
    width: 100%;
  }

  .prex-returns__action-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .prex-returns__section {
    padding: var(--prex-space-md);
  }
}

/* ============================================================
   NCR (No Charge Replacement) Claim Form
   ============================================================ */

.prex-ncr-form {
  background: white;
  border-radius: var(--prex-radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--prex-shadow-lg);
  animation: prex-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}

.prex-ncr-form__close {
  position: absolute;
  top: var(--prex-space-md);
  right: var(--prex-space-md);
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all var(--prex-transition);
  display: flex;
  z-index: 2;
}

.prex-ncr-form__close:hover {
  color: var(--prex-charcoal);
  background: var(--prex-warm-gray);
}

/* ── Header ─────────────────────────────────────────── */

.prex-ncr-form__header {
  text-align: center;
  padding: var(--prex-space-xl) var(--prex-space-xl) var(--prex-space-md);
}

.prex-ncr-form__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--prex-success-light);
  color: var(--prex-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--prex-space-md);
}

.prex-ncr-form__title {
  font-family: var(--prex-font-display);
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0 0 var(--prex-space-xs);
}

.prex-ncr-form__subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ── Step Progress ──────────────────────────────────── */

.prex-ncr-steps {
  display: flex;
  justify-content: center;
  gap: var(--prex-space-lg);
  padding: 0 var(--prex-space-xl) var(--prex-space-md);
}

.prex-ncr-steps__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.prex-ncr-steps__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--prex-warm-gray);
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all var(--prex-transition);
}

.prex-ncr-steps__step--active .prex-ncr-steps__dot {
  background: var(--prex-navy);
  color: white;
}

.prex-ncr-steps__step--done .prex-ncr-steps__dot {
  background: var(--prex-success);
  color: white;
}

.prex-ncr-steps__label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prex-ncr-steps__step--active .prex-ncr-steps__label {
  color: var(--prex-navy);
}

.prex-ncr-steps__step--done .prex-ncr-steps__label {
  color: var(--prex-success);
}

/* ── Content area ───────────────────────────────────── */

.prex-ncr-form__content {
  flex: 1;
  overflow-y: auto;
  padding: var(--prex-space-md) var(--prex-space-xl);
}

/* ── Footer ─────────────────────────────────────────── */

.prex-ncr-form__footer {
  display: flex;
  align-items: center;
  gap: var(--prex-space-md);
  padding: var(--prex-space-md) var(--prex-space-xl) var(--prex-space-xl);
  border-top: 1px solid #f3f4f6;
}

.prex-ncr-form__spacer {
  flex: 1;
}

.prex-ncr-form__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: var(--prex-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  padding: var(--prex-space-sm) var(--prex-space-md);
  border-radius: var(--prex-radius-pill);
  transition: all var(--prex-transition);
}

.prex-ncr-form__back:hover {
  color: var(--prex-charcoal);
  background: var(--prex-warm-gray);
}

.prex-ncr-form__footer .prex-cta {
  flex: 1;
  max-width: 280px;
}

/* ── Step: Generic ──────────────────────────────────── */

.prex-ncr-step {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-lg);
}

.prex-ncr-step__section {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-sm);
}

.prex-ncr-step__heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--prex-charcoal);
  margin: 0;
  display: flex;
  align-items: center;
  gap: var(--prex-space-sm);
}

.prex-ncr-step__required {
  color: var(--prex-pink);
  font-size: 0.8125rem;
}

.prex-ncr-step__optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
  background: var(--prex-warm-gray);
  padding: 2px 8px;
  border-radius: var(--prex-radius-pill);
}

.prex-ncr-step__hint {
  font-size: 0.8125rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

.prex-ncr-step__char-count {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0;
}

/* ── Item badge ─────────────────────────────────────── */

.prex-ncr-step__item-badge {
  display: flex;
  align-items: center;
  gap: var(--prex-space-md);
  padding: var(--prex-space-md);
  background: var(--prex-warm-cream);
  border-radius: var(--prex-radius-md);
}

.prex-ncr-step__item-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--prex-radius-sm);
}

.prex-ncr-step__item-title {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
}

.prex-ncr-step__item-variant {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-ncr-step__item-counter {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--prex-navy);
  margin-top: 2px;
}

/* ── Photo upload ───────────────────────────────────── */

.prex-ncr-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--prex-space-sm);
  width: 100%;
  min-height: 120px;
  background: var(--prex-warm-cream);
  border: 2px dashed var(--prex-light-gray);
  border-radius: var(--prex-radius-md);
  cursor: pointer;
  transition: all var(--prex-transition);
  font-family: var(--prex-font);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--prex-navy);
}

.prex-ncr-upload:hover {
  border-color: var(--prex-navy);
  background: #eef0f4;
}

.prex-ncr-upload--optional {
  min-height: 80px;
  background: white;
  border-color: #e5e7eb;
  color: #6b7280;
}

.prex-ncr-upload--optional:hover {
  border-color: var(--prex-navy);
  color: var(--prex-navy);
}

.prex-ncr-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ── Photo preview ──────────────────────────────────── */

.prex-ncr-photo-preview {
  position: relative;
  display: inline-block;
  border-radius: var(--prex-radius-md);
  overflow: hidden;
}

.prex-ncr-photo-preview__img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--prex-radius-md);
  background: var(--prex-warm-cream);
}

.prex-ncr-photo-preview__remove {
  position: absolute;
  top: var(--prex-space-sm);
  right: var(--prex-space-sm);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--prex-transition);
}

.prex-ncr-photo-preview__remove:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ── Form inputs ────────────────────────────────────── */

.prex-ncr-textarea,
.prex-ncr-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--prex-radius-sm);
  font-family: var(--prex-font);
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
  transition: border-color var(--prex-transition);
  background: white;
  box-sizing: border-box;
}

.prex-ncr-textarea:focus,
.prex-ncr-input:focus {
  outline: none;
  border-color: var(--prex-navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

/* LOT# input with AI read indicator */
.prex-ncr-lot-input-wrap {
  position: relative;
}

.prex-ncr-input--ai-read {
  border-color: #059669;
  background: #f0fdf4;
}

.prex-ncr-input:disabled {
  opacity: 0.6;
  cursor: wait;
}

.prex-ncr-lot-status {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-family: var(--prex-font);
  pointer-events: none;
}

.prex-ncr-lot-status--pending {
  color: #6b7280;
  animation: prex-pulse 1.5s ease-in-out infinite;
}

.prex-ncr-lot-status--read {
  color: #059669;
  font-weight: 500;
}

@keyframes prex-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.prex-ncr-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: var(--prex-radius-sm);
  font-family: var(--prex-font);
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
  transition: border-color var(--prex-transition);
  background: white;
  box-sizing: border-box;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.prex-ncr-select:focus {
  outline: none;
  border-color: var(--prex-navy);
  box-shadow: 0 0 0 3px rgba(12, 35, 64, 0.1);
}

.prex-ncr-textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.5;
}

.prex-ncr-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--prex-charcoal);
}

/* ── Form grid ──────────────────────────────────────── */

.prex-ncr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--prex-space-md);
}

.prex-ncr-form-grid__half {
  grid-column: span 1;
}

.prex-ncr-form-grid__full {
  grid-column: span 2;
}

.prex-ncr-form-grid__quarter {
  grid-column: span 1;
}

@media (min-width: 480px) {
  .prex-ncr-form-grid {
    grid-template-columns: 1fr 1fr 1fr 1fr;
  }

  .prex-ncr-form-grid__half {
    grid-column: span 2;
  }

  .prex-ncr-form-grid__full {
    grid-column: span 4;
  }

  .prex-ncr-form-grid__quarter {
    grid-column: span 1;
  }
}

/* ── Review step ────────────────────────────────────── */

.prex-ncr-review {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-lg);
}

.prex-ncr-review__heading {
  font-family: var(--prex-font-display);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0;
}

.prex-ncr-review__section {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-xs);
}

.prex-ncr-review__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin: 0;
}

.prex-ncr-review__text {
  font-size: 0.9375rem;
  color: var(--prex-charcoal);
  margin: 0;
  line-height: 1.5;
}

.prex-ncr-review__text--mono {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.prex-ncr-review__item {
  display: flex;
  align-items: center;
  gap: var(--prex-space-md);
}

.prex-ncr-review__thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--prex-radius-sm);
  object-fit: cover;
}

.prex-ncr-review__item-title {
  display: block;
  font-weight: 500;
  font-size: 0.9375rem;
}

.prex-ncr-review__item-variant {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
}

.prex-ncr-review__item-defect {
  display: block;
  font-size: 0.8125rem;
  color: var(--prex-navy);
  font-weight: 500;
}

.prex-ncr-review__item-lot {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  font-family: monospace;
}

.prex-ncr-review__banner {
  display: flex;
  gap: var(--prex-space-md);
  padding: var(--prex-space-md);
  background: var(--prex-success-light);
  border-radius: var(--prex-radius-md);
  color: #065f46;
  font-size: 0.875rem;
  line-height: 1.5;
}

.prex-ncr-review__banner svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Confirmation card ──────────────────────────────── */

.prex-ncr-confirmation {
  text-align: center;
  padding: var(--prex-space-xl);
}

.prex-ncr-confirmation__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--prex-success-light);
  color: var(--prex-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--prex-space-lg);
}

.prex-ncr-confirmation__title {
  font-family: var(--prex-font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0 0 var(--prex-space-sm);
}

.prex-ncr-confirmation__text {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 var(--prex-space-xl);
}

.prex-ncr-confirmation__details {
  text-align: left;
  background: var(--prex-warm-cream);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-lg);
}

.prex-ncr-confirmation__section h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin: 0 0 var(--prex-space-xs);
}

.prex-ncr-confirmation__section p {
  font-size: 0.875rem;
  color: var(--prex-charcoal);
  margin: 0;
  line-height: 1.5;
}

.prex-ncr-confirmation__item {
  display: flex;
  align-items: center;
  gap: var(--prex-space-sm);
  font-size: 0.875rem;
  color: var(--prex-charcoal);
}

.prex-ncr-confirmation__thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--prex-radius-sm);
  object-fit: cover;
}

.prex-ncr-confirmation__contact {
  font-size: 0.8125rem;
  color: #9ca3af;
  margin: var(--prex-space-xl) 0 0;
}

.prex-ncr-confirmation__contact a {
  color: var(--prex-navy);
  text-decoration: underline;
}

/* ── NCR Defective Routing Banner ───────────────────── */

.prex-ncr-route {
  background: var(--prex-warm-cream);
  border-radius: var(--prex-radius-md);
  padding: var(--prex-space-lg);
  margin-top: var(--prex-space-md);
}

.prex-ncr-route__heading {
  font-family: var(--prex-font-display);
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--prex-navy);
  margin: 0 0 var(--prex-space-sm);
}

.prex-ncr-route__text {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0 0 var(--prex-space-md);
}

.prex-ncr-route__actions {
  display: flex;
  flex-direction: column;
  gap: var(--prex-space-sm);
}

.prex-ncr-route__primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--prex-space-sm);
  width: 100%;
  padding: 12px 24px;
  background: var(--prex-success);
  color: white;
  border: none;
  border-radius: var(--prex-radius-pill);
  font-family: var(--prex-font);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--prex-transition);
}

.prex-ncr-route__primary:hover {
  background: #0d8a6a;
  transform: translateY(-1px);
  box-shadow: var(--prex-shadow-md);
}

.prex-ncr-route__secondary {
  background: none;
  border: none;
  font-family: var(--prex-font);
  font-size: 0.8125rem;
  color: #6b7280;
  cursor: pointer;
  padding: var(--prex-space-sm);
  text-align: center;
  transition: color var(--prex-transition);
}

.prex-ncr-route__secondary:hover {
  color: var(--prex-charcoal);
}

/* ── Mobile responsive ──────────────────────────────── */

@media (max-width: 767px) {
  .prex-ncr-form {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    animation: prex-slide-up-mobile 0.3s ease;
  }

  .prex-ncr-form__header {
    padding: var(--prex-space-lg) var(--prex-space-lg) var(--prex-space-sm);
  }

  .prex-ncr-steps {
    padding: 0 var(--prex-space-lg) var(--prex-space-sm);
    gap: var(--prex-space-md);
  }

  .prex-ncr-form__content {
    padding: var(--prex-space-md) var(--prex-space-lg);
  }

  .prex-ncr-form__footer {
    padding: var(--prex-space-md) var(--prex-space-lg) var(--prex-space-lg);
  }

  .prex-ncr-form__footer .prex-cta {
    max-width: none;
  }

  .prex-ncr-form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .prex-ncr-form-grid__quarter {
    grid-column: span 1;
  }
}
