/** Shopify CDN: Minification failed

Line 2945:0 Unexpected "}"

**/
/* ============================================================
   SPECS COLLECTIVE — ELEVATED CUSTOMIZER CSS
   Replaces customizer.css
   Fonts: Merriweather Sans (headings), PT Serif (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Merriweather+Sans:wght@300;400;500;600;700&family=PT+Serif:ital,wght@0,400;0,700;1,400&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --sc-primary: #1a1a1a;
  --sc-cream: #f5f3f0;
  --sc-cream-dark: #f2f0ec;
  --sc-border: #ddd9d2;
  --sc-border-hover: #c5c0b8;
  --sc-desc: #888;
  --sc-muted: #999;
  --sc-price: #444;
  --sc-card-bg: rgba(255,255,255,0.5);
  --sc-card-hover: rgba(255,255,255,0.8);
  --sc-card-selected: #fff;
  --sc-heading-font: 'Merriweather Sans', sans-serif;
  --sc-body-font: 'PT Serif', Georgia, serif;
  --sc-divider: linear-gradient(90deg, transparent, #d5d0c8, transparent);
  --sc-linen: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23000000' fill-opacity='0.015'/%3E%3C/svg%3E");
}

/* ===== RESET / HIDDEN ===== */
.is-hidden { display: none; opacity: 0; visibility: hidden; }
.w-full { width: 100%; }

/* ===== INITIAL LENS OPTIONS POPUP (Step 1 — customizer-block.liquid) ===== */
.show-initial-wrapper {
  position: relative;
  display: none;
  width: 100%;
  line-height: 1.5rem;
  bottom: -100%;
}

.show-initial-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: -24rem;
  width: 100%;
  z-index: 1000000;
  margin: 0;
  padding: 24px 24px 16px;
  background: var(--sc-cream);
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  color: var(--sc-primary);
  font-family: var(--sc-body-font);
}

.show-initial-options hr {
  width: 60%;
  margin: 0 auto 16px;
  border: none;
  height: 1px;
  background: var(--sc-divider);
}

.options-heading {
  font-family: var(--sc-heading-font);
  font-size: 22px;
  font-weight: 400;
  color: var(--sc-primary);
  padding: 0 0 12px;
  text-align: center;
  line-height: 1.3;
}

.inital-close-button {
  position: absolute;
  font-size: 22px;
  font-family: var(--sc-heading-font);
  font-weight: 300;
  right: 16px;
  top: 12px;
  line-height: 1;
  cursor: pointer;
  color: #555;
  transition: color 0.2s;
}
.inital-close-button:hover { color: #000; }

/* Initial radio options container */
.initial-radio-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* Hide native radio */
.show-initial-options [type="radio"]:checked,
.show-initial-options [type="radio"]:not(:checked) {
  position: absolute;
  left: -9999px;
}

/* Single option card */
.initial-single-option {
  display: flex;
  width: 100%;
}

.radio-text-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}

.radio-input-wrapper { width: 100%; }

/* Label as card */
.show-initial-options [type="radio"]:checked + label,
.show-initial-options [type="radio"]:not(:checked) + label {
  position: relative;
  padding: 18px 20px 18px 48px;
  cursor: pointer;
  color: var(--sc-primary);
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  line-height: 1.4;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  background: var(--sc-card-bg);
  transition: all 0.25s ease;
}

.show-initial-options [type="radio"]:not(:checked) + label:hover {
  border-color: var(--sc-border-hover);
  background: var(--sc-card-hover);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.show-initial-options [type="radio"]:checked + label {
  border-color: var(--sc-primary);
  background: var(--sc-card-selected);
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

/* Custom radio circle */
.show-initial-options [type="radio"]:checked + label:not(.opt-label):before,
.show-initial-options [type="radio"]:not(:checked) + label:not(.opt-label):before {
  content: '';
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: 1.5px solid #bbb;
  border-radius: 50%;
  background: #fff;
}

.show-initial-options [type="radio"]:checked + label:not(.opt-label):before {
  border-color: var(--sc-primary);
}

.show-initial-options [type="radio"]:checked + label:not(.opt-label):after,
.show-initial-options [type="radio"]:not(:checked) + label:not(.opt-label):after {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--sc-primary);
  position: absolute;
  top: 50%;
  left: 23px;
  transform: translateY(-50%) scale(0);
  border-radius: 50%;
  transition: transform 0.2s ease;
}

.show-initial-options [type="radio"]:checked + label:not(.opt-label):after {
  transform: translateY(-50%) scale(1);
}

/* Option text */
.initial-options-text { line-height: 1.4; }

.initial-options-text-heading {
  font-family: var(--sc-heading-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--sc-primary);
}

.initial-options-text-description {
  font-family: var(--sc-body-font);
  font-size: 13px;
  color: var(--sc-desc);
  margin-top: 2px;
}

.initial-options-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
  margin-left: 16px;
}

.initial-options-price-top {
  font-family: var(--sc-body-font);
  font-size: 12px;
  color: var(--sc-muted);
  font-style: italic;
}

.initial-options-price-money {
  font-family: var(--sc-body-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--sc-primary);
}

/* Proceed button (Step 1) */
.show-initial-options .btn {
  width: 100%;
  margin: 4px 0 0;
  padding: 15px 24px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--sc-body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.show-initial-options .btn:hover {
  background: #333;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.show-initial-options .btn:disabled,
.show-initial-options .cta-btn:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ===== STEP 1 CARD-BASED LAYOUT ===== */

/* Modal header in Step 1 popup */
.show-initial-options .modal-header {
  padding: 0 0 10px;
  text-align: center;
  width: 100%;
}

.show-initial-options .modal-header h2.options-heading {
  padding: 0;
  margin-bottom: 4px;
  font-size: 24px;
}

/* Step subtitle (italic muted text) */
.show-initial-options .step-subtitle {
  font-family: var(--sc-body-font);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: var(--sc-muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* Header divider in Step 1 */
.show-initial-options .header-divider {
  width: 60%;
  margin: 0 auto 16px;
  height: 1px;
  background: var(--sc-divider);
}

/* Card wrapper in Step 1 */
.show-initial-options .initial-single-option.card {
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--sc-card-bg);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.show-initial-options .initial-single-option.card:hover {
  border-color: var(--sc-border-hover);
  background: var(--sc-card-hover);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.show-initial-options .initial-single-option.card.selected {
  border-color: var(--sc-primary);
  background: var(--sc-card-selected);
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

/* Custom radio circle in Step 1 cards */
.show-initial-options .radio-outer {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  border: 1.5px solid #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  transition: border-color 0.2s;
}

.show-initial-options .card:hover .radio-outer {
  border-color: #999;
}

.show-initial-options .card.selected .radio-outer {
  border-color: var(--sc-primary);
}

.show-initial-options .radio-inner {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sc-primary);
  transform: scale(0);
  transition: transform 0.2s ease;
}

.show-initial-options .card.selected .radio-inner {
  transform: scale(1);
}

/* Card content layout */
.show-initial-options .card-content {
  flex: 1;
}

.show-initial-options .card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.show-initial-options .card-title {
  font-family: var(--sc-heading-font);
  font-size: 17px;
  font-weight: 400;
  color: var(--sc-primary);
}

.show-initial-options .card-price {
  font-family: var(--sc-body-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--sc-price);
  white-space: nowrap;
}

.show-initial-options .card-price .prefix {
  font-family: var(--sc-body-font);
  font-weight: 400;
  font-size: 11px;
  color: var(--sc-muted);
  margin-right: 4px;
}

.show-initial-options .card-desc {
  font-family: var(--sc-body-font);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--sc-desc);
  line-height: 1.4;
}

/* CTA wrapper in Step 1 */
.show-initial-options .cta-wrapper {
  width: 100%;
  padding: 4px 0 0;
}

/* CTA button style */
.show-initial-options .cta-btn {
  width: 100%;
  padding: 15px 24px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--sc-body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.show-initial-options .cta-btn:hover {
  background: #333;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

/* Since we use card-based layout now, suppress old label-as-card styling */
.show-initial-options .card .opt-label {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  display: block;
  cursor: pointer;
}

/* Add to Cart button on product page */
[data-show-initial] {
  padding: 0 25px;
  font-size: 18px;
  min-height: 48px;
  height: 48px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 48px;
  margin-top: 20px;
  text-transform: uppercase;
}

/* ===== MODAL (Steps 2+) ===== */
.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
  transition: all 0.35s ease-in;
  z-index: 100000000;
}

.modal.is-visible {
  visibility: visible;
  opacity: 1;
}

.modal h1, .modal .h1, .modal h2, .modal .h2,
.modal h3, .modal .h3, .modal h4, .modal .h4,
.modal h5, .modal .h5, .modal h6, .modal .h6 {
  font-family: var(--sc-heading-font) !important;
  text-transform: unset;
  font-weight: 400;
}

.modal-dialog {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  background: #fff;
  cursor: default;
  overflow: auto;
}

.modal-dialog .modal-content {
  display: flex;
  width: 100%;
}

/* ===== LEFT PANEL — Image + Summary ===== */
.modal-image-holder {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  height: 100vh;
}

.modal-image {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-height: 100vh;
}

.modal-image-wrapper {
  max-width: calc((100vw - 11.5rem) / 2);
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #fff;
}

.modal-dialog .modal-content .modal-image-holder img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

/* Order summary in left panel */
.selection-details {
  padding: 0 32px 20px;
  background: var(--sc-cream);
  border-top: none;
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
}

/* Top accent divider */
.selection-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sc-border), transparent);
}

/* Summary group spacing */
.selection-details .summary-group {
  padding-top: 10px;
}

.selection-details h3 {
  font-family: var(--sc-heading-font) !important;
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sc-muted);
  margin-bottom: 5px;
}

/* Line item cards */
.selection-details .line-item {
  display: flex;
  justify-content: space-between;
  align-items: center !important;
  padding: 8px 12px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--sc-border);
  border-radius: 5px;
  transition: all 0.35s ease;
  min-height: 0;
}

.selection-details .line-item .item-details {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.3;
}

/* Vendor name (e.g. MYKITA) */
.selection-details .vendor-name {
  font-family: var(--sc-heading-font);
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-primary);
  opacity: 0.5;
  margin: 0;
  padding: 0;
  line-height: 1.3;
}

/* Pending line items — hidden until populated */
.selection-details .line-item--pending {
  opacity: 0;
  max-height: 0;
  padding: 0 12px;
  border-color: transparent;
  overflow: hidden;
  margin-top: 0;
}
.selection-details .line-item--pending.line-item--filled {
  opacity: 1;
  max-height: 50px;
  padding: 8px 12px;
  border-color: var(--sc-border);
}

/* Empty state placeholders */
.selection-details .empty-state {
  padding: 6px 12px;
  border: 1px dashed var(--sc-border);
  border-radius: 5px;
  font-family: var(--sc-body-font);
  font-size: 11px;
  font-style: italic;
  color: #c0bbb3;
}

/* Keep info-row flex behavior for JS compatibility */
.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
}

.info-row.is-hidden { display: none; opacity: 0; visibility: hidden; }

/* Override info-row defaults when also a line-item */
.info-row.line-item { padding: 8px 12px; align-items: center !important; }
.info-row.line-item.line-item--pending { padding: 0 12px; }
.info-row.line-item.line-item--pending.line-item--filled { padding: 8px 12px; }

/* Ensure all selection-details line items center vertically */
.selection-details .line-item { align-items: center !important; }

.info-row h2.title,
.line-item h2.title {
  font-family: var(--sc-heading-font) !important;
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-primary);
  line-height: 1.3;
  margin: 0;
  padding: 0;
}

span.variant-title {
  font-family: var(--sc-body-font);
  font-size: 11.5px;
  font-style: italic;
  color: var(--sc-muted);
  line-height: 1.3;
}

.info-row h5.price,
.selection-details h5.price,
.line-item h5.price {
  font-family: var(--sc-body-font) !important;
  font-size: 13px;
  font-weight: 400;
  color: var(--sc-price);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

/* Subtotal divider */
.selection-details .subtotal-divider {
  margin: 10px 0 0;
  height: 1px;
  background: linear-gradient(90deg, var(--sc-border), var(--sc-border-hover), var(--sc-border));
}

/* Remove old hr */
.selection-details hr { display: none; }

.subtotal {
  padding-top: 8px;
}

.subtotal h2.title {
  font-family: var(--sc-heading-font) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.subtotal .total-price {
  font-family: var(--sc-heading-font) !important;
  font-size: 17px;
  font-weight: 500;
  color: var(--sc-primary);
  letter-spacing: 0.01em;
}

/* ===== RIGHT PANEL — Questionnaire ===== */
.modal-questionnaire {
  position: relative;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 480px;
  max-width: 480px;
  padding: 0;
  background: var(--sc-cream);
  box-shadow: -8px 0 20px rgba(0,0,0,0.08);
  overflow-y: auto;
}

/* Nav progress bar */
.nav-buttons {
  display: flex;
  flex-direction: row;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 3;
}

.nav-buttons ul {
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  width: 100%;
  list-style: none;
}

.nav-buttons ul li {
  width: 12.5%;
  height: 3px;
  background: transparent;
  transition: background 0.3s;
}

.nav-buttons ul li.active-tab {
  background: var(--sc-primary);
}

/* Nav wrapper (back, subtotal mobile, close) */
.nav-wrapper-content {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  position: absolute;
  top: 12px;
  left: 16px;
  width: calc(100% - 32px);
  z-index: 4;
}

button.previous-step {
  background: transparent;
  border: none;
  color: var(--sc-muted);
  padding: 0;
  height: 2rem;
  width: 2rem;
  cursor: pointer;
  transition: color 0.2s;
}

button.previous-step:hover { color: #333; }
button.previous-step[data-prev-tab=""] { opacity: 0; pointer-events: none; }

.subtotal-content {
  display: none;
  font-family: var(--sc-heading-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--sc-primary);
  letter-spacing: 0.04em;
}

.sub-total-mobile {
  font-family: var(--sc-body-font);
  font-weight: 700;
}

.modal-dialog .close-modal {
  height: 2rem;
  width: 2rem;
  padding: 0;
  background: transparent;
  border: 0;
  color: #555;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-dialog .close-modal:hover { color: #000; }

/* ===== STEPS ===== */
.modal-questions { width: 100%; }

.steps { display: none; }

.steps.is-visible {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 0px);
}

.step-content {
  text-align: center;
  padding: 50px 28px 0;
  flex: 1;
  overflow-y: auto;
}

/* Step heading */
.steps h1 {
  font-family: var(--sc-heading-font) !important;
  font-size: 24px;
  font-weight: 400;
  color: var(--sc-primary);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  text-align: center;
}

/* Step subtitle (for blocks that have it) */
.steps .step-subtitle {
  font-family: var(--sc-body-font);
  font-size: 13px;
  font-style: italic;
  color: var(--sc-muted);
  margin-bottom: 8px;
}

/* Header divider */
.step-content > .header-divider {
  width: 60%;
  margin: 0 auto 20px;
  height: 1px;
  background: var(--sc-divider);
}

/* ===== OPTION CARDS ===== */
.available-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.single-option {
  padding: 20px 22px;
  border-radius: 6px;
  cursor: pointer;
  background: var(--sc-card-bg);
  border: 1px solid var(--sc-border);
  color: var(--sc-primary);
  transition: all 0.25s ease;
}

.single-option:hover {
  border-color: var(--sc-border-hover);
  background: var(--sc-card-hover);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.single-option:active {
  transform: scale(0.99);
}

.single-option.selected {
  border-color: var(--sc-primary);
  background: var(--sc-card-selected);
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

.single-option h6 {
  font-family: var(--sc-heading-font) !important;
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 0;
  color: var(--sc-primary);
}

.single-option .button-price {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0;
}

.single-option p.price {
  margin-bottom: 0;
  font-family: var(--sc-body-font);
  font-size: 17px;
  font-weight: 700;
  color: var(--sc-primary);
  white-space: nowrap;
}

.single-option p.price small {
  font-size: 12px;
  font-weight: 400;
  color: var(--sc-muted);
  font-style: italic;
}

.price small { font-size: 12px; }

/* Option details / description */
.option-details {
  padding: 10px 0 0;
  background: transparent;
  font-family: var(--sc-body-font);
  font-size: 14px;
  color: var(--sc-desc);
  text-align: left;
  line-height: 1.5;
}

.option-details p {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--sc-desc);
}

.option-details p:has(+ ul) { margin-bottom: 6px; }
.option-details p + ul { margin-bottom: 8px; }

.option-details ul {
  margin: 0 0 0 18px;
  color: var(--sc-desc);
  font-size: 13px;
}

.option-details ul li {
  margin-bottom: 2px;
}

.option-detail,
.patient-info,
.doctor-info,
.input-wrapper {
  display: flex;
  flex-direction: column;
}

.option-detail,
.patient-info,
.doctor-info {
  gap: 1rem;
  text-align: left;
}

/* ===== STEP FOOTER / CTA BUTTONS ===== */
.step-footer {
  display: flex;
  gap: 1rem;
  padding: 16px 28px 28px;
}

.next-step,
.add-to-cart-btn.btn {
  width: 100%;
}

.next-step.btn,
.btn.btn--large,
[data-checkout] {
  width: 100%;
  padding: 15px 24px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--sc-body-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, opacity 0.2s;
}

.next-step.btn:hover,
.btn.btn--large:hover,
[data-checkout]:hover {
  background: #333;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.next-step.btn:disabled,
.btn.btn--large:disabled,
[data-checkout]:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn svg { height: 24px; width: 24px; }

/* ===== COLOR LISTS (Transitions, Tinted, Polarized) ===== */

/* Transitions color grid */
.colors-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  border: none;
}

.single-color {
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  background: var(--sc-card-bg);
  transition: all 0.25s ease;
}

.single-color:hover {
  border-color: var(--sc-border-hover);
  background: var(--sc-card-hover);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.single-color.selected {
  border-color: var(--sc-primary);
  border-width: 2px;
  background: var(--sc-card-selected);
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

.single-color h5 {
  font-family: var(--sc-heading-font) !important;
  font-size: 14px;
  font-weight: 500;
  margin-top: 8px;
}

.single-color img {
  border-radius: 50%;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.gens-logo-wrapper { text-align: center; margin-bottom: 16px; }
.gens-logo-wrapper h5 {
  font-size: 14px;
  font-style: italic;
  color: var(--sc-muted);
}
.gens-logo { max-height: 3rem; }

/* Sunglass color option items (Tinted/Polarized) */
.options-list {
  border: none;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item {
  cursor: pointer;
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  background: var(--sc-card-bg);
  transition: all 0.25s ease;
  align-items: center;
}

.option-item:hover {
  border-color: var(--sc-border-hover);
  background: var(--sc-card-hover);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.option-item.selected {
  border-color: var(--sc-primary);
  border-width: 2px;
  background: var(--sc-card-selected);
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

.option-item .color-image {
  width: 64px;
  min-width: 64px;
}

.option-item .color-image img {
  border-radius: 50%;
  width: 64px;
  height: 64px;
  object-fit: cover;
}

/* Match Frame Tint swatch — dashed ring + checkmark */
.match-swatch {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: #f5f3ef;
  border: 2px solid #b0aaa0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-swatch .inner-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed #a09a90;
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-swatch svg {
  width: 20px;
  height: 20px;
  stroke: #8a8580;
  stroke-width: 1.5;
  fill: none;
}

/* Hide Grey-Green (G15) for all materials */
.option-item[data-title*="G15"] {
  display: none !important;
}

/* Other swatch — color wheel ring (Option B) */
.other-swatch {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 50%;
  background: conic-gradient(
    #c4a882 0deg,
    #bfb08a 45deg,
    #a0b090 90deg,
    #8aaa9a 135deg,
    #8a9ab0 180deg,
    #9a8aaa 225deg,
    #b08a9a 270deg,
    #c09888 315deg,
    #c4a882 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.other-swatch::before {
  content: '';
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
}
.other-swatch__qmark {
  position: absolute;
  font-size: 20px;
  font-weight: 600;
  color: #a09a90;
  line-height: 1;
}

.option-item h2 {
  font-family: var(--sc-heading-font) !important;
  font-size: 16px;
  font-weight: 500;
}

.option-item p {
  margin-bottom: 4px;
  line-height: 1.4;
  font-size: 13px;
  color: var(--sc-desc);
}

.color-details { text-align: left; }

#custom_tint_text {
  width: 100%;
  padding: 8px 12px;
  margin-top: 8px;
  border: 1px solid var(--sc-border);
  border-radius: 4px;
  font-family: var(--sc-body-font);
  font-size: 14px;
}

/* ===== PRESCRIPTION STEP (Upload / Doctor) ===== */
.additional-detail {
  margin-top: 0;
  display: none;
  text-align: left;
}

/* Doctor info form */
.doctor-info h1 { margin: 0 0 16px; }
.patient-info h1 { margin: 24px auto 16px; }

label {
  text-align: left;
  font-family: var(--sc-heading-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-primary);
  margin-bottom: 4px;
}

input[type="text"],
input[type="file"],
input[type="date"],
input[type="color"] {
  font-size: 15px;
  line-height: 1.4;
  font-family: var(--sc-body-font);
  font-weight: 400;
  background: #fff;
  color: var(--sc-primary);
  border: 1px solid var(--sc-border);
  padding: 10px 14px;
  margin: 0;
  border-radius: 4px;
  -webkit-appearance: none;
  box-sizing: border-box;
  max-width: 100%;
  transition: border-color 0.2s;
}

input[type="text"]:focus {
  border-color: var(--sc-primary);
  outline: none;
}

input[type="color"] {
  height: 3rem;
  width: 3rem;
  padding: 2px;
  border-radius: 100px;
}

input[type="color"]::-webkit-color-swatch,
input[type="color"]::-moz-color-swatch {
  border-radius: 100px;
  border: none;
}

.hepler, .helper {
  font-family: var(--sc-body-font);
  font-size: 12px;
  color: var(--sc-muted);
  margin-top: 6px;
}

.selected-file {
  display: none;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 8px;
}

.selected-file.is-visible { display: block; }

.input-group-dob {
  display: flex;
  gap: 8px;
}

#patient_dob_month, #patient_dob_date { width: 30%; text-align: center; }
#patient_dob_year { width: 40%; text-align: center; }

.example-image img { max-width: 80%; margin: 16px auto; }

/* ===== PD STEP ===== */
.what-is-pd { margin-bottom: 20px; }

.what-is-pd h5 {
  font-family: var(--sc-heading-font) !important;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.toggle-pd-answer {
  cursor: pointer;
  position: relative;
  top: -1px;
}

.toggle-pd-answer svg { height: 16px; width: 16px; fill: transparent; }

.toggle-pd-answer.show > .minus,
.toggle-pd-answer > .plus { display: block !important; }

.toggle-pd-answer.show > .plus,
.toggle-pd-answer .minus { display: none !important; }

.pd-answer { display: none; }

.pd-answer.is-visible {
  display: flex;
  flex-direction: column;
  font-family: var(--sc-body-font);
  font-size: 13px;
  color: var(--sc-desc);
  gap: 8px;
  margin-top: 8px;
}

/* PD inputs */
.input-wrapper.single-pd { flex-direction: column; }

.input-wrapper.multiple-pd {
  flex-direction: row;
  gap: 1rem;
  display: none;
}

.half-input { display: flex; flex-direction: column; flex: 1; }

/* PD toggle checkbox */
input[type=checkbox].custom-checkbox { height: 0; width: 0; visibility: hidden; }

label.checkbox {
  cursor: pointer;
  text-indent: -9999px;
  width: 3rem;
  height: 1.5rem;
  background: #ccc;
  display: block;
  border-radius: 100px;
  position: relative;
  transition: background 0.3s;
}

label.checkbox:after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1.25rem;
  height: 1.25rem;
  background: #fff;
  border-radius: 90px;
  transition: 0.3s;
}

input.custom-checkbox:checked + label.checkbox { background: var(--sc-primary); }

input.custom-checkbox:checked + label.checkbox:after {
  left: calc(100% - 2px);
  transform: translateX(-100%);
}

label.checkbox:active:after { width: 1.5rem; }

.checkbox-input-wrapper { display: flex; align-items: center; }
.checkbox-input { flex-direction: row; gap: 1rem; }

.checkbox-helper-text {
  font-family: var(--sc-body-font);
  font-size: 13px;
  color: var(--sc-desc);
  margin-left: 8px;
}

.pd-test-info {
  display: none;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  gap: 1rem;
}

.pd-test-wrapper {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 2.5%;
}

.pd-step {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--sc-border);
  border-radius: 12px;
  padding: 1rem;
  align-items: center;
}

.pd-step * { margin: 0; padding: 0; }

/* Color list / swatch grid (legacy) */
.color-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  justify-items: center;
  gap: 1rem 2rem;
}

.color {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color-swatch {
  height: 2rem;
  width: 2rem;
  border-radius: 100%;
}

.custom-color-input { display: none; }
.custom-color-input.is-visible { display: flex; }

/* ===== MATERIAL-SPECIFIC COLOR FILTERING ===== */
.step-two[data-selected-material="Trivex"] ~ .step-four .option-item[data-title*="G15"],
.step-two[data-selected-material="Trivex"] ~ .step-four .single-color[data-title*="Sapphire"],
.step-two[data-selected-material="Trivex"] ~ .step-four .single-color[data-title*="Amethyst"],
.step-two[data-selected-material="Trivex"] ~ .step-four .single-color[data-title*="Amber"],
.step-two[data-selected-material="Trivex"] ~ .step-four .single-color[data-title*="Ruby"],
.step-two[data-selected-material="Trivex"] ~ .step-four .single-color[data-title*="Emerald"],
.step-two[data-selected-material="High Index 1.74"] ~ .step-four .single-color[data-title*="Graphite Green"],
.step-two[data-selected-material="High Index 1.74"] ~ .step-four .single-color[data-title*="Sapphire"],
.step-two[data-selected-material="High Index 1.74"] ~ .step-four .single-color[data-title*="Amethyst"],
.step-two[data-selected-material="High Index 1.74"] ~ .step-four .single-color[data-title*="Amber"],
.step-two[data-selected-material="High Index 1.74"] ~ .step-four .single-color[data-title*="Ruby"],
.step-two[data-selected-material="High Index 1.74"] ~ .step-four .single-color[data-title*="Emerald"] {
  display: none;
}

/* ===== TIDIO CHAT OVERRIDES ===== */
body.customizer-open iframe#tidio-chat-iframe .grid-layout.widget-position-right,
body.customizer-open #tidio-chat .grid-layout.widget-position-right {
  inset: unset !important;
}

/* ===== LABEL OPT OVERRIDES ===== */
.opt-label { padding: 0px 15px !important; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 850px) {
  .modal-dialog .modal-content {
    flex-direction: column;
  }

  .modal-image-holder { display: none; }

  .modal-questionnaire {
    flex: 1;
    max-width: 100%;
    box-shadow: none;
  }

  .subtotal-content { display: block; }

  .initial-options-text-description,
  .initial-options-price-top {
    font-size: 12px;
  }

  .option-details ul li:not(:first-child) { display: none; }

  .hidden-mobile { display: none; }

  .option-details p + ul { margin-bottom: 0; }

  .single-option h6 { text-align: left; }

  .input-wrapper.multiple-pd { flex-direction: column; }

  .half-input { display: flex; flex-direction: column; }

  .step-content {
    padding: 50px 20px 0;
  }

  .step-footer {
    padding: 16px 20px 20px;
  }

  body.customizer-open iframe#tidio-chat-iframe,
  body.customizer-open #tidio-chat {
    display: none !important;
  }

  .show-initial-options {
    top: -26rem;
  }
}

.hidden-mobile { display: block; }

/* ===== EYEMEASURE APP SECTION (Step 8 — Measure PD) ===== */

.app-card {
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  padding: 22px;
  background: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.app-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.app-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(120,190,210,0.35);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-info { flex: 1; }

.app-name {
  font-family: var(--sc-heading-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--sc-primary);
  margin-bottom: 2px;
}

.app-subtitle {
  font-family: var(--sc-body-font);
  font-size: 12px;
  color: var(--sc-muted);
  font-style: italic;
}

.app-desc {
  font-family: var(--sc-body-font);
  font-size: 13px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 16px;
}

.app-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: var(--sc-primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--sc-heading-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.app-link:hover {
  background: #333;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.app-link svg {
  width: 14px;
  height: 14px;
}

/* Desktop: QR code */
.app-download {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.app-qr {
  width: 96px;
  min-width: 96px;
  height: 96px;
  border-radius: 6px;
  background: #fff;
  padding: 6px;
  border: 1px solid #e8e5e0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.app-qr canvas,
.app-qr img { width: 100%; height: 100%; display: block; }

.app-download-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.app-scan-note {
  font-family: var(--sc-body-font);
  font-size: 12.5px;
  color: var(--sc-desc);
  font-style: italic;
  line-height: 1.5;
}

.app-manual-note {
  font-family: var(--sc-body-font);
  font-size: 11.5px;
  color: #aaa;
  line-height: 1.5;
}

/* Mobile: direct link, desktop: QR */
.app-download-mobile { display: none; }
.app-download-desktop { display: flex; }

/* PD entry card (EyeMeasure flow) */
.pd-entry {
  border: 1px solid var(--sc-border);
  border-radius: 6px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.pd-entry-title {
  font-family: var(--sc-heading-font);
  font-size: 14px;
  font-weight: 400;
  color: var(--sc-primary);
  margin-bottom: 4px;
}

.pd-entry-desc {
  font-family: var(--sc-body-font);
  font-size: 12.5px;
  color: var(--sc-desc);
  line-height: 1.5;
  margin-bottom: 14px;
}

.pd-fields {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.pd-field { flex: 1; }

.pd-field label {
  display: block;
  font-family: var(--sc-heading-font);
  font-size: 11px;
  font-weight: 400;
  color: var(--sc-desc);
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}

.pd-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--sc-border);
  border-radius: 4px;
  background: rgba(255,255,255,0.6);
  font-family: var(--sc-body-font);
  font-size: 15px;
  color: var(--sc-primary);
  text-align: center;
  transition: all 0.2s ease;
}

.pd-field input::placeholder {
  color: #ccc;
  font-style: italic;
}

.pd-field input:focus {
  outline: none;
  border-color: var(--sc-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

/* Reassurance note */
.reassurance {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(245,243,240,0.6);
  border-radius: 6px;
}

.reassurance svg {
  width: 18px;
  height: 18px;
  color: #6a9a6a;
  flex-shrink: 0;
  margin-top: 1px;
}

.reassurance span {
  font-family: var(--sc-body-font);
  font-size: 12.5px;
  color: #666;
  line-height: 1.5;
}

/* PD toggle (I have 2 numbers) */
.pd-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.pd-toggle-track {
  width: 36px;
  height: 20px;
  border-radius: 10px;
  background: #d5d0c8;
  position: relative;
  transition: background 0.25s ease;
  flex-shrink: 0;
}

.pd-toggle-track.on { background: var(--sc-primary); }

.pd-toggle-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pd-toggle-track.on::after { transform: translateX(16px); }

.pd-toggle-label {
  font-family: var(--sc-body-font);
  font-size: 12.5px;
  color: var(--sc-desc);
}

.pd-hint {
  font-family: var(--sc-body-font);
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
  line-height: 1.5;
}

/* Mobile override for EyeMeasure */
@media (max-width: 850px) {
  .app-download-mobile { display: inline-flex; }
  .app-download-desktop { display: none; }
}

/* ===== STEP 1 POPUP FIX – high-specificity overrides ===== */

/* Fix close button (reset button defaults) */
button.inital-close-button {
  background: none !important;
    border: none !important;
      padding: 0 !important;
        outline: none;
        }

        /* Neutralize old label-as-card styles inside .card wrappers */
        .show-initial-options .card [type="radio"]:checked + label.opt-label,
        .show-initial-options .card [type="radio"]:not(:hecked) + label.opt-label {
          padding: 0 !important;
            border: none !important;
              border-radius: 0 !important;
                background: transparent !important;
                  box-shadow: none !important;
                    transform: none !important;
                      display: block !important;
                        cursor: pointer;
                        }

                        .show-initial-options .card [type="radio"]:not(:checked) + label.opt-label:hover {
                          border: none !important;
                            background: transparent !important;
                              box-shadow: none !important;
                                transform: none !important;
                                }


                                /* ===== STEP 1 POPUP REFINEMENTS (matching mockup) ===== */

                                /* 1. ADD TO CART button — larger text, properly centered */
                                [data-show-initial] {
                                    font-size: 22px !important;
                                      min-height: 54px !important;
                                        height: 54px !important;
                                          line-height: 54px !important;
                                            letter-spacing: 0.08em !important;
                                              text-align: center !important;
                                                display: flex !important;
                                                  align-items: center !important;
                                                    justify-content: center !important;
                                }

                                /* 2. PROCEED TO CHECKOUT / CTA button — larger to match mockup */
                                .show-initial-options .cta-btn {
                                    padding: 16px 24px !important;
                                      font-size: 15px !important;
                                        letter-spacing: 0.14em !important;
                                          min-height: 52px !important;
                                }

                                /* 3. Radio circles — align with first line of text */
                                .show-initial-options .initial-single-option.card {
                                    align-items: flex-start !important;
                                }

                                /* 4. Popup position — shift left to fully cover color swatches */
                                .show-initial-options {
                                    left: -10px !important;
                                      width: calc(100% + 10px) !important;
                                }

                                /* 5. Radio outer — push down to align with title text */
.show-initial-options .radio-outer {
    margin-top: 8px !important;
}

/* 6. Card row — spacing between title and description */
.show-initial-options .card-row {
  margin-bottom: 4px !important;
}

/* 7. Fix label layout — stack title/price row above description */
.show-initial-options label.opt-label {
  display: block !important;
  }

  /* ===== STEP 2+ CONFIGURATOR FIXES (matching mockup) ===== */

  /* 8. Step indicator — small dots with active pill */
  .nav-buttons {
      display: flex !important;
        justify-content: center !important;
          padding: 16px 0 4px !important;
  }

  .nav-buttons ul {
      display: flex !important;
        align-items: center !important;
          justify-content: center !important;
            gap: 8px !important;
              width: auto !important;
  }

  .nav-buttons ul li {
      width: 6px !important;
        height: 6px !important;
          border-radius: 50% !important;
            background: #d5d0c8 !important;
              flex: none !important;
                transition: all 0.3s ease !important;
  }

  .nav-buttons ul li.active-tab {
      width: 20px !important;
        border-radius: 3px !important;
          background: #1a1a1a !important;
  }

  .nav-buttons ul li.completed-tab {
      background: #999 !important;
  }

  /* 9. Frame image area — white bg, centered, stacked layout */
  .modal-image-holder {
      background: #fff !important;
  }

  .modal-image {
      flex-direction: column !important;
        align-items: center !important;
          justify-content: flex-start !important;
            background: #fff !important;
            min-height: 100vh !important;
  }

  .modal-image-wrapper {
      display: flex !important;
        align-items: center !important;
          justify-content: center !important;
            flex: 1 1 auto !important;
              width: 100% !important;
  }

  .selection-details {
      width: 100% !important;
        border-top: none !important;
  }

  /* 10. Fix step indicator list markers */
  .nav-buttons ul {
      list-style: none !important;
          padding-left: 0 !important;
              margin: 0 !important;
              }

              .nav-buttons ul li {
                  list-style: none !important;
                      display: block !important;
                      }

                      /* 11. Remove grey background from frame image wrapper */
                      .modal-image-wrapper {
                          background: #fff !important;
                          }

/* ============================================
   STEP 3: LENS MATERIAL
   ============================================ */

/* 12. Card icon circle */
.step-two .card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #f0eeeb;
  border: 1px solid #e0ddd8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

.step-two .card-icon svg {
  width: 18px;
  height: 18px;
  color: #999;
  transition: color 0.25s ease;
}

.step-two .single-option:hover .card-icon {
  background: #e8e5e0;
  border-color: #d5d0c8;
}

.step-two .single-option:hover .card-icon svg {
  color: #666;
}

/* 13. Card top layout with icon */
.step-two .card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-two .card-top .card-content {
  flex: 1;
  min-width: 0;
}

/* 14. Caption description refinement */
.step-two .option-details > p:first-child {
  font-size: 12.5px;
  color: var(--sc-desc);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* 15. Custom bullet dots */
.step-two .option-details ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.step-two .option-details ul li {
  font-size: 12px !important;
  color: #999 !important;
  line-height: 1.6 !important;
  padding-left: 14px !important;
  position: relative !important;
  list-style: none !important;
}

.step-two .option-details ul li::before {
  content: '' !important;
  position: absolute !important;
  left: 0 !important;
  top: 8px !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #ccc !important;
}

/* 16. Subtitle italic style */
.step-two .step-subtitle {
  font-style: italic !important;
  color: var(--sc-muted) !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}

/* 17. Chevron arrow */
.step-two .card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 8px;
}

.step-two .card-arrow svg {
  width: 16px;
  height: 16px;
  color: #ccc;
  transition: all 0.25s ease;
}

.step-two .single-option:hover .card-arrow svg {
  color: #888;
  transform: translateX(3px);
}

/* 18. Mobile collapsible details toggle */
.step-two .details-toggle {
  display: none;
  font-family: var(--sc-body-font);
  font-size: 11px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 4px;
  transition: color 0.2s;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  text-transform: none !important;
}

.step-two .details-toggle:hover {
  color: #666;
}

.step-two .details-toggle svg {
  width: 10px;
  height: 10px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.step-two .details-toggle.open svg {
  transform: rotate(180deg);
}

/* 19. Mobile overrides for Step 3 */
@media (max-width: 768px) {
  .step-two .card-icon { width: 32px; height: 32px; min-width: 32px; }
  .step-two .card-icon svg { width: 16px; height: 16px; }
  .step-two .button-price h6 { font-size: 15px; }
  .step-two .button-price .price { font-size: 14px; }
  .step-two .option-details > p:first-child { font-size: 12px; margin-bottom: 4px; }
  .step-two .card-arrow { display: none !important; }
  .step-two .details-toggle { display: inline-block; }
  .step-two .option-details ul { display: none; margin-top: 6px; }
  .step-two .option-details ul.show { display: block; }
  .step-two .option-details ul.show li { display: block !important; }
}

/* 20. Mobile: Subtotal above step indicator, back button styling */
@media (max-width: 768px) {
  .nav-wrapper-content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 10px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    z-index: 5 !important;
  }
  .subtotal-content {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    font-size: 15px !important;
    color: #888 !important;
  }
  .subtotal-content .sub-total-mobile {
    color: var(--sc-primary) !important;
    font-size: 16px !important;
  }
  .nav-buttons {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
  }
}

/* 21. Back button with text */
button.previous-step {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: auto !important;
  height: auto !important;
  font-family: var(--sc-heading-font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #999 !important;
  text-transform: none !important;
}
button.previous-step:hover {
  color: #333 !important;
}
button.previous-step svg {
  width: 14px !important;
  height: 14px !important;
}

/* 22. Inline step indicator for all configurator steps */
.step-one .inline-step-indicator,
.step-two .inline-step-indicator,
.step-three .inline-step-indicator,
.step-four .inline-step-indicator,
.step-five .inline-step-indicator,
.step-six .inline-step-indicator,
.step-seven .inline-step-indicator,
.step-eight .inline-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 4px;
}
.step-one .inline-step-indicator .step-dot,
.step-two .inline-step-indicator .step-dot,
.step-three .inline-step-indicator .step-dot,
.step-four .inline-step-indicator .step-dot,
.step-five .inline-step-indicator .step-dot,
.step-six .inline-step-indicator .step-dot,
.step-seven .inline-step-indicator .step-dot,
.step-eight .inline-step-indicator .step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d5d0c8;
  transition: all 0.3s ease;
}
.step-one .inline-step-indicator .step-dot.active,
.step-two .inline-step-indicator .step-dot.active,
.step-three .inline-step-indicator .step-dot.active,
.step-four .inline-step-indicator .step-dot.active,
.step-five .inline-step-indicator .step-dot.active,
.step-six .inline-step-indicator .step-dot.active,
.step-seven .inline-step-indicator .step-dot.active,
.step-eight .inline-step-indicator .step-dot.active {
  width: 20px;
  border-radius: 3px;
  background: #1a1a1a;
}
.step-one .inline-step-indicator .step-dot.completed,
.step-two .inline-step-indicator .step-dot.completed,
.step-three .inline-step-indicator .step-dot.completed,
.step-four .inline-step-indicator .step-dot.completed,
.step-five .inline-step-indicator .step-dot.completed,
.step-six .inline-step-indicator .step-dot.completed,
.step-seven .inline-step-indicator .step-dot.completed,
.step-eight .inline-step-indicator .step-dot.completed {
  background: #999;
}

/* 23. Hide global nav-buttons when inline indicator is shown */
.nav-buttons.hidden-for-step {
  display: none !important;
}


/* 24. Desktop card tightening — fit all 4 lens options without scroll */
@media (min-width: 769px) {
  .step-two .available-options {
    gap: 10px;
  }
  .step-two .single-option {
    padding: 14px 22px;
  }
  .step-two .option-details > p:first-child {
    margin-bottom: 4px;
  }
  .step-two .option-details ul li {
    line-height: 1.4 !important;
  }
  .step-two .card-arrow {
    margin-top: 4px;
  }
}

/* 25. Step indicator — tighten top spacing */
.step-one .header-divider,
.step-two .header-divider,
.step-three .header-divider,
.step-four .header-divider,
.step-five .header-divider,
.step-six .header-divider,
.step-seven .header-divider,
.step-eight .header-divider {
  margin-bottom: 0 !important;
}
.step-one .inline-step-indicator,
.step-two .inline-step-indicator,
.step-three .inline-step-indicator,
.step-four .inline-step-indicator,
.step-five .inline-step-indicator,
.step-six .inline-step-indicator,
.step-seven .inline-step-indicator,
.step-eight .inline-step-indicator {
  padding: 14px 0 16px;
}

/* 26. Responsive order summary — proper flex containment on wide screens */
.modal-image-holder {
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-image {
  width: 100%;
  min-width: 0;
}

.modal-image .selection-details {
  width: 100%;
  box-sizing: border-box;
}


/* 28. Add-ons step (step-three) — elevated card design */

/* Card icon circles */
.step-three .card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #f0eeeb;
  border: 1px solid #e0ddd8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.step-three .card-icon svg {
  width: 18px;
  height: 18px;
  color: #999;
  transition: color 0.25s ease;
}

.step-three .single-option:hover .card-icon {
  background: #e8e5e0;
  border-color: #d5d0c8;
}

.step-three .single-option:hover .card-icon svg {
  color: #666;
}

.step-three .single-option.selected .card-icon {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.step-three .single-option.selected .card-icon svg {
  color: #fff;
}

/* Card top layout with icon */
.step-three .card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-three .card-top .card-content {
  flex: 1;
}

/* Card hover and selected states */
.step-three .single-option {
  position: relative;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.5);
}

.step-three .single-option:hover {
  border-color: #c5c0b8;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.step-three .single-option.selected {
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

/* Checkbox indicator */
.step-three .card-check {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-three .single-option:hover .card-check {
  border-color: #999;
}

.step-three .single-option.selected .card-check {
  background: #1a1a1a;
  border-color: #1a1a1a;
}

.step-three .card-check svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.step-three .single-option.selected .card-check svg {
  opacity: 1;
  transform: scale(1);
}

/* Subtitle italic style */
.step-three .step-subtitle {
  font-style: italic;
  color: #999;
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* Skip upgrades link */
.step-three .skip-link {
  display: block;
  text-align: center;
  padding: 0 28px 24px;
  font-family: var(--sc-body-font);
  font-size: 12px;
  color: #999;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s;
}

.step-three .skip-link:hover {
  color: #666;
}

/* Price prefix styling */
.step-three .single-option p.price::before {
  content: "+ ";
  font-size: 11px;
  color: #999;
}

/* Option details — concise description */
.step-three .option-details p {
  font-size: 12.5px;
  color: #888;
  line-height: 1.5;
}

/* Mobile overrides for step-three add-ons */
@media (max-width: 768px) {
  .step-three .card-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
  }
  .step-three .card-icon svg {
    width: 16px;
    height: 16px;
  }
  .step-three .skip-link {
    padding: 0 20px 20px;
  }
}

/* 29. Step-three layout fixes — button full-width, skip below, checkbox clearance */

/* Step footer: stack button and skip link vertically */
.step-three .step-footer {
  flex-direction: column;
  gap: 0;
  padding: 8px 0 0;
}

.step-three .step-footer .next-step {
  width: 100%;
}

/* Skip link sits below the CTA button */
.step-three .skip-link {
  display: block;
  text-align: center;
  padding: 12px 28px 24px;
}

/* Card padding for checkbox clearance */
.step-three .single-option {
  padding-bottom: 42px;
}

/* Card description: right padding to avoid checkbox overlap */
.step-three .card-content .option-details {
  padding-right: 28px;
}

/* Mobile override for step-three card padding */
@media (max-width: 768px) {
  .step-three .single-option {
    padding-bottom: 38px;
  }
  .step-three .step-footer {
    padding: 8px 20px 0;
  }
  .step-three .skip-link {
    padding: 10px 20px 20px;
  }
  }

/* ===== Sunglass Lens Options — step-three sun path ===== */

.sun-options.available-options .single-option {
  padding: 22px 24px;
  padding-bottom: 22px;
}

.sun-options .card-content-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
}

.sun-options .card-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: #f0eeeb;
  border: 1px solid #e0ddd8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.sun-options .card-icon svg {
  width: 18px;
  height: 18px;
  color: #999;
  transition: color 0.25s ease;
}

.sun-options .single-option:hover .card-icon {
  background: #e8e5e0;
  border-color: #d5d0c8;
}

.sun-options .single-option:hover .card-icon svg {
  color: #666;
}

.sun-options .card-text { flex: 1; }

.sun-options .card-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.sun-options h6 {
  font-family: var(--sc-heading-font) !important;
  font-size: 18px;
  font-weight: 400;
  color: var(--sc-primary);
  margin-bottom: 0;
}

.sun-options .price {
  font-family: var(--sc-body-font);
  font-size: 17px;
  font-weight: 400;
  color: #444;
  white-space: nowrap;
  margin-bottom: 0;
}

.sun-options .price-prefix {
  font-family: var(--sc-body-font);
  font-weight: 400;
  font-size: 11px;
  color: #999;
  margin-right: 4px;
}

.sun-options .option-details {
  padding: 0;
}

.sun-options .option-details p {
  font-family: var(--sc-body-font);
  font-size: 13px;
  color: #888;
  line-height: 1.5;
  margin-bottom: 0;
}

.sun-options .card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 10px;
}

.sun-options .card-arrow svg {
  width: 16px;
  height: 16px;
  color: #ccc;
  transition: all 0.25s ease;
}

.sun-options .single-option:hover .card-arrow svg {
  color: #888;
  transform: translateX(3px);
}

/* Remove checkbox and step-three specific overrides for sun path */
.sun-options .card-check { display: none; }
.sun-options .button-price { display: none; }
.sun-options .option-details { padding-right: 0; }
.sun-options .single-option p.price::before { content: none; }

@media (max-width: 768px) {
  .sun-options .single-option { padding: 20px; }
  .sun-options h6 { font-size: 16px; }
  .sun-options .price { font-size: 15px; }
  .sun-options .option-details p { font-size: 12.5px; }
}

/* ===== Step-four color picker — enhanced option-item cards ===== */

.step-four .option-item {
  position: relative;
  padding: 16px 14px;
  align-items: flex-start;
}

.step-four .option-item .color-image {
  width: 70px;
  min-width: 70px;
}

.step-four .option-item .color-image img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.25s ease;
}

.step-four .option-item:hover .color-image img {
  transform: scale(1.06);
}

.step-four .option-item h2 {
  font-size: 15px;
  font-weight: 400;
}

.step-four .option-item p {
  font-size: 12.5px;
  color: #888;
  line-height: 1.5;
}

/* Radio indicator on color cards */
.step-four .option-radio {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-four .option-item:hover .option-radio {
  border-color: #999;
}

.step-four .option-item.selected .option-radio {
  border-color: var(--sc-primary);
  background: var(--sc-primary);
}

.step-four .option-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.step-four .option-item.selected .option-radio::after {
  opacity: 1;
  transform: scale(1);
}

/* Custom tint input */
.step-four #custom_tint_text {
  width: 100%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid #e0ddd8;
  border-radius: 4px;
  touch-action: manipulation;
  background: rgba(255,255,255,0.3);
  font-family: var(--sc-body-font);
  font-size: 16px;
  color: #444;
  transition: all 0.2s ease;
}

.step-four #custom_tint_text::placeholder {
  color: #aaa;
  font-style: italic;
}

.step-four #custom_tint_text:focus {
  outline: none;
  border-color: #c5c0b8;
  background: rgba(255,255,255,0.6);
}

.step-four .option-item.selected #custom_tint_text {
  background: rgba(255,255,255,0.8);
}

/* Step-four CTA button — match mockup */
.step-four .step-footer .next-step {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 16px 24px;
}

/* Step-four color picker border-width fix */
.step-four .option-item.selected {
  border-width: 1px;
  border-color: var(--sc-primary);
}

@media (max-width: 768px) {
  .step-four .option-item { padding: 14px 12px; }
  .step-four .option-item .color-image { width: 60px; min-width: 60px; }
  .step-four .option-item .color-image img { width: 60px; height: 60px; }
  .step-four .option-item h2 { font-size: 14px; }
  .step-four .option-item p { font-size: 12px; }
  .step-four #custom_tint_text { font-size: 16px; padding: 10px 12px; }
}

/* ===== Rule 30: Step-four Transitions color selection page ===== */

/* Panel header block */
.step-four .panel-header-block {
  padding: 50px 32px 22px;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--sc-cream, #f5f3f0) 0%, #f2f0ec 100%);
}

.step-four .panel-header-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23000000' fill-opacity='0.015'/%3E%3C/svg%3E");
  pointer-events: none;
}

.step-four .panel-header-block h4 {
  font-family: var(--sc-heading-font, 'Merriweather Sans', sans-serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--sc-primary, #1a1a1a);
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.step-four .panel-header-block .step-subtitle {
  font-family: var(--sc-body-font, 'PT Serif', Georgia, serif);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: #999;
  letter-spacing: 0.02em;
}

/* Transitions badge */
.step-four .transitions-badge {
  text-align: center;
  padding: 4px 28px 8px;
}

.step-four .transitions-badge span {
  font-family: var(--sc-body-font, 'PT Serif', Georgia, serif);
  font-size: 11px;
  font-style: italic;
  color: #aaa;
  letter-spacing: 0.03em;
}

/* Color grid */
.step-four .color-grid {
  padding: 22px 28px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Color card */
.step-four .color-card {
  border: 1px solid #ddd9d2;
  border-radius: 6px;
  padding: 16px 14px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.5);
  text-align: center;
  position: relative;
}

.step-four .color-card:hover {
  border-color: #c5c0b8;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.step-four .color-card.selected {
  border-color: var(--sc-primary, #1a1a1a);
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
}

/* Color card name */
.step-four .color-card-name {
  font-family: var(--sc-heading-font, 'Merriweather Sans', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--sc-primary, #1a1a1a);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* Color swatches row — 3 overlapping SVG lens circles */
.step-four .color-swatches {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 60px;
  width: 130px;
  margin: 0 auto;
}

/* SVG lens circles */
.step-four .lens-svg {
  position: absolute;
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  transition: transform 0.25s ease;
}

.step-four .lens-svg:nth-child(1) { left: 0; z-index: 1; }
.step-four .lens-svg:nth-child(2) { left: 32px; z-index: 2; }
.step-four .lens-svg:nth-child(3) { left: 64px; z-index: 3; }

.step-four .color-card:hover .lens-svg { transform: scale(1.06); }

/* Radio indicator */
.step-four .color-radio {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.step-four .color-card:hover .color-radio { border-color: #999; }

.step-four .color-card.selected .color-radio {
  border-color: var(--sc-primary, #1a1a1a);
  background: var(--sc-primary, #1a1a1a);
}

.step-four .color-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.step-four .color-card.selected .color-radio::after {
  opacity: 1;
  transform: scale(1);
}

/* Material note */
.step-four .material-note {
  text-align: center;
  padding: 0 28px 8px;
  font-family: var(--sc-body-font, 'PT Serif', Georgia, serif);
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
}

/* Step-four footer */
.step-four .step-footer {
  padding: 8px 28px 28px;
}

.step-four .step-footer .next-step {
  width: 100%;
}

/* Mobile overrides for step-four */
@media (max-width: 768px) {
  .step-four .panel-header-block { padding: 44px 24px 20px; }
  .step-four .panel-header-block h4 { font-size: 22px; }
  .step-four .color-grid { padding: 20px 20px 14px; gap: 8px; }
  .step-four .color-card { padding: 14px 10px; }
  .step-four .color-card-name { font-size: 12px; margin-bottom: 10px; }
  .step-four .lens-svg { width: 46px; height: 46px; }
  .step-four .color-swatches { height: 52px; width: 110px; }
  .step-four .lens-svg:nth-child(2) { left: 26px; }
  .step-four .lens-svg:nth-child(3) { left: 52px; }
  .step-four .step-footer { padding: 8px 20px 20px; }
  .step-four .transitions-badge { padding: 4px 20px 8px; }
  .step-four .material-note { padding: 0 20px 8px; }
}

}

/* ===== Step-four spacing overrides (reduce top space to eliminate scrolling) ===== */
.step-four .step-content { padding-top: 0; }
.step-four .panel-header-block { padding: 8px 32px 6px; }
.step-four .panel-header-block h4 { font-size: 20px; margin-bottom: 2px; }
.step-four .panel-header-block p { font-size: 12px; margin-bottom: 0; }
.step-four .transitions-badge { padding: 2px 28px 2px; font-size: 11px; }
.step-four .color-grid { padding: 6px 28px 8px; gap: 8px; }
.step-four .step-footer { padding: 4px 28px 8px; }
.step-four .material-note { margin: 0; padding: 0; }
.step-four { justify-content: flex-start !important; }
.step-four .step-content { flex: none; }

@media (max-width: 768px) {
    .step-four .panel-header-block { padding: 6px 24px 4px; }
      .step-four .color-grid { padding: 4px 20px 6px; }
      
}

/* ===== STEP THREE: UPGRADE SECTIONS (AR + Transitions) ===== */
.upgrade-section {
      padding: 12px 0 2px;
}

.section-label {
  font-family: var(--sc-heading-font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sc-muted);
  margin-bottom: 4px;
  padding-left: 2px;
}

.section-subtitle {
  font-family: var(--sc-body-font);
  font-size: 11px;
  font-weight: 400;
  color: #bbb;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-top: 2px;
  margin-bottom: 4px;
  font-style: italic;
}

.section-divider {
  width: 80%;
  margin: 6px auto 0;
  height: 1px;
  background: var(--sc-divider);
}

.ar-options,
.transitions-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Card layout with icon */
.single-option .card-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.single-option .card-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: #f0eeeb;
  border: 1px solid #e0ddd8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: all 0.25s ease;
}

.single-option .card-icon svg {
  width: 14px;
  height: 14px;
  color: var(--sc-muted);
  transition: color 0.25s ease;
}

.single-option:hover .card-icon { background: #e8e5e0; border-color: #d5d0c8; }
.single-option:hover .card-icon svg { color: #666; }
.single-option.selected .card-icon { background: var(--sc-primary); border-color: var(--sc-primary); }
.single-option.selected .card-icon svg { color: #fff; }

.single-option .card-content { flex: 1; }

/* Radio indicator (AR group) */
.single-option .option-radio {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.single-option:hover .option-radio { border-color: var(--sc-muted); }

.single-option.selected .option-radio {
  border-color: var(--sc-primary);
  border-width: 2px;
}

.single-option .radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sc-primary);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.single-option.selected .radio-dot {
  opacity: 1;
  transform: scale(1);
}

/* Checkbox indicator (Transitions) */
.single-option .card-check {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.single-option:hover .card-check { border-color: var(--sc-muted); }

.single-option.selected .card-check {
  background: var(--sc-primary);
  border-color: var(--sc-primary);
}

.single-option .card-check svg {
  width: 12px;
  height: 12px;
  color: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.single-option.selected .card-check svg {
  opacity: 1;
  transform: scale(1);
}

/* Ensure single-option has relative positioning for indicators */
.upgrade-section .single-option {
  position: relative;
}

/* Mobile adjustments for upgrade sections */
@media (max-width: 768px) {
  .upgrade-section { padding: 10px 20px 4px; }
  .single-option .card-icon { width: 30px; height: 30px; min-width: 30px; }
  .single-option .card-icon svg { width: 15px; height: 15px; }
  .step-three .step-content { padding-top: 36px; }
  .step-three .single-option { padding: 14px 16px 34px; }
  .step-three .option-details p { font-size: 12px; }
  .step-three h1 { font-size: 22px; }
  .section-divider { margin: 2px auto 0; }
  .section-label { font-size: 10px; margin-bottom: 2px; }
  .section-subtitle { font-size: 10px; margin-bottom: 2px; }
  .ar-options, .transitions-options { gap: 4px; }
  .step-three .step-footer { padding: 6px 20px 0; }
  .step-three .skip-link { padding: 8px 20px 16px; }
}

/* 30. Step-four (Transitions) layout fixes — button flush below material note */
.step-four .step-footer {
    padding: 8px 28px 28px;
}

.step-four .step-footer .next-step {
    width: 100%;
}

.step-four .material-note {
    text-align: center;
      padding: 0 28px 8px;
        font-size: 11.5px;
          color: #aaa;
            font-style: italic;



            
}

.step-four.is-visible {
  justify-content: flex-start !important;
}

/* ===== 31. Flush CTA below content — override space-between from .steps.is-visible ===== */

/* Step-three: Enhance Your Lenses */
.step-three { justify-content: flex-start !important; }
.step-three .step-content { flex: none; }

/* Step-five: Prescription cards */
.step-five { justify-content: flex-start !important; }
.step-five .step-content { flex: none; }
.step-five .step-footer { padding: 8px 28px 28px; }

/* Step-six: Doctor form */
.step-six { justify-content: flex-start !important; }
.step-six .step-content { flex: none; }
.step-six .step-footer { padding: 8px 28px 28px; }

/* Step-seven: PD selection */
.step-seven { justify-content: flex-start !important; }
.step-seven .step-content { flex: none; }

/* Step-eight: PD entry / measure */
.step-eight { justify-content: flex-start !important; }
.step-eight .step-content { flex: none; }

/* Card container */
.rx-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

/* Individual card */
.rx-card {
  border: 1px solid #ddd9d2;
  border-radius: 6px;
  padding: 20px 22px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
}

.rx-card:hover {
  border-color: #c5c0b8;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  transform: translateY(-1px);
}

.rx-card:active {
  transform: scale(0.99);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.rx-card.selected {
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  transform: none;
}

/* Navigation card (doctor) — extra right padding for chevron */
.rx-card--nav {
  padding-right: 40px;
}

/* Card top row — icon + content */
.rx-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

/* Circular icon */
.rx-card-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(26,26,26,0.06);
  transition: background 0.25s ease;
}

.rx-card:hover .rx-card-icon { background: rgba(26,26,26,0.09); }
.rx-card.selected .rx-card-icon { background: rgba(26,26,26,0.1); }

.rx-card-icon svg {
  width: 20px;
  height: 20px;
  color: #555;
  transition: color 0.25s ease;
}

.rx-card.selected .rx-card-icon svg { color: #1a1a1a; }

/* Card content */
.rx-card-content { flex: 1; }

.rx-card-title {
  font-family: var(--sc-heading-font) !important;
  font-size: 15px;
  font-weight: 400;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.rx-card-desc {
  font-family: var(--sc-body-font);
  font-size: 12.5px;
  font-weight: 400;
  color: #888;
  line-height: 1.5;
}

/* Radio indicator */
.rx-card-radio {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.rx-card:hover .rx-card-radio { border-color: #999; }

.rx-card.selected .rx-card-radio {
  border-color: #1a1a1a;
  background: #1a1a1a;
}

.rx-card-radio::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}

.rx-card.selected .rx-card-radio::after {
  opacity: 1;
  transform: scale(1);
}

/* Chevron arrow for doctor card */
.rx-card-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.25s ease;
}

.rx-card-arrow svg {
  width: 16px;
  height: 16px;
  color: #bbb;
}

.rx-card:hover .rx-card-arrow {
  opacity: 1;
  transform: translateY(-50%) translateX(2px);
}

.rx-card:hover .rx-card-arrow svg { color: #888; }

/* ===== Inline expanded content ===== */
.rx-card-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.25s ease;
  opacity: 0;
  margin-top: 0;
}

.rx-card.selected .rx-card-expand {
  max-height: 300px;
  opacity: 1;
  margin-top: 16px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed #d5d0c8;
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background: rgba(245,243,240,0.5);
  position: relative;
}

.upload-zone:hover {
  border-color: #bbb5ab;
  background: rgba(245,243,240,0.8);
}

.upload-zone-icon {
  margin-bottom: 8px;
}

.upload-zone-icon svg {
  width: 28px;
  height: 28px;
  color: #999;
}

.upload-zone-text {
  font-family: var(--sc-heading-font) !important;
  font-size: 13px;
  font-weight: 400;
  color: #666;
  margin-bottom: 4px;
}

.upload-zone-hint {
  font-family: var(--sc-body-font);
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
}

.upload-zone-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Selected file display (inside upload card expand) */
.rx-card-expand .selected-file {
  display: none;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 8px;
  align-items: center;
  gap: 6px;
}

.rx-card-expand .selected-file.is-visible {
  display: flex;
}

/* Send later confirmation */
.send-later-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(245,243,240,0.6);
  border-radius: 6px;
}

.send-later-confirm svg {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: #6a9a6a;
  flex-shrink: 0;
}

.send-later-confirm span {
  font-family: var(--sc-body-font);
  font-size: 12.5px;
  color: #666;
  line-height: 1.5;
}

/* ===== Step-five CTA (disabled by default) ===== */
.step-five .step-footer .next-step:disabled,
.step-six .step-footer .next-step:disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}

.step-five .step-footer .next-step:not(:disabled),
.step-six .step-footer .next-step:not(:disabled) {
  opacity: 1;
  pointer-events: auto;
}

/* ===== 32. STEP-SIX: Doctor Form Styles ===== */

/* Form area */
.rx-form-area {
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-align: left;
}

/* Section titles */
.rx-form-section-title {
  font-family: var(--sc-heading-font) !important;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  margin-bottom: 14px;
  margin-top: 6px;
}

.rx-form-section-title:not(:first-child) {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid #e5e2dc;
}

/* Form groups */
.rx-form-group {
  margin-bottom: 16px;
}

.rx-form-label {
  display: block;
  font-family: var(--sc-heading-font) !important;
  font-size: 12px;
  font-weight: 400;
  color: #666;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-align: left;
}

/* Form inputs */
.rx-form-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #ddd9d2;
  border-radius: 4px;
  background: rgba(255,255,255,0.6);
  font-family: var(--sc-body-font);
  font-size: 14px;
  color: #1a1a1a;
  transition: all 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
}

.rx-form-input::placeholder {
  color: #bbb;
  font-style: italic;
}

.rx-form-input:focus {
  outline: none;
  border-color: #1a1a1a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

/* Date of birth row */
.rx-dob-row {
  display: flex;
  gap: 10px;
}

.rx-dob-row .rx-form-input {
  text-align: center;
  padding: 13px 10px;
}

/* Form hint */
.rx-form-hint {
  font-family: var(--sc-body-font);
  font-size: 11.5px;
  color: #aaa;
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

/* Step-five subtitle styling */
.step-five .step-subtitle,
.step-six .step-subtitle {
  font-family: var(--sc-body-font);
  font-size: 13px;
  font-weight: 400;
  font-style: italic;
  color: #999;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

/* Mobile adjustments for rx-cards and doctor form */
@media (max-width: 768px) {
  .rx-cards { gap: 10px; }
  .rx-card { padding: 18px 16px; }
  .rx-card--nav { padding-right: 36px; }
  .rx-card-icon { width: 36px; height: 36px; min-width: 36px; }
  .rx-card-icon svg { width: 18px; height: 18px; }
  .rx-card-title { font-size: 14px; }
  .rx-card-desc { font-size: 12px; }
  .rx-form-input { font-size: 16px; }
}

/* ===== 34. STEP-SEVEN: Pupil Distance redesign ===== */

/* Italic subtitle variant */
.step-subtitle--italic { font-style: italic; }

/* "What is PD?" expandable toggle */
.pd-info-toggle {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 14px 28px 2px; cursor: pointer;
  font-family: var(--sc-body-font); font-size: 12.5px;
  color: #999; font-style: italic;
  transition: color 0.2s;
}
.pd-info-toggle:hover { color: #666; }
.pd-info-toggle svg {
  width: 14px; height: 14px; transition: transform 0.25s ease;
}
.pd-info-toggle.open svg { transform: rotate(45deg); }

.pd-info-content {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 0; padding: 0 28px;
}
.pd-info-content.open {
  max-height: 200px; opacity: 1; padding: 10px 28px 4px;
}
.pd-info-content p {
  font-family: var(--sc-body-font); font-size: 12.5px; color: #888;
  line-height: 1.6; text-align: center;
}

/* PD input area (inside "I know my PD" card expand) */
.pd-input-area { display: flex; flex-direction: column; gap: 12px; }
.pd-fields { display: flex; gap: 10px; }
.pd-field { flex: 1; }
.pd-field label {
  display: block; font-family: var(--sc-heading-font);
  font-size: 11px; font-weight: 400; color: #888; margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.pd-field input {
  width: 100%; padding: 12px 14px; border: 1px solid #ddd9d2;
  border-radius: 4px; background: rgba(255,255,255,0.6);
  font-family: var(--sc-body-font); font-size: 15px;
  color: #1a1a1a; text-align: center; transition: all 0.2s ease;
}
.pd-field input::placeholder { color: #ccc; font-style: italic; }
.pd-field input:focus {
  outline: none; border-color: #1a1a1a; background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

/* Dual PD toggle */
.pd-toggle {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.pd-toggle-track {
  width: 36px; height: 20px; border-radius: 10px;
  background: #d5d0c8; position: relative; transition: background 0.25s ease;
  flex-shrink: 0;
}
.pd-toggle-track.on { background: #1a1a1a; }
.pd-toggle-track::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; transition: transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
.pd-toggle-track.on::after { transform: translateX(16px); }
.pd-toggle-label {
  font-family: var(--sc-body-font); font-size: 12.5px; color: #888;
}
.pd-hint {
  font-family: var(--sc-body-font); font-size: 11.5px;
  color: #aaa; font-style: italic; line-height: 1.5;
}

/* ===== 35. STEP-EIGHT: Measure PD with EyeMeasure ===== */

.pd-measure-content {
  padding: 22px 28px 16px;
  display: flex; flex-direction: column; gap: 20px;
  text-align: left;
}

/* App recommendation card */
.app-card {
  border: 1px solid #ddd9d2; border-radius: 6px;
  padding: 22px; background: rgba(255,255,255,0.7);
}
.app-card-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 14px;
}
.app-icon {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 12px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(120,190,210,0.35);
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-info { flex: 1; }
.app-name {
  font-family: var(--sc-heading-font); font-size: 16px;
  font-weight: 400; color: #1a1a1a; margin-bottom: 2px;
}
.app-subtitle {
  font-family: var(--sc-body-font); font-size: 12px;
  color: #999; font-style: italic;
}
.app-desc {
  font-family: var(--sc-body-font); font-size: 13px;
  color: #666; line-height: 1.6; margin-bottom: 16px;
}

/* QR / download area */
.app-download {
  display: flex; align-items: flex-start; gap: 18px;
}
.app-qr {
  width: 96px; min-width: 96px; height: 96px;
  border-radius: 6px; background: #fff; padding: 6px;
  border: 1px solid #e8e5e0; box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.app-qr canvas, .app-qr img { width: 100%; height: 100%; display: block; }
.app-download-text {
  display: flex; flex-direction: column; gap: 8px; padding-top: 4px;
}
.app-scan-note {
  font-family: var(--sc-body-font); font-size: 12.5px;
  color: #888; font-style: italic; line-height: 1.5;
}
.app-manual-note {
  font-family: var(--sc-body-font); font-size: 11.5px;
  color: #aaa; line-height: 1.5;
}
.app-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; background: #1a1a1a; color: #fff;
  border: none; border-radius: 4px;
  font-family: var(--sc-heading-font); font-size: 13px;
  font-weight: 400; letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.2s ease; text-decoration: none;
}
.app-link:hover { background: #333; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.app-link svg { width: 14px; height: 14px; }

/* Mobile: direct link; Desktop: QR */
.app-download-mobile { display: none; }
.app-download-desktop { display: flex; }

/* PD entry section (on measure page) */
.pd-entry {
  border: 1px solid #ddd9d2; border-radius: 6px; padding: 20px 22px;
  background: rgba(255,255,255,0.7);
}
.pd-entry-title {
  font-family: var(--sc-heading-font); font-size: 14px;
  font-weight: 400; color: #1a1a1a; margin-bottom: 4px;
}
.pd-entry-desc {
  font-family: var(--sc-body-font); font-size: 12.5px;
  color: #888; line-height: 1.5; margin-bottom: 14px;
}
.pd-entry .pd-hint { margin-top: 10px; }

/* Reassurance note */
.pd-reassurance {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; background: rgba(245,243,240,0.6); border-radius: 6px;
}
.pd-reassurance svg {
  width: 18px; height: 18px; color: #6a9a6a; flex-shrink: 0; margin-top: 1px;
}
.pd-reassurance span {
  font-family: var(--sc-body-font); font-size: 12.5px; color: #666; line-height: 1.5;
}

/* Larger CTA button text for PD steps */
.step-seven [data-checkout],
.step-eight [data-checkout] {
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

/* Mobile adjustments for PD steps */
@media (max-width: 768px) {
  .pd-info-toggle { padding: 12px 20px 2px; }
  .pd-info-content { padding-left: 20px; padding-right: 20px; }
  .pd-info-content.open { padding: 10px 20px 4px; }
  .pd-measure-content { padding: 20px 20px 14px; }
  .app-download-mobile { display: inline-flex; }
  .app-download-desktop { display: none; }
}

/* ===== SAFARI AUTO-SCROLL FIX ===== */
/* Prevent Safari from auto-scrolling when hidden content expands via max-height transition */
.step-five .step-content,
.step-seven .step-content,
.step-eight .step-content {
  overflow-anchor: none;
}

/* ===== MEASURE YOUR PD — MOBILE SPACING REDUCTION ===== */
@media (max-width: 768px) {
  .step-eight .step-content {
    padding-top: 28px;
  }
  .step-eight .pd-measure-content {
    padding: 14px 20px 10px;
    gap: 14px;
  }
  .step-eight .pd-measure-content h1 {
    font-size: 22px;
  }
  .step-eight .app-card {
    padding: 16px;
  }
  .step-eight .app-card-header {
    margin-bottom: 10px;
    gap: 10px;
  }
  .step-eight .app-icon {
    width: 44px;
    height: 44px;
  }
  .step-eight .app-card-body p {
    font-size: 12px;
    line-height: 1.5;
  }
  .step-eight .pd-entry-section h3 {
    font-size: 14px;
  }
  .step-eight .qr-code-wrapper canvas {
    width: 100px !important;
    height: 100px !important;
  }
  .step-eight .rx-card--nav {
    padding: 14px 16px;
  }
  .step-eight .step-footer {
    padding: 6px 20px 16px;
  }
}
