:root {
  --lsls-accent: #234b3e;
  --lsls-accent-dark: #173b30;
  --lsls-ink: #234b3e;
  --lsls-muted: #58655c;
  --lsls-line: #dce0d2;
  --lsls-soft: #f5f3e8;
  --lsls-warm: #faf8ef;
  --lsls-success: #1f6d45;
}

html.lsls-lock,
body.lsls-lock {
  overflow: hidden !important;
}

.lsls-open-button {
  min-width: 200px !important;
  min-height: 52px !important;
  padding: 0 24px !important;
  margin: 0 0 18px 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: #2e2e2e !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .02em !important;
  box-shadow: none !important;
}

.lsls-open-button:hover,
.lsls-open-button:focus {
  background: #161616 !important;
  color: #fff !important;
}

.lsls-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  padding: 22px;
  background: rgba(18, 18, 18, .62);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.lsls-overlay.is-open {
  display: grid;
  place-items: center;
}

.lsls-modal,
.lsls-modal * {
  box-sizing: border-box;
}

.lsls-modal {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 36%) minmax(0, 64%);
  width: min(1380px, 96vw);
  height: min(860px, 94vh);
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .24);
  color: var(--lsls-ink);
}

.lsls-close {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--lsls-ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .12);
}

.lsls-close:hover,
.lsls-close:focus {
  background: var(--lsls-accent);
  color: #fff;
}

.lsls-product-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: linear-gradient(180deg, #f9f8f6 0%, #efede9 100%);
  border-right: 1px solid var(--lsls-line);
}

.lsls-product-image-wrap {
  display: grid;
  place-items: center;
  min-height: 0;
  flex: 1;
  padding: 28px 30px 22px;
  overflow-y: auto;
}

.lsls-frame-preview-shell {
  width: 100%;
  display: grid;
  gap: 18px;
}

.lsls-frame-preview-stage {
  display: grid;
  gap: 10px;
  width: 100%;
}

.lsls-preview-section-label {
  display: inline-block;
  color: var(--lsls-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lsls-frame-preview-stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 310px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.lsls-single-lens-module {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 18px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 10px 28px rgba(0,0,0,.035);
}

.lsls-single-lens-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.lsls-single-lens-heading > div {
  display: grid;
  gap: 3px;
}

.lsls-single-lens-heading strong {
  color: var(--lsls-ink);
  font-size: 14px;
  line-height: 1.25;
}

.lsls-single-lens-heading small {
  color: var(--lsls-muted);
  font-size: 10.5px;
}

.lsls-single-lens-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #ebe6e1;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(250,248,245,.96) 0%, rgba(246,243,239,.96) 100%);
}

.lsls-lens-placeholder {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 7px 10px;
  color: #847c76;
  text-align: center;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  box-shadow: 0 5px 14px rgba(0,0,0,.035);
}

.lsls-lens-placeholder span {
  font-size: 12px;
  font-weight: 800;
}

.lsls-lens-placeholder small {
  font-size: 10px;
}

.lsls-lens-preview {
  --lsls-preview-color: rgba(110,110,110,.02);
  --lsls-preview-shine: rgba(255,255,255,.28);
  --lsls-preview-border: rgba(132,139,148,.34);
  --lsls-preview-zone: rgba(92,176,220,.12);
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 12px 18px 24px;
  pointer-events: none;
}

.lsls-lens-preview.is-hidden {
  opacity: .42;
}

.lsls-lens-shape {
  position: relative;
  width: min(230px, 82%);
  aspect-ratio: 1 / 1;
}

.lsls-lens-type-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.lsls-demo-lens-shadow {
  display: none;
}

.lsls-lens-surface {
  position: absolute;
  inset: 21% 21% 25% 21%;
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  border: none;
  background: transparent;
  box-shadow: none;
  z-index: 2;
}
.lsls-lens-fill,
.lsls-lens-sheen,
.lsls-lens-preview .lsls-segment,
.lsls-lens-preview .lsls-segment-line{
  position: absolute;
}

.lsls-lens-fill {
  inset: 0;
  z-index: 1;
  background: var(--lsls-preview-color);
  opacity: 1;
  transition: background .35s ease, opacity .55s ease;
}

.lsls-lens-preview.is-gradient .lsls-lens-fill {
  background: linear-gradient(to bottom, var(--lsls-preview-color) 0%, var(--lsls-preview-color) 34%, rgba(255,255,255,.02) 100%);
}

.lsls-lens-sheen {
  inset: 0;
  z-index: 5;
  background: linear-gradient(130deg, rgba(255,255,255,.28) 0%, rgba(255,255,255,0) 24%, var(--lsls-preview-shine) 47%, rgba(255,255,255,0) 72%);
  opacity: .38;
}

.lsls-lens-preview.is-blue-fighter .lsls-lens-sheen {
  background: linear-gradient(130deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 25%, rgba(97,157,231,.16) 47%, rgba(255,255,255,0) 72%);
  opacity: .54;
}

.lsls-lens-preview.is-multicoat .lsls-lens-sheen {
  background: linear-gradient(130deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 25%, rgba(191,225,255,.13) 49%, rgba(255,255,255,0) 72%);
  opacity: .44;
}

.lsls-lens-preview .lsls-segment,
.lsls-lens-preview .lsls-segment-line {
  z-index: 3;
  left: 8%;
  right: 8%;
  opacity: 0;
  transition: opacity .18s ease;
}

.lsls-lens-preview .lsls-segment {
  border-radius: 999px;
  background: var(--lsls-preview-zone);
}

.lsls-lens-preview .lsls-segment--top { top: 10%; height: 23%; }
.lsls-lens-preview .lsls-segment--mid { top: 38%; height: 18%; }
.lsls-lens-preview .lsls-segment--bottom { top: 61%; height: 21%; }

.lsls-lens-preview .lsls-segment-line {
  height: 0;
  border-top: 1.5px dashed rgba(66,109,130,.46);
}

.lsls-lens-preview .lsls-segment-line--one { top: 34%; }
.lsls-lens-preview .lsls-segment-line--two { top: 60%; }

.lsls-lens-preview.is-photochromic-auto .lsls-lens-fill {
  animation: lslsPhotochromicCycle 5s ease-in-out infinite;
}

@keyframes lslsPhotochromicCycle {
  0%, 100% { opacity: .12; }
  15% { opacity: .12; }
  50% { opacity: 1; }
  68% { opacity: 1; }
  92% { opacity: .12; }
}

@media (prefers-reduced-motion: reduce) {
  .lsls-lens-preview.is-photochromic-auto .lsls-lens-fill { animation: none; opacity: .55; }
}

.lsls-frame-preview-meta {
  display: grid;
  gap: 10px;
}

.lsls-preview-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.lsls-preview-toggle-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--lsls-text);
}

.lsls-preview-toggle-buttons {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--lsls-line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.lsls-preview-mode {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px 11px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  color: var(--lsls-muted);
}

.lsls-preview-mode.is-active {
  background: var(--lsls-accent);
  color: #fff;
}

.lsls-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 14px;
}

.lsls-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.88);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--lsls-text);
}

.lsls-preview-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--lsls-badge-dot, var(--lsls-accent));
}

.lsls-preview-note {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--lsls-muted);
}

.lsls-product-copy {
  padding: 28px 34px 34px;
  border-top: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.56);
}

.lsls-product-copy h3 {
  margin: 5px 0 8px;
  font-size: clamp(21px, 2vw, 30px);
  line-height: 1.18;
}

.lsls-product-copy p {
  margin: 0;
  color: var(--lsls-muted);
  font-size: 14px;
}

.lsls-config-panel {
  position: relative;
  min-width: 0;
  overflow-y: auto;
  padding: 38px 46px 118px;
  background: #fff;
}

.lsls-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding-right: 54px;
}

.lsls-eyebrow,
.lsls-step-kicker {
  display: inline-block;
  color: var(--lsls-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lsls-eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.lsls-brand-name {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.22em;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1;
  text-transform: none;
}

.lsls-studio-label {
  font-family: inherit;
}

.lsls-topbar h2 {
  margin: 4px 0 0;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1.05;
}

.lsls-progress-copy {
  color: var(--lsls-muted);
  font-size: 13px;
  white-space: nowrap;
}

.lsls-progress {
  height: 4px;
  margin: 24px 0 42px;
  overflow: hidden;
  border-radius: 999px;
  background: #efedeb;
}

.lsls-progress-bar {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: 999px;
  background: var(--lsls-accent);
  transition: width .25s ease;
}

.lsls-step {
  display: none;
  animation: lslsFade .18s ease;
}

.lsls-step.is-active {
  display: block;
}

@keyframes lslsFade {
  from { opacity: .3; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.lsls-step-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.lsls-step-heading h3 {
  margin: 6px 0 9px;
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 550;
  line-height: 1.14;
}

.lsls-step-heading p {
  margin: 0;
  color: var(--lsls-muted);
  font-size: 15px;
  line-height: 1.6;
}

.lsls-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lsls-choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 164px;
  padding: 22px;
  border: 1px solid var(--lsls-line);
  border-radius: 14px;
  background: #fff;
  color: var(--lsls-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.lsls-choice-card:hover,
.lsls-choice-card:focus {
  border-color: #cfc7c0;
  box-shadow: 0 8px 25px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.lsls-choice-card.is-selected {
  border: 2px solid var(--lsls-accent);
  padding: 21px;
  background: #fffafa;
}

.lsls-choice-card.is-recommended:not(.is-selected) {
  border-color: #bdaea3;
}

.lsls-choice-title {
  padding-right: 76px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.lsls-choice-card p {
  flex: 1;
  margin: 10px 0 18px;
  color: var(--lsls-muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.lsls-choice-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0eeec;
  color: #414141;
  font-size: 12px;
  font-weight: 700;
}

.lsls-card-check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: var(--lsls-accent);
  color: #fff;
  font-size: 13px;
}

.lsls-choice-card:not(.is-selected) .lsls-card-check {
  border: 1px solid #ddd8d3;
  background: transparent;
}

.lsls-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #f1ece8;
  color: #5b4f48;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
}

.lsls-method-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--lsls-line);
  border-radius: 12px;
  background: var(--lsls-soft);
}

.lsls-method {
  flex: 1;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4c4c4c;
  font-weight: 700;
  cursor: pointer;
}

.lsls-method.is-active {
  background: #fff;
  color: var(--lsls-ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}

.lsls-prescription-panel {
  display: none;
}

.lsls-prescription-panel.is-active {
  display: block;
}

.lsls-rx-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--lsls-line);
  border-radius: 14px;
}

.lsls-rx-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.lsls-rx-table th,
.lsls-rx-table td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--lsls-line);
  text-align: left;
  vertical-align: middle;
}

.lsls-rx-table thead th {
  background: var(--lsls-warm);
  color: #575757;
  font-size: 11px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.lsls-rx-table tbody tr:last-child th,
.lsls-rx-table tbody tr:last-child td {
  border-bottom: 0;
}

.lsls-rx-table tbody th {
  width: 84px;
  font-size: 14px;
}

.lsls-rx-table tbody th small {
  display: block;
  margin-top: 2px;
  color: var(--lsls-muted);
  font-weight: 400;
}

.lsls-rx-table select,
.lsls-pd-fields select {
  width: 100%;
  min-width: 96px;
  height: 42px;
  padding: 0 30px 0 10px;
  border: 1px solid #ddd8d3;
  border-radius: 8px;
  background: #fff;
  color: var(--lsls-ink);
  font-size: 13px;
}

.lsls-pd-box {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--lsls-line);
  border-radius: 14px;
}

.lsls-field-head strong {
  display: block;
  font-size: 14px;
}

.lsls-field-head span {
  display: block;
  margin-top: 3px;
  color: var(--lsls-muted);
  font-size: 12.5px;
}

.lsls-pd-toggle {
  display: flex;
  gap: 18px;
  margin: 15px 0;
  color: #454545;
  font-size: 13px;
}

.lsls-pd-toggle label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.lsls-pd-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 420px;
}

.lsls-pd-fields[data-pd-panel="single"] {
  grid-template-columns: minmax(0, 200px);
}

.lsls-pd-fields label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.lsls-inline-note,
.lsls-recommendation {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #f6f4f1;
  color: #5e5955;
  font-size: 12.5px;
  line-height: 1.55;
}

.lsls-inline-note strong,
.lsls-recommendation strong {
  color: var(--lsls-ink);
}

.lsls-recommendation {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 16px;
  border-left: 3px solid var(--lsls-accent);
}

.lsls-upload-box {
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 30px;
  border: 1.5px dashed #cfc8c2;
  border-radius: 16px;
  background: var(--lsls-warm);
  text-align: center;
  cursor: pointer;
}

.lsls-upload-box:hover {
  border-color: var(--lsls-accent);
  background: #fffafa;
}

.lsls-upload-box strong {
  margin: 10px 0 5px;
  font-size: 18px;
}

.lsls-upload-box span:last-of-type {
  color: var(--lsls-muted);
  font-size: 12px;
}

.lsls-upload-box input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lsls-upload-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #fff;
  color: var(--lsls-accent);
  font-size: 25px;
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
}

.lsls-file-name {
  margin-top: 10px;
  color: #494949;
  font-size: 13px;
  text-align: center;
}

.lsls-later-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--lsls-line);
  border-radius: 14px;
  background: var(--lsls-warm);
}

.lsls-later-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 999px;
  background: #e9f3ed;
  color: var(--lsls-success);
  font-weight: 800;
}

.lsls-later-card strong {
  display: block;
  margin-bottom: 5px;
}

.lsls-later-card p {
  margin: 0;
  color: var(--lsls-muted);
  font-size: 13px;
  line-height: 1.55;
}

.lsls-review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 16px;
}

.lsls-review-card,
.lsls-price-card {
  padding: 20px;
  border: 1px solid var(--lsls-line);
  border-radius: 14px;
  background: #fff;
}

.lsls-price-card {
  background: var(--lsls-warm);
}

.lsls-review-row,
.lsls-price-line,
.lsls-price-total {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid #efedeb;
  font-size: 13px;
}

.lsls-review-row:last-child,
.lsls-price-total:last-child {
  border-bottom: 0;
}

.lsls-review-row span,
.lsls-price-line span:first-child {
  color: var(--lsls-muted);
}

.lsls-review-row strong {
  font-weight: 700;
  line-height: 1.5;
}

.lsls-price-line {
  grid-template-columns: 1fr auto;
}

.lsls-price-total {
  grid-template-columns: 1fr auto;
  margin-top: 4px;
  padding-top: 16px;
  font-size: 18px;
}

.lsls-price-total strong {
  font-size: 21px;
}

.lsls-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f7f6f4;
  color: #555;
  font-size: 12.5px;
  line-height: 1.55;
}

.lsls-check-row input {
  margin-top: 3px;
}

.lsls-order-message {
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.lsls-order-message.is-error,
.lsls-order-message.is-info,
.lsls-order-message.is-success {
  display: block;
}

.lsls-order-message.is-error {
  background: #fff0f0;
  color: #8a1010;
}

.lsls-order-message.is-info {
  background: #f2f2f2;
  color: #454545;
}

.lsls-order-message.is-success {
  background: #edf7f1;
  color: #1f6d45;
}

.lsls-field-error {
  border-color: var(--lsls-accent) !important;
  box-shadow: 0 0 0 3px rgba(35,75,62,.10) !important;
}

.lsls-upload-preview {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--lsls-line);
  border-radius: 12px;
  background: var(--lsls-warm);
}

.lsls-upload-preview[hidden] {
  display: none !important;
}

.lsls-upload-thumb {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--lsls-line);
  font-size: 12px;
  font-weight: 800;
}

.lsls-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lsls-upload-preview strong,
.lsls-upload-preview span {
  display: block;
}

.lsls-upload-preview strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsls-upload-preview span {
  margin-top: 3px;
  color: var(--lsls-muted);
  font-size: 12px;
}

.lsls-file-remove {
  border: 0;
  background: transparent;
  color: var(--lsls-accent);
  font-weight: 700;
  cursor: pointer;
}

.lsls-upload-note {
  margin: 10px 0 0;
  color: var(--lsls-muted);
  font-size: 12px;
}

.lsls-pd-unknown {
  max-width: 520px;
  color: var(--lsls-muted);
  line-height: 1.5;
}

.lsls-footer {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(104px, auto) minmax(150px, 1fr) minmax(176px, auto);
  align-items: center;
  gap: 10px 16px;
  width: 100%;
  min-height: 82px;
  padding: 14px 46px;
  border-top: 1px solid var(--lsls-line);
  background: rgba(255,255,255,.99);
  box-shadow: 0 -8px 24px rgba(0,0,0,.04);
  pointer-events: auto;
}

.lsls-order-message {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.lsls-running-total {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
}

#lsls-back {
  grid-column: 1;
  grid-row: 1;
}

#lsls-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.lsls-primary:hover:not(:disabled),
.lsls-primary:focus:not(:disabled) {
  border-color: var(--lsls-accent-dark);
  background: var(--lsls-accent-dark);
}

.lsls-primary:disabled {
  opacity: .65;
  cursor: wait;
}

.lsls-running-total {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  color: var(--lsls-muted);
  font-size: 12px;
}

.lsls-running-total strong {
  color: var(--lsls-ink);
  font-size: 16px;
}

@media (max-width: 980px) {
  .lsls-overlay {
    padding: 0;
  }

  .lsls-modal {
    grid-template-columns: 1fr;
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .lsls-product-panel {
    display: none;
  }

  .lsls-config-panel {
    padding: 28px 22px 112px;
  }

  .lsls-topbar {
    padding-right: 52px;
  }

  .lsls-footer {
    position: fixed;
    left: 0;
    padding: 12px 18px;
  }
}

@media (max-width: 680px) {
  .lsls-config-panel {
    padding: 22px 16px 118px;
  }

  .lsls-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .lsls-topbar {
    padding-right: 44px;
  }

  .lsls-topbar h2 {
    font-size: 31px;
  }

  .lsls-progress {
    margin: 18px 0 28px;
  }

  .lsls-step-heading h3 {
    font-size: 25px;
  }

  .lsls-card-grid {
    grid-template-columns: 1fr;
  }

  .lsls-choice-card {
    min-height: 142px;
  }

  .lsls-method-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lsls-rx-table th,
  .lsls-rx-table td {
    padding: 9px 6px;
  }

  .lsls-rx-table select {
    min-width: 82px;
    font-size: 12px;
  }

  .lsls-pd-fields,
  .lsls-pd-fields[data-pd-panel="single"] {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .lsls-review-layout {
    grid-template-columns: 1fr;
  }

  .lsls-review-row {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .lsls-footer {
    grid-template-columns: auto 1fr;
    gap: 8px 10px;
    min-height: 96px;
    padding: 10px 14px;
  }

  .lsls-running-total {
    justify-content: flex-end;
  }

  .lsls-upload-preview {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .lsls-upload-thumb {
    width: 46px;
    height: 46px;
  }

  .lsls-file-remove {
    grid-column: 1 / -1;
    justify-self: start;
    padding: 2px 0;
  }

  .lsls-primary {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* === v0.1.3 layout polish ================================================
   Keep the action bar in the document flow and make only the step content
   scroll. This prevents the footer from covering prescription rows/cards. */
.lsls-config-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

.lsls-config-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding: 38px 46px 34px;
}


.lsls-secondary,
.lsls-primary {
  height: 50px;
  min-height: 50px;
  margin: 0 !important;
}

.lsls-secondary {
  min-width: 104px;
}

.lsls-primary {
  min-width: 176px;
}

.lsls-running-total {
  min-width: 0;
  white-space: nowrap;
}

.lsls-rx-helper {
  margin: 9px 3px 0;
  color: var(--lsls-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Make long prescription content breathe above the fixed action area. */
.lsls-prescription-panel,
.lsls-step {
  min-width: 0;
}

.lsls-rx-table-wrap {
  max-width: 100%;
}

.lsls-rx-table select,
.lsls-pd-fields select {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .lsls-config-scroll {
    padding: 32px 30px 30px;
  }
  .lsls-footer {
    padding: 12px 30px;
  }
  .lsls-choice-card {
    min-height: 150px;
  }
}

@media (max-width: 980px) {
  .lsls-config-panel {
    padding: 0;
  }

  .lsls-config-scroll {
    padding: 28px 22px 28px;
  }

  .lsls-footer {
    min-height: 78px;
    padding: 11px 22px calc(11px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 680px) {
  .lsls-config-panel {
    padding: 0;
  }

  .lsls-config-scroll {
    padding: 22px 16px 24px;
  }

  .lsls-footer {
    gap: 8px;
    min-height: 72px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .lsls-running-total {
    flex-basis: 100%;
    order: 3;
    text-align: left;
  }

  #lsls-next {
    margin-left: 0;
  }

  .lsls-secondary,
  .lsls-primary {
    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding: 0 12px;
  }

  .lsls-primary {
    grid-column: auto;
  }

  .lsls-running-total {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.15;
    text-align: center;
  }

  .lsls-running-total strong {
    margin-top: 3px;
  }

  /* Turn the prescription grid into two clean eye cards on phones. */
  .lsls-rx-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .lsls-rx-table,
  .lsls-rx-table tbody {
    display: block;
    width: 100%;
  }

  .lsls-rx-table thead {
    display: none;
  }

  .lsls-rx-table tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 12px;
    padding: 15px;
    border: 1px solid var(--lsls-line);
    border-radius: 14px;
    background: #fff;
  }

  .lsls-rx-table tbody th {
    display: flex;
    grid-column: 1 / -1;
    align-items: baseline;
    gap: 7px;
    width: auto;
    padding: 0 0 3px;
    border: 0;
    font-size: 15px;
  }

  .lsls-rx-table tbody th small {
    display: inline;
    margin: 0;
  }

  .lsls-rx-table tbody td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .lsls-rx-table tbody td::before {
    content: attr(data-label);
    display: block;
    margin: 0 0 6px 1px;
    color: #67615d;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .lsls-rx-table select {
    width: 100%;
    min-width: 0;
    height: 48px;
    font-size: 14px;
  }

  .lsls-pd-box {
    margin-top: 14px;
    padding: 16px;
  }

  .lsls-pd-toggle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .lsls-upload-box {
    min-height: 210px;
    padding: 24px 18px;
  }
}

@media (max-width: 390px) {
  .lsls-footer {
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .lsls-running-total span {
    display: none;
  }

  .lsls-secondary,
  .lsls-primary {
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}

/* === v0.1.4 material recommendation polish =============================== */
.lsls-choice-title {
  padding-right: 0;
}

.lsls-choice-card.is-recommended:not(.is-selected) {
  border-color: #d8aaa7;
  background: #fffdfc;
  box-shadow: inset 0 0 0 1px rgba(35,75,62,.035);
}

.lsls-choice-card.is-rimless-material:not(.is-selected):not(.is-recommended) {
  border-color: #d7d0c9;
  background: #fffdfa;
}

.lsls-card-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: -5px 0 16px;
}

.lsls-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid #e4ddd7;
  border-radius: 999px;
  background: #f7f4f1;
  color: #655d57;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.25;
}

.lsls-card-tag.is-recommended-tag {
  border-color: #efc9c7;
  background: #fff1f0;
  color: #9b0b0b;
}

.lsls-card-tag.is-frame-tag {
  background: #f4f1ed;
  color: #5c554f;
}

.lsls-card-tag-icon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  border-radius: 999px;
  background: currentColor;
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.lsls-card-tag.is-frame-tag .lsls-card-tag-icon {
  background: #ded6cf;
  color: #625a53;
}

/* The main recommendation is now a dedicated callout rather than a badge
   competing with the material title. */
.lsls-recommendation {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 15px 16px;
  border: 1px solid #efddda;
  border-left: 1px solid #efddda;
  border-radius: 14px;
  background: #fff9f8;
}

.lsls-recommendation-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--lsls-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.lsls-recommendation-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lsls-recommendation-label {
  color: var(--lsls-accent);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.lsls-recommendation-copy strong {
  color: var(--lsls-ink);
  font-size: 14px;
  line-height: 1.35;
}

.lsls-recommendation-copy > span:last-child {
  color: #655f5a;
  font-size: 11.5px;
  line-height: 1.48;
}

@media (max-width: 680px) {
  .lsls-card-tag {
    border-radius: 10px;
    line-height: 1.35;
  }

  .lsls-recommendation {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 14px;
  }

  .lsls-recommendation-mark {
    width: 30px;
    height: 30px;
  }
}

/* === v0.1.6 cleaner vision cards + adaptive/tint/polarized customizer === */
.lsls-choice-footer.is-selection-only {
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f0eeec;
}

.lsls-finish-customization {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--lsls-line);
  border-radius: 16px;
  background: #faf8ef;
}

.lsls-finish-customization[hidden] {
  display: none !important;
}

.lsls-customization-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}

.lsls-customization-kicker {
  color: var(--lsls-accent);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.lsls-customization-heading strong {
  color: var(--lsls-ink);
  font-size: 18px;
  line-height: 1.35;
}

.lsls-customization-heading > span:last-child {
  max-width: 680px;
  color: var(--lsls-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.lsls-customization-group + .lsls-customization-group {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #ebe7e3;
}

.lsls-customization-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}

.lsls-customization-label span {
  color: #625d58;
  font-size: 12px;
  font-weight: 700;
}

.lsls-customization-label strong {
  color: var(--lsls-ink);
  font-size: 12px;
}

.lsls-swatch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lsls-swatch-choice,
.lsls-depth-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid #ded9d4;
  border-radius: 12px;
  background: #fff;
  color: var(--lsls-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.lsls-swatch-choice:hover,
.lsls-depth-choice:hover,
.lsls-swatch-choice:focus,
.lsls-depth-choice:focus {
  border-color: #c8bdb5;
  box-shadow: 0 5px 16px rgba(0,0,0,.045);
}

.lsls-swatch-choice.is-selected,
.lsls-depth-choice.is-selected {
  border: 2px solid var(--lsls-accent);
  padding: 9px 11px;
  background: #fffafa;
}

.lsls-swatch {
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--lsls-swatch);
  box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}

.lsls-swatch-choice > span:nth-child(2) {
  min-width: 0;
  font-size: 12.5px;
  font-weight: 800;
}

.lsls-swatch-check,
.lsls-depth-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: auto;
  flex: 0 0 20px;
  border-radius: 999px;
  background: var(--lsls-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.lsls-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lsls-depth-choice {
  align-items: center;
  min-height: 72px;
}

.lsls-depth-visual {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  border: 1px solid #d8d3ce;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff 0 50%, #f0efed 50% 100%);
}

.lsls-depth-visual i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--lsls-tint-color, #767676);
  opacity: var(--lsls-tint-opacity, .25);
  transition: background-color .18s ease, opacity .18s ease;
}

.lsls-depth-choice > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.lsls-depth-choice strong {
  font-size: 12.5px;
  line-height: 1.25;
}

.lsls-depth-choice small {
  color: var(--lsls-muted);
  font-size: 10.5px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .lsls-finish-customization {
    padding: 16px;
    border-radius: 14px;
  }

  .lsls-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lsls-depth-grid {
    grid-template-columns: 1fr;
  }

  .lsls-customization-label {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* === v0.1.7 pricing + tint style ========================================= */
.lsls-starts-from {
  display: inline-block;
  margin-right: 3px;
  color: var(--lsls-muted);
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: .035em;
}

.lsls-choice-footer strong {
  color: var(--lsls-ink);
  font-size: 13px;
}

.lsls-style-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.lsls-style-choice {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--lsls-line);
  border-radius: 12px;
  background: #fff;
  color: var(--lsls-ink);
  text-align: left;
  cursor: pointer;
}

.lsls-style-choice.is-selected {
  border: 2px solid var(--lsls-accent);
  padding: 11px 13px;
  background: #fffafa;
}

.lsls-style-choice strong,
.lsls-style-choice small {
  display: block;
}

.lsls-style-choice strong { font-size: 13px; }
.lsls-style-choice small { margin-top: 3px; color: var(--lsls-muted); font-size: 11px; line-height: 1.35; }

.lsls-style-visual {
  width: 44px;
  height: 44px;
  border: 1px solid #d9d4cf;
  border-radius: 9px;
  background: color-mix(in srgb, var(--lsls-style-color) 55%, transparent);
}

.lsls-style-visual.is-gradient {
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--lsls-style-color) 75%, transparent) 0%,
    color-mix(in srgb, var(--lsls-style-color) 42%, transparent) 48%,
    color-mix(in srgb, var(--lsls-style-color) 8%, transparent) 100%);
}

.lsls-depth-visual.is-gradient i {
  background: linear-gradient(to bottom,
    rgb(from var(--lsls-tint-color) r g b / var(--lsls-tint-opacity)) 0%,
    rgb(from var(--lsls-tint-color) r g b / calc(var(--lsls-tint-opacity) * .62)) 52%,
    rgb(from var(--lsls-tint-color) r g b / calc(var(--lsls-tint-opacity) * .12)) 100%);
}

@supports not (color: rgb(from red r g b)) {
  .lsls-depth-visual.is-gradient i {
    background: linear-gradient(to bottom, var(--lsls-tint-color), rgba(255,255,255,.92));
    opacity: var(--lsls-tint-opacity);
  }
}

@media (max-width: 640px) {
  .lsls-style-grid { grid-template-columns: 1fr; }
}


/* === v0.1.8 educational polish ========================================== */
.lsls-context-note {
  margin-top: 14px;
  line-height: 1.55;
}

.lsls-preview-disclaimer {
  margin: 10px 0 0;
  color: var(--lsls-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

/* Slightly larger tint sample improves visibility of lighter colours. */
.lsls-depth-visual {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}

/* === v0.1.9 pricing matrix, bifocal style and stackable Drive coating === */
.lsls-availability-note {
  margin-top: 12px;
  color: #6b625b;
  font-size: 12px;
  line-height: 1.55;
}

.lsls-option-price {
  display: block;
  margin-top: 7px;
  color: #2e2b29 !important;
  font-weight: 800;
}

@media (max-width: 640px) {
}

@media (max-width: 640px) {
}


/* === v0.1.13 vision illustrations + material education ================= */
.lsls-choice-header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.lsls-choice-header .lsls-choice-title {
  padding-right: 0;
  min-width: 0;
}

.lsls-lens-type-visual {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 1px solid #e6e0db;
  border-radius: 14px;
  background: #faf8f6;
  color: #5a5350;
}

.lsls-choice-card.is-selected .lsls-lens-type-visual {
  border-color: rgba(35,75,62,.25);
  background: #fff;
  color: var(--lsls-accent);
}

.lsls-lens-type-visual svg {
  width: 38px;
  height: 38px;
  display: block;
}

.lsls-material-guide {
  margin: 0 0 18px;
  border: 1px solid #dfdad5;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.lsls-material-guide summary {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.lsls-material-guide summary::-webkit-details-marker { display: none; }

.lsls-material-guide summary > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.lsls-material-guide summary strong {
  font-size: 13.5px;
  color: var(--lsls-ink);
}

.lsls-material-guide summary small {
  font-size: 11.5px;
  color: var(--lsls-muted);
}

.lsls-material-guide-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f7eeee;
  color: var(--lsls-accent);
  font-weight: 900;
  font-family: Georgia, serif;
}

.lsls-material-guide-chevron {
  font-size: 20px;
  line-height: 1;
  color: #766f69;
  transition: transform .18s ease;
}

.lsls-material-guide[open] .lsls-material-guide-chevron { transform: rotate(180deg); }

.lsls-material-guide-body {
  padding: 0 16px 16px;
  border-top: 1px solid #eee9e5;
}

.lsls-material-guide-intro {
  padding: 14px 0 10px;
}

.lsls-material-guide-intro strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.lsls-material-guide-intro p,
.lsls-material-guide-note {
  margin: 0;
  color: var(--lsls-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.lsls-material-comparison {
  border: 1px solid #e7e2dd;
  border-radius: 12px;
  overflow: hidden;
}

.lsls-material-row {
  display: grid;
  grid-template-columns: minmax(120px, .9fr) minmax(90px, .55fr) minmax(190px, 1.5fr);
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-top: 1px solid #eeeae6;
  font-size: 11.5px;
  line-height: 1.4;
}

.lsls-material-row:first-child { border-top: 0; }
.lsls-material-row-head {
  background: #faf8f6;
  color: #6a625d;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 9.5px;
}

.lsls-material-guide-note { margin-top: 10px; }

@media (max-width: 640px) {
  .lsls-choice-header { gap: 10px; }
  .lsls-lens-type-visual { width: 46px; height: 46px; flex-basis: 46px; border-radius: 12px; }
  .lsls-lens-type-visual svg { width: 32px; height: 32px; }

  .lsls-material-row {
    grid-template-columns: minmax(104px, .9fr) minmax(76px, .55fr) minmax(150px, 1.35fr);
    min-width: 440px;
  }

  .lsls-material-comparison { overflow-x: auto; }
}


/* === v0.1.14 material guide + upgraded lens visuals ==================== */
.lsls-lens-type-visual {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 16px;
  overflow: hidden;
}

.lsls-lens-type-visual svg {
  width: 42px;
  height: 42px;
}

.lsls-material-guide summary small {
  font-size: 12px;
}

@media (max-width: 640px) {
  .lsls-lens-type-visual {
    width: 50px;
    height: 50px;
    flex-basis: 50px;
    border-radius: 13px;
  }
  .lsls-lens-type-visual svg {
    width: 36px;
    height: 36px;
  }
}


/* === v0.1.15 uniform lens-type icons =================================== */
.lsls-lens-type-visual {
  background: #faf8f6;
  color: #6a625d;
}

.lsls-choice-card.is-selected .lsls-lens-type-visual {
  background: #fff;
}

.lsls-lens-type-visual svg {
  overflow: visible;
}


@media (max-width: 980px) {
  .lsls-single-lens-stage { min-height: 270px; }
  .lsls-lens-shape { width: min(270px, 84%); }
}

@media (max-width: 680px) {
  .lsls-single-lens-stage { min-height: 230px; }
  .lsls-lens-shape { width: min(230px, 82%); }
  .lsls-lens-placeholder small { display: none; }
}


/* === v0.1.24 stability + plain upright demo lens ======================= */
@media (max-width: 1180px) {
  .lsls-footer {
    grid-template-columns: minmax(96px, auto) minmax(130px, 1fr) minmax(160px, auto);
    padding: 12px 30px;
  }
}

@media (max-width: 980px) {
  .lsls-single-lens-stage { min-height: 205px; }
  .lsls-lens-shape { width: min(175px, 64%); }
  .lsls-footer {
    grid-template-columns: minmax(92px, auto) minmax(115px, 1fr) minmax(150px, auto);
    padding: 11px 22px calc(11px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 680px) {
  .lsls-single-lens-stage { min-height: 185px; }
  .lsls-lens-shape { width: min(150px, 60%); }
  .lsls-footer {
    grid-template-columns: minmax(78px, .75fr) minmax(88px, 1fr) minmax(118px, 1.25fr);
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .lsls-running-total {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
  }
  #lsls-next { grid-column: 3; grid-row: 1; }
  #lsls-back { grid-column: 1; grid-row: 1; }
  .lsls-order-message { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 390px) {
  .lsls-footer {
    grid-template-columns: 72px minmax(68px, 1fr) minmax(108px, 1.35fr);
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }
}


/* === v0.1.25 mobile final preview + gold coating ======================= */
.lsls-mobile-final-preview {
  display: none;
}

.lsls-mobile-preview-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #ebe6e1;
  border-radius: 16px;
  background: linear-gradient(180deg, #faf8ef 0%, #f7f4f0 100%);
}

.lsls-mobile-frame-card img {
  display: block;
  width: 100%;
  max-height: 180px;
  margin: 8px auto 0;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.lsls-mobile-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lsls-mobile-preview-head small {
  color: var(--lsls-muted);
  font-size: 10px;
}

.lsls-mobile-lens-preview {
  min-height: 180px;
  padding: 8px 12px 4px;
}

.lsls-mobile-lens-preview .lsls-lens-shape {
  width: min(160px, 56vw);
}

.lsls-mobile-preview-badges {
  margin-top: 4px;
}

@media (max-width: 980px) {
  .lsls-mobile-final-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 18px;
  }

  .lsls-mobile-lens-preview .lsls-lens-shape {
    width: min(150px, 38vw);
  }
}

@media (max-width: 620px) {
  .lsls-mobile-final-preview {
    grid-template-columns: 1fr;
  }

  .lsls-mobile-frame-card img {
    max-height: 150px;
  }

  .lsls-mobile-lens-preview {
    min-height: 165px;
  }

  .lsls-mobile-lens-preview .lsls-lens-shape {
    width: min(145px, 48vw);
  }
}


/* === v0.1.26 viewport-safe studio layout ===============================
   Final override layer: keep the action bar inside the modal grid at every
   viewport width/zoom level and prevent it from covering the studio header. */
.lsls-overlay {
  padding: clamp(10px, 2vw, 24px);
}

.lsls-modal {
  width: min(1380px, calc(100vw - clamp(20px, 4vw, 48px)));
  height: min(860px, calc(100dvh - clamp(20px, 4vw, 48px)));
  max-width: 100%;
  max-height: 100dvh;
}

.lsls-modal > .lsls-product-panel,
.lsls-modal > .lsls-config-panel {
  min-height: 0;
  max-height: 100%;
}

.lsls-config-panel {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  overflow: hidden !important;
  padding: 0 !important;
}

.lsls-config-scroll {
  grid-row: 1;
  min-height: 0 !important;
  height: auto !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lsls-footer {
  position: relative !important;
  inset: auto !important;
  grid-row: 2;
  align-self: end;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  transform: none !important;
  z-index: 30;
}

/* Keep footer controls on one stable row until genuinely narrow mobile. */
#lsls-back,
#lsls-next {
  position: relative;
  z-index: 1;
}

/* A little extra breathing room at normal desktop zoom and short screens. */
@media (min-width: 981px) and (max-height: 820px) {
  .lsls-modal {
    height: calc(100dvh - 24px);
  }

  .lsls-config-scroll {
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .lsls-topbar h2 {
    font-size: clamp(30px, 3vw, 42px);
  }

  .lsls-progress {
    margin: 18px 0 30px;
  }

  .lsls-footer {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (max-width: 980px) {
  .lsls-overlay {
    padding: 0;
  }

  .lsls-modal {
    width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .lsls-config-scroll {
    padding-top: max(22px, env(safe-area-inset-top, 0px));
    padding-bottom: 22px;
    scroll-padding-top: 12px;
  }

  .lsls-topbar {
    position: relative;
    z-index: 2;
    min-height: 64px;
    padding-right: 52px;
  }

  .lsls-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: 12px;
  }

  .lsls-footer {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
}

@media (max-width: 680px) {
  .lsls-config-scroll {
    padding: max(18px, env(safe-area-inset-top, 0px)) 16px 20px;
  }

  .lsls-topbar {
    align-items: flex-start;
    padding-right: 46px;
  }

  .lsls-topbar h2 {
    margin-top: 3px;
    font-size: clamp(28px, 9vw, 34px);
    line-height: 1.05;
  }

  .lsls-progress-copy {
    padding-top: 8px;
  }

  .lsls-footer {
    grid-template-columns: minmax(78px, .8fr) minmax(92px, 1fr) minmax(126px, 1.35fr) !important;
    min-height: 70px;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
  }

  .lsls-running-total {
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-content: center;
    text-align: center;
  }

  #lsls-back {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  #lsls-next {
    grid-column: 3 !important;
    grid-row: 1 !important;
    width: 100%;
  }

  .lsls-order-message {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
  }
}

@media (max-width: 430px) {
  .lsls-footer {
    grid-template-columns: 72px minmax(78px, .9fr) minmax(116px, 1.25fr) !important;
    gap: 6px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .lsls-secondary,
  .lsls-primary {
    min-width: 0 !important;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }

  .lsls-running-total {
    gap: 4px;
    font-size: 11px;
  }

  .lsls-running-total strong {
    font-size: 14px;
  }
}


/* === v0.1.27 mobile action polish + WhatsApp collision fix ============ */
/* Keep the Lens Studio above third-party floating contact widgets. */
.lsls-overlay {
  z-index: 2147483000 !important;
}

/* Hide common floating WhatsApp launchers while the Lens Studio is open. */
body.lsls-lock .ht-ctc-chat,
body.lsls-lock #ht-ctc-chat,
body.lsls-lock .joinchat,
body.lsls-lock #joinchat,
body.lsls-lock .qlwapp,
body.lsls-lock #qlwapp,
body.lsls-lock .wa__btn_popup,
body.lsls-lock .whatsappme,
body.lsls-lock [class*="whatsapp-widget"],
body.lsls-lock a[href*="wa.me"],
body.lsls-lock a[href*="api.whatsapp.com"],
body.lsls-lock a[href*="web.whatsapp.com"] {
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Override theme button styling inside the selector. */
.lsls-modal #lsls-next.lsls-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 190px !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 24px !important;
  border: 1px solid var(--lsls-accent) !important;
  border-radius: 10px !important;
  background: var(--lsls-accent) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: none !important;
  white-space: nowrap !important;
  box-shadow: 0 8px 18px rgba(35,75,62, .16) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.lsls-modal #lsls-next.lsls-primary:hover:not(:disabled),
.lsls-modal #lsls-next.lsls-primary:focus-visible:not(:disabled) {
  border-color: var(--lsls-accent-dark) !important;
  background: var(--lsls-accent-dark) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(165, 7, 7, .22) !important;
  transform: translateY(-1px);
}

.lsls-modal #lsls-next.lsls-primary:disabled {
  background: #d96a6a !important;
  border-color: #d96a6a !important;
  color: #fff !important;
  box-shadow: none !important;
  opacity: .72 !important;
  cursor: wait !important;
}

.lsls-modal #lsls-back.lsls-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 52px !important;
  min-height: 52px !important;
  padding: 0 20px !important;
  border: 1px solid #d8d3cf !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #333 !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-transform: none !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

@media (max-width: 680px) {
  .lsls-footer {
    grid-template-columns: minmax(84px, .8fr) minmax(98px, 1fr) minmax(118px, 1.15fr) !important;
    gap: 8px !important;
  }

  .lsls-modal #lsls-next.lsls-primary,
  .lsls-modal #lsls-back.lsls-secondary {
    width: 100% !important;
    min-width: 0 !important;
    height: 50px !important;
    min-height: 50px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .lsls-modal #lsls-next.lsls-primary {
    font-size: 13.5px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 390px) {
  .lsls-footer {
    grid-template-columns: 78px minmax(84px, 1fr) minmax(108px, 1.1fr) !important;
  }

  .lsls-modal #lsls-next.lsls-primary,
  .lsls-modal #lsls-back.lsls-secondary {
    font-size: 13px !important;
  }
}


/* === v0.1.28 final action label / mobile footer safeguard ============= */
@media (max-width: 980px) {
  .lsls-modal #lsls-next.lsls-primary {
    min-width: 0 !important;
    max-width: 180px !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

@media (max-width: 680px) {
  .lsls-modal #lsls-next.lsls-primary {
    max-width: none !important;
    font-size: 13px !important;
  }
}


.lsls-lens-preview .lsls-segment,
.lsls-lens-preview .lsls-segment-line {
  display: none !important;
}


/* === v0.1.30 updated supplied lens artwork ============================ */
.lsls-single-lens-stage {
  background: #fff;
}

.lsls-lens-shape {
  width: min(300px, 94%);
}

.lsls-lens-type-image {
  object-fit: contain;
  transform: none;
}

/* Match the colour/coating mask to the actual round lens in the supplied artwork. */
.lsls-lens-surface {
  left: 7.4%;
  right: 7.4%;
  top: 9%;
  bottom: 6.5%;
  border-radius: 50%;
}

@media (max-width: 980px) {
  .lsls-lens-shape { width: min(280px, 94%); }
}

@media (max-width: 680px) {
  .lsls-lens-shape { width: min(250px, 94%); }
}


/* === v0.1.31 supplied artwork + no-line bifocal ======================= */
.lsls-single-lens-stage {
  min-height: 280px;
  background: #fff;
}

.lsls-lens-shape {
  width: min(345px, 98%);
}

.lsls-lens-type-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Keep colour / photochromic / coating effects safely inside the actual
   circular lens artwork. A small clear rim is intentional and looks more
   like a real uncut lens edge. */
.lsls-lens-surface {
  left: 9.2%;
  right: 9.2%;
  top: 9.2%;
  bottom: 9.2%;
  border-radius: 50%;
  overflow: hidden;
}

.lsls-lens-fill {
  mix-blend-mode: multiply;
}
.lsls-lens-sheen{
  border-radius: 50%;
}

@media (max-width: 980px) {
  .lsls-lens-shape { width: min(310px, 96%); }
  .lsls-single-lens-stage { min-height: 255px; }
}

@media (max-width: 680px) {
  .lsls-lens-shape { width: min(260px, 94%); }
  .lsls-single-lens-stage { min-height: 225px; }
}


/* === v0.1.32 compact desktop studio ===================================
   Slightly denser desktop presentation so more of each step is visible at
   100% browser zoom without changing the mobile/tablet layout. */
@media (min-width: 981px) {
  .lsls-overlay {
    padding: 12px;
  }

  .lsls-modal {
    width: min(1480px, calc(100vw - 24px));
    height: min(900px, calc(100dvh - 24px));
    grid-template-columns: minmax(300px, 35%) minmax(0, 65%);
    border-radius: 20px;
  }

  .lsls-product-image-wrap {
    padding: 20px 24px 18px;
  }

  .lsls-frame-preview-shell {
    gap: 12px;
  }

  .lsls-frame-preview-stage {
    gap: 7px;
  }

  .lsls-frame-preview-stage img {
    max-height: 250px;
  }

  .lsls-single-lens-module {
    gap: 9px;
    padding: 13px;
    border-radius: 15px;
  }

  .lsls-single-lens-stage {
    min-height: 225px;
  }

  .lsls-lens-shape {
    width: min(285px, 94%);
  }

  .lsls-preview-badges {
    gap: 5px;
  }

  .lsls-preview-badge {
    padding: 5px 8px;
    font-size: 10.5px;
  }

  .lsls-config-scroll {
    padding: 24px 34px 20px !important;
  }

  .lsls-topbar {
    gap: 16px;
    padding-right: 48px;
  }

  .lsls-eyebrow,
  .lsls-step-kicker {
    font-size: 10px;
  }

  .lsls-topbar h2 {
    font-size: clamp(30px, 2.7vw, 42px);
  }

  .lsls-progress {
    margin: 17px 0 28px;
  }

  .lsls-step-heading {
    margin-bottom: 18px;
  }

  .lsls-step-heading h3 {
    margin: 5px 0 7px;
    font-size: clamp(25px, 2vw, 32px);
  }

  .lsls-step-heading p {
    font-size: 14px;
    line-height: 1.45;
  }

  .lsls-card-grid {
    gap: 10px;
  }

  .lsls-choice-card {
    min-height: 136px;
    padding: 17px 18px;
    border-radius: 12px;
  }

  .lsls-choice-card.is-selected {
    padding: 16px 17px;
  }

  .lsls-choice-header {
    gap: 11px;
  }

  .lsls-lens-type-visual {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 12px;
  }

  .lsls-lens-type-visual svg {
    width: 34px;
    height: 34px;
  }

  .lsls-choice-title {
    padding-right: 50px;
    font-size: 15.5px;
    line-height: 1.2;
  }

  .lsls-choice-card p {
    margin: 8px 0 11px;
    font-size: 12.5px;
    line-height: 1.42;
  }

  .lsls-choice-footer {
    gap: 10px;
    padding-top: 9px;
    font-size: 11px;
  }

  .lsls-card-check {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 12px;
  }

  .lsls-badge {
    top: 12px;
    right: 12px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .lsls-method-tabs {
    margin-bottom: 16px;
  }

  .lsls-method {
    min-height: 40px;
  }

  .lsls-footer {
    min-height: 66px !important;
    padding: 8px 34px !important;
  }

  .lsls-modal #lsls-next.lsls-primary,
  .lsls-modal #lsls-back.lsls-secondary {
    height: 46px !important;
    min-height: 46px !important;
  }

  .lsls-modal #lsls-next.lsls-primary {
    min-width: 170px !important;
  }
}

/* Short desktop/laptop displays get one extra compact notch. */
@media (min-width: 981px) and (max-height: 780px) {
  .lsls-config-scroll {
    padding-top: 18px !important;
    padding-bottom: 16px !important;
  }

  .lsls-product-image-wrap {
    padding-top: 16px;
  }

  .lsls-frame-preview-stage img {
    max-height: 220px;
  }

  .lsls-single-lens-stage {
    min-height: 195px;
  }

  .lsls-lens-shape {
    width: min(250px, 90%);
  }

  .lsls-progress {
    margin: 13px 0 22px;
  }

  .lsls-step-heading {
    margin-bottom: 14px;
  }

  .lsls-choice-card {
    min-height: 124px;
    padding: 14px 16px;
  }

  .lsls-choice-card.is-selected {
    padding: 13px 15px;
  }

  .lsls-choice-card p {
    margin-bottom: 8px;
  }
}


/* === v0.1.33 mobile footer + review preview polish ==================== */
@media (max-width: 680px) {
  /* Keep the pre-material footer label compact enough for narrow phones. */
  .lsls-running-total {
    gap: 2px !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .lsls-running-total span {
    max-width: 76px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lsls-running-total strong {
    font-size: 13px !important;
    line-height: 1 !important;
  }

  /* Match the desktop white preview treatment so the supplied PNG canvas
     disappears into the mobile card instead of showing as a white square. */
  .lsls-mobile-lens-card,
  .lsls-mobile-lens-preview {
    background: #fff !important;
  }

  .lsls-mobile-lens-card {
    border-color: #ebe6e1;
  }

  .lsls-mobile-lens-preview {
    border-radius: 14px;
  }
}


/* === v0.1.34 upgraded lens type card icons ============================= */
.lsls-lens-type-visual {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  padding: 0;
  overflow: hidden;
  border-radius: 17px;
  background: transparent;
  border-color: transparent;
}

.lsls-choice-card.is-selected .lsls-lens-type-visual {
  background: transparent;
  border-color: transparent;
}

.lsls-lens-type-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

@media (max-width: 980px) {
  .lsls-lens-type-visual {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 15px;
  }
}

@media (max-width: 640px) {
  .lsls-choice-header { gap: 12px; }
  .lsls-lens-type-visual {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-radius: 14px;
  }
}


/* === v0.1.35 mobile lens-type icon sizing ============================= */
@media (max-width: 980px) {
  .lsls-lens-type-visual {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
    border-radius: 16px !important;
  }

  .lsls-lens-type-visual img {
    width: 106% !important;
    height: 106% !important;
    max-width: none !important;
    object-fit: contain !important;
    transform: translate(-3%, -3%);
  }
}

@media (max-width: 640px) {
  .lsls-choice-header {
    gap: 14px !important;
    align-items: center;
  }

  .lsls-lens-type-visual {
    width: 68px !important;
    height: 68px !important;
    flex: 0 0 68px !important;
    border-radius: 17px !important;
  }

  .lsls-lens-type-visual img {
    width: 108% !important;
    height: 108% !important;
    transform: translate(-4%, -4%);
  }
}

/* === v0.1.41 standalone reglazing shortcode ============================ */
.lsls-reglaze-launch,
.lsls-reglaze-launch * {
  box-sizing: border-box;
}

.lsls-reglaze-launch {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  width: min(1180px, 100%);
  margin: 28px auto;
  padding: clamp(28px, 5vw, 68px);
  border: 1px solid #e8e2dc;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fbf9f7 58%, #f3efeb 100%);
  box-shadow: 0 18px 55px rgba(22, 18, 14, .06);
  color: var(--lsls-ink);
}

.lsls-reglaze-copy {
  min-width: 0;
}

.lsls-reglaze-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--lsls-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.lsls-reglaze-launch h2 {
  margin: 0 0 14px;
  max-width: 780px;
  color: var(--lsls-ink);
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.035em;
}

.lsls-reglaze-launch p {
  margin: 0;
  max-width: 760px;
  color: var(--lsls-muted);
  font-size: 16px;
  line-height: 1.65;
}

.lsls-reglaze-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 24px;
}

.lsls-reglaze-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #e7e1dc;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: #403c39;
  font-size: 12px;
  font-weight: 700;
}

.lsls-reglaze-button.lsls-open-button {
  min-width: 0 !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  border-radius: 10px !important;
  background: var(--lsls-accent) !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.lsls-reglaze-button.lsls-open-button:hover,
.lsls-reglaze-button.lsls-open-button:focus {
  background: var(--lsls-accent-dark) !important;
}

.lsls-reglaze-small {
  margin-top: 13px !important;
  max-width: 700px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

.lsls-reglaze-visual {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 300px;
  padding: 30px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  background: rgba(255,255,255,.72);
  text-align: center;
}

.lsls-reglaze-visual strong {
  font-size: 18px;
}

.lsls-reglaze-visual > span {
  color: var(--lsls-muted);
  font-size: 12px;
}

.lsls-own-frame-icon {
  width: min(260px, 78%);
  color: #232323;
}

.lsls-own-frame-icon svg {
  display: block;
  width: 100%;
  height: auto;
}

.lsls-own-frame-icon--large {
  width: min(310px, 92%);
  color: var(--lsls-accent);
}

.lsls-frame-preview-stage.is-reglaze {
  min-height: 220px;
}

.lsls-own-frame-preview {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 195px;
  padding: 22px 18px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 16px;
  background: rgba(255,255,255,.68);
  text-align: center;
}

.lsls-own-frame-preview strong {
  color: var(--lsls-ink);
  font-size: 14px;
}

.lsls-own-frame-preview small {
  max-width: 260px;
  color: var(--lsls-muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.lsls-own-frame-preview--mobile {
  min-height: 145px;
  margin-top: 8px;
  padding: 15px;
}

.lsls-own-frame-preview--mobile .lsls-own-frame-icon {
  width: min(190px, 72%);
}

.lsls-reglaze-review-note {
  display: grid;
  gap: 4px;
  margin: 16px 0 12px;
  padding: 13px 15px;
  border: 1px solid #e8dfd7;
  border-radius: 12px;
  background: #fbf7f3;
}

.lsls-reglaze-review-note strong {
  color: var(--lsls-ink);
  font-size: 12px;
}

.lsls-reglaze-review-note span {
  color: var(--lsls-muted);
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 820px) {
  .lsls-reglaze-launch {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .lsls-reglaze-visual {
    min-height: 220px;
    order: -1;
  }
}

@media (max-width: 520px) {
  .lsls-reglaze-launch {
    margin: 18px auto;
    border-radius: 18px;
  }

  .lsls-reglaze-launch h2 {
    font-size: 34px;
  }

  .lsls-reglaze-button.lsls-open-button {
    width: 100% !important;
  }

  .lsls-reglaze-points {
    display: grid;
  }

  .lsls-reglaze-points span {
    justify-content: center;
  }
}


/* === v0.1.42 Lens Studio heading polish ================================
   Match the standalone Tint Studio's more premium editorial hierarchy. */
.lsls-brand-heading {
  margin-bottom: 10px;
  color: var(--lsls-accent);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(21px, 2vw, 27px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.lsls-topbar h2#lsls-title {
  margin: 0;
  color: var(--lsls-ink, #222);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
}

@media (max-width: 680px) {
  .lsls-brand-heading {
    margin-bottom: 8px;
    font-size: 20px;
  }

  .lsls-topbar h2#lsls-title {
    margin-top: 0;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.02;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .lsls-brand-heading {
    margin-bottom: 8px;
    font-size: clamp(19px, 1.7vw, 24px);
  }

  .lsls-topbar h2#lsls-title {
    font-size: clamp(32px, 3.5vw, 46px);
  }
}

/* LittleSpecs: a calm, playful space for parents choosing their child's lenses. */
.lsls-modal, .lsls-reglaze-launch, .lsls-open-button {
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.lsls-modal { background: #faf8ef; border: 1px solid #dce0d2; border-radius: 28px; }
.lsls-modal h2, .lsls-modal h3, .lsls-brand-heading, .lsls-reglaze-launch h2 {
  font-family: "Bricolage Grotesque", sans-serif !important;
  color: #234b3e; letter-spacing: -.035em; text-transform: none;
}
.lsls-brand-heading { color: #52684f; font-size: 13px; letter-spacing: .02em; }
.lsls-product-panel { background: #f0eddb; border-color: #dce0d2; }
.lsls-config-panel, .lsls-config-scroll { background: #faf8ef; }
.lsls-config-panel .lsls-footer { background: #faf8ef; border-color: #dce0d2; }
.lsls-topbar h2 { font-size: clamp(25px, 2.4vw, 35px); line-height: 1.1; }
.lsls-step-heading h3, .lsls-review-heading h3 { font-size: clamp(23px, 2vw, 29px); line-height: 1.15; }
.lsls-step-heading p, .lsls-review-heading p { color: #58655c; font-size: 14px; line-height: 1.6; }
.lsls-review-heading { border-top: 1px solid #dce0d2; padding-top: 26px; margin: 28px 0 18px; }
.lsls-review-heading h3 { margin: 0 0 8px; }
.lsls-review-heading p { margin: 0; }
.lsls-choice-card { border-radius: 20px !important; background: #fffef8 !important; border-color: #dce0d2 !important; }
.lsls-choice-card:hover, .lsls-choice-card:focus-visible { border-color: #234b3e !important; }
.lsls-choice-card.is-selected { background: #234b3e !important; border-color: #234b3e !important; color: #faf8ef !important; }
.lsls-choice-card.is-selected .lsls-choice-title,
.lsls-choice-card.is-selected p,
.lsls-choice-card.is-selected .lsls-choice-footer,
.lsls-choice-card.is-selected .lsls-choice-footer span,
.lsls-choice-card.is-selected .lsls-choice-footer strong { color: #faf8ef !important; }
.lsls-choice-card.is-selected .lsls-card-check { background: #faf8ef !important; color: #234b3e !important; border-color: #faf8ef !important; }
.lsls-choice-card.is-selected .lsls-card-tag { background: #f0cc63 !important; color: #234b3e !important; border-color: transparent !important; }
.lsls-card-tag.is-recommended-tag { background: #f0cc63; color: #234b3e; border: 0; }
.lsls-recommendation { background: #eaf0df; border-color: #cdd9bc; border-radius: 18px; }
.lsls-recommendation-mark { background: #234b3e; color: #faf8ef; }
.lsls-recommendation-label { color: #3f613e; }
.lsls-price-card { background: #eaf0df; border: 1px solid #cdd9bc; border-radius: 20px; }
.lsls-review-card { border-radius: 20px; border-color: #dce0d2; background: #fffef8; }
.lsls-primary, .lsls-open-button, .lsls-reglaze-button {
  background: #234b3e !important; color: #faf8ef !important; border-radius: 999px !important;
  text-transform: none !important; letter-spacing: 0 !important;
}
.lsls-primary:hover, .lsls-primary:focus-visible,
.lsls-open-button:hover, .lsls-open-button:focus-visible { background: #173b30 !important; color: #faf8ef !important; }
.lsls-secondary { background: transparent !important; border-radius: 999px !important; color: #234b3e !important; border-color: #bdc9b9 !important; }
.lsls-method.is-active, .lsls-preview-mode.is-active { background: #234b3e !important; color: #faf8ef !important; border-color: #234b3e !important; }
.lsls-rx-table select { background-color: #fffef8; color: #234b3e; }
.lsls-inline-note, .lsls-pd-box, .lsls-material-guide { border-color: #dce0d2; border-radius: 16px; }
.lsls-check-row input, .lsls-pd-toggle input { accent-color: #234b3e; }
.lsls-modal [hidden] { display: none !important; }
.lsls-modal button:focus-visible, .lsls-modal select:focus-visible,
.lsls-modal input:focus-visible, .lsls-modal summary:focus-visible {
  outline: 3px solid #db6745 !important; outline-offset: 3px;
}
.lsls-modal button:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 680px) {
  .lsls-modal { border-radius: 0; }
  .lsls-topbar h2 { max-width: 240px; font-size: 25px; }
  .lsls-step-heading h3, .lsls-review-heading h3 { font-size: 24px; }
  .lsls-choice-card { border-radius: 16px !important; }
  .lsls-review-heading { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .lsls-modal *, .lsls-modal *::before, .lsls-modal *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.lsls-modal #lsls-next.lsls-primary,
.lsls-modal #lsls-back.lsls-secondary { border-radius: 999px !important; }
.lsls-modal #lsls-next.lsls-primary { color: #faf8ef !important; }
.lsls-modal #lsls-back.lsls-secondary { background: transparent !important; color: #234b3e !important; border-color: #bdc9b9 !important; }
.lsls-modal #lsls-next.lsls-primary:disabled { background: #71867b !important; border-color: #71867b !important; color: #faf8ef !important; }
.lsls-modal #lsls-next.lsls-primary:hover:not(:disabled),
.lsls-modal #lsls-next.lsls-primary:focus-visible:not(:disabled) { box-shadow: 0 10px 22px rgba(35,75,62,.18) !important; color: #faf8ef !important; }

@media (max-width: 680px) { .lsls-rx-table tbody td[data-label="AXIS"] { grid-column: 1 / -1; } }

/* Independent optional upgrades, shared by all offered materials. */
.lsls-optional-extras { margin: 24px 0; padding: 20px; border: 1px solid #dce0d2; border-radius: 20px; background: #f3f1e5; }
.lsls-upgrade-list { display: grid; gap: 14px; margin-top: 15px; }
.lsls-modal .lsls-upgrade-choice {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 24px; align-items: center; gap: 12px;
  width: 100%; min-height: 100px; margin: 0; padding: 18px; border: 1px solid #cbd5c4; border-radius: 16px;
  background: #fffef8; color: #234b3e; text-align: left; text-transform: none; letter-spacing: 0;
  font-family: inherit; font-size: 14px; line-height: 1.45; box-shadow: none; cursor: pointer;
}
.lsls-modal .lsls-upgrade-choice:hover { border-color: #234b3e; background: #f0f3e8; color: #234b3e; }
.lsls-upgrade-icon { font-size: 29px; line-height: 1; color: #526f52; text-align: center; }
.lsls-upgrade-copy { display: grid; gap: 5px; }
.lsls-upgrade-copy strong { color: #234b3e; font-size: 15px; font-weight: 700; line-height: 1.3; }
.lsls-upgrade-copy small { color: #58655c; font-size: 12.5px; line-height: 1.5; font-weight: 400; }
.lsls-upgrade-price { white-space: nowrap; color: #234b3e; font-size: 13px; font-weight: 700; }
.lsls-modal .lsls-upgrade-choice.is-selected { border-color: #234b3e !important; background: #234b3e !important; color: #faf8ef !important; }
.lsls-modal .lsls-upgrade-choice.is-selected .lsls-upgrade-icon,
.lsls-modal .lsls-upgrade-choice.is-selected .lsls-upgrade-copy strong,
.lsls-modal .lsls-upgrade-choice.is-selected .lsls-upgrade-copy small,
.lsls-modal .lsls-upgrade-choice.is-selected .lsls-upgrade-price { color: #faf8ef !important; }
.lsls-modal .lsls-upgrade-choice .lsls-card-check { position: static; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #bac9b5; border-radius: 50%; color: #234b3e; background: transparent; }
.lsls-modal .lsls-upgrade-choice.is-selected .lsls-card-check { color: #234b3e !important; background: #f0cc63 !important; border-color: #f0cc63 !important; }
.lsls-upgrade-block > .lsls-preview-disclaimer { margin: 7px 5px 0; color: #58655c; font-size: 11px; line-height: 1.5; }
.lsls-lens-preview.has-black-edge .lsls-lens-surface::after { content: ""; position: absolute; inset: 0; z-index: 6; border: 4px solid #202720; border-radius: 50%; pointer-events: none; }
.lsls-lens-preview.has-teflon .lsls-lens-sheen { background: linear-gradient(130deg, transparent 20%, rgba(225,197,180,.1) 40%, rgba(230,200,183,.3) 50%, transparent 68%); }
@media (max-width: 680px) {
  .lsls-optional-extras { padding: 14px; }
  .lsls-modal .lsls-upgrade-choice { grid-template-columns: 28px minmax(0, 1fr) 24px; gap: 8px; padding: 14px; }
  .lsls-upgrade-copy { grid-column: 2; grid-row: 1; }
  .lsls-upgrade-icon { grid-column: 1; grid-row: 1; align-self: start; }
  .lsls-upgrade-price { grid-column: 2; grid-row: 2; }
  .lsls-upgrade-choice .lsls-card-check { grid-column: 3; grid-row: 1 / 3; }
}
