:root {
  --aals-red: #cc0a0a;
  --aals-red-dark: #a50707;
  --aals-ink: #171717;
  --aals-muted: #6b6b6b;
  --aals-line: #e7e3df;
  --aals-soft: #f7f5f2;
  --aals-warm: #fbfaf8;
  --aals-success: #1f6d45;
}

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

.aals-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;
}

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

.aals-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);
}

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

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

.aals-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(--aals-ink);
}

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

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

.aals-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(--aals-line);
}

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

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

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

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

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

.aals-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);
}

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

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

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

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

.aals-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%);
}

.aals-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);
}

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

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

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

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

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

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

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

.aals-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;
}

.aals-lens-fill,
.aals-lens-sheen,
.aals-drive-streak,
.aals-lens-preview .aals-segment,
.aals-lens-preview .aals-segment-line {
  position: absolute;
}

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

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

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

.aals-lens-preview.is-blue-fighter .aals-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;
}

.aals-lens-preview.is-multicoat .aals-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;
}

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

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

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

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

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

.aals-lens-preview.type-progressive .aals-segment,
.aals-lens-preview.type-progressive .aals-segment-line,
.aals-lens-preview.type-office .aals-segment,
.aals-lens-preview.type-office .aals-segment-line,
.aals-lens-preview.type-bifocal .aals-segment,
.aals-lens-preview.type-bifocal .aals-segment-line {
  opacity: 1;
}

.aals-lens-preview.type-progressive .aals-segment--top { background: rgba(172,211,234,.14); }
.aals-lens-preview.type-progressive .aals-segment--mid { background: rgba(111,196,224,.17); }
.aals-lens-preview.type-progressive .aals-segment--bottom { background: rgba(84,162,212,.20); }

.aals-lens-preview.type-office .aals-segment--top { opacity: 0; }
.aals-lens-preview.type-office .aals-segment--mid { top: 22%; height: 30%; background: rgba(111,196,224,.17); }
.aals-lens-preview.type-office .aals-segment--bottom { top: 56%; height: 26%; background: rgba(84,162,212,.20); }
.aals-lens-preview.type-office .aals-segment-line--one { top: 52%; }
.aals-lens-preview.type-office .aals-segment-line--two { opacity: 0; }

.aals-lens-preview.type-bifocal .aals-segment--top,
.aals-lens-preview.type-bifocal .aals-segment--mid { opacity: 0; }
.aals-lens-preview.type-bifocal .aals-segment--bottom {
  left: 18%;
  right: 18%;
  top: 68%;
  height: 20%;
  border-radius: 18px 18px 10px 10px;
  background: rgba(99,171,214,.15);
}
.aals-lens-preview.type-bifocal .aals-segment-line--one {
  left: 18%;
  right: 18%;
  top: 68%;
  border-top-style: solid;
}
.aals-lens-preview.type-bifocal .aals-segment-line--two { opacity: 0; }

.aals-drive-streak {
  z-index: 6;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(130deg,
    rgba(255,255,255,0) 18%,
    rgba(224,185,78,.04) 28%,
    rgba(244,204,92,.18) 45%,
    rgba(255,226,143,.28) 52%,
    rgba(205,158,51,.10) 61%,
    rgba(255,255,255,0) 76%);
  opacity: 0;
  transition: opacity .2s ease;
}

.aals-lens-preview.has-drive .aals-drive-streak {
  opacity: .78;
}

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

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

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

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

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

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

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

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

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

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

.aals-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(--aals-text);
}

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

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

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

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

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

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

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

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

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

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

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

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

.aals-step {
  display: none;
  animation: aalsFade .18s ease;
}

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

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

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

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

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

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

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

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

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

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

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

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

.aals-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;
}

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

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

.aals-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

.aals-rx-table select,
.aals-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(--aals-ink);
  font-size: 13px;
}

.aals-add-column.is-emphasized {
  background: #fff9f9;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.aals-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;
}

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

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

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

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

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

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

.aals-field-error {
  border-color: var(--aals-red) !important;
  box-shadow: 0 0 0 3px rgba(204,10,10,.10) !important;
}

.aals-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(--aals-line);
  border-radius: 12px;
  background: var(--aals-warm);
}

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

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

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

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

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

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

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

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

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

.aals-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(--aals-line);
  background: rgba(255,255,255,.99);
  box-shadow: 0 -8px 24px rgba(0,0,0,.04);
  pointer-events: auto;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .aals-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. */
.aals-config-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .aals-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(--aals-line);
    border-radius: 14px;
    background: #fff;
  }

  .aals-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;
  }

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

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

  .aals-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;
  }

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

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

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

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

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

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

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

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

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

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

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

.aals-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;
}

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

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

.aals-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;
}

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

/* The main recommendation is now a dedicated callout rather than a badge
   competing with the material title. */
.aals-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.aals-swatch-choice,
.aals-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(--aals-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

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

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

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

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

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

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

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

.aals-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%);
}

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

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

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

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

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

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

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

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

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

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

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

.aals-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(--aals-line);
  border-radius: 12px;
  background: #fff;
  color: var(--aals-ink);
  text-align: left;
  cursor: pointer;
}

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

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

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

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

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

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

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

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


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

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

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

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

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

.aals-drive-choice {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 26px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid #ded9d4;
  border-radius: 14px;
  background: #fff;
  color: var(--aals-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.aals-drive-choice:hover,
.aals-drive-choice:focus {
  border-color: #c9bdb3;
  box-shadow: 0 7px 20px rgba(0,0,0,.05);
}

.aals-drive-choice.is-selected {
  border: 2px solid var(--aals-red);
  padding: 15px;
  background: #fffafa;
}

.aals-drive-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6e9bd, #caa85c);
  color: #5b4517;
  font-size: 20px;
  box-shadow: inset 0 0 0 1px rgba(91,69,23,.12);
}

.aals-drive-copy {
  display: grid;
  gap: 4px;
}

.aals-drive-copy strong {
  font-size: 14px;
}

.aals-drive-copy small {
  color: var(--aals-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.aals-drive-price {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .aals-drive-choice {
    grid-template-columns: 38px minmax(0, 1fr) 24px;
  }
  .aals-drive-price {
    grid-column: 2 / 3;
    margin-top: 2px;
  }
  .aals-drive-choice .aals-card-check {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}


/* === v0.1.12 bifocal style visuals and layout fix ======================== */
#aals-bifocal-style .aals-style-choice {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
}

#aals-bifocal-style .aals-style-choice span,
#aals-bifocal-style .aals-style-choice strong,
#aals-bifocal-style .aals-style-choice small {
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
}

.aals-bifocal-visual {
  width: 58px;
  height: 44px;
  border: 1px solid #d9d4cf;
  border-radius: 10px;
  background: linear-gradient(to bottom, rgba(114, 127, 148, .18), rgba(114, 127, 148, .08));
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}

.aals-bifocal-visual::before,
.aals-bifocal-visual::after {
  content: '';
  position: absolute;
  left: 6px;
  right: 6px;
  border-radius: 8px;
}

.aals-bifocal-visual::before {
  top: 5px;
  bottom: 5px;
  border: 1px solid rgba(43, 42, 40, .14);
}

.aals-bifocal-visual--line::after {
  left: 12px;
  right: 12px;
  bottom: 9px;
  height: 12px;
  border: 1px solid rgba(43, 42, 40, .22);
  border-top: 2px solid rgba(43, 42, 40, .34);
  background: rgba(255,255,255,.58);
  border-radius: 0 0 12px 12px;
}

.aals-bifocal-visual--no-line::after {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to bottom,
    rgba(114, 127, 148, .36) 0%,
    rgba(114, 127, 148, .22) 38%,
    rgba(114, 127, 148, .10) 74%,
    rgba(114, 127, 148, .03) 100%);
}

@media (max-width: 640px) {
  #aals-bifocal-style .aals-style-choice {
    grid-template-columns: 58px minmax(0, 1fr) 24px;
  }
}


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

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

.aals-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;
}

.aals-choice-card.is-selected .aals-lens-type-visual {
  border-color: rgba(204,10,10,.25);
  background: #fff;
  color: var(--aals-red);
}

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

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

.aals-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

.aals-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;
}

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

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

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

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

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


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

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

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

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


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

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

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


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

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


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

@media (max-width: 980px) {
  .aals-single-lens-stage { min-height: 205px; }
  .aals-lens-shape { width: min(175px, 64%); }
  .aals-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) {
  .aals-single-lens-stage { min-height: 185px; }
  .aals-lens-shape { width: min(150px, 60%); }
  .aals-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));
  }
  .aals-running-total {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
  }
  #aals-next { grid-column: 3; grid-row: 1; }
  #aals-back { grid-column: 1; grid-row: 1; }
  .aals-order-message { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 390px) {
  .aals-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 ======================= */
.aals-mobile-final-preview {
  display: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

  .aals-mobile-lens-preview .aals-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. */
.aals-overlay {
  padding: clamp(10px, 2vw, 24px);
}

.aals-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;
}

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

.aals-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;
}

.aals-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;
}

.aals-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. */
#aals-back,
#aals-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) {
  .aals-modal {
    height: calc(100dvh - 24px);
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .aals-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));
  }

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

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

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

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

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

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

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

  .aals-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. */
.aals-overlay {
  z-index: 2147483000 !important;
}

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

/* Override theme button styling inside the selector. */
.aals-modal #aals-next.aals-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(--aals-red) !important;
  border-radius: 10px !important;
  background: var(--aals-red) !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(204, 10, 10, .16) !important;
  opacity: 1 !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

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

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

.aals-modal #aals-back.aals-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) {
  .aals-footer {
    grid-template-columns: minmax(84px, .8fr) minmax(98px, 1fr) minmax(118px, 1.15fr) !important;
    gap: 8px !important;
  }

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

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

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

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


/* === v0.1.28 final action label / mobile footer safeguard ============= */
@media (max-width: 980px) {
  .aals-modal #aals-next.aals-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) {
  .aals-modal #aals-next.aals-primary {
    max-width: none !important;
    font-size: 13px !important;
  }
}


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


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

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

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

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

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

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


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

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

.aals-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. */
.aals-lens-surface {
  left: 9.2%;
  right: 9.2%;
  top: 9.2%;
  bottom: 9.2%;
  border-radius: 50%;
  overflow: hidden;
}

.aals-lens-fill {
  mix-blend-mode: multiply;
}

.aals-lens-sheen,
.aals-drive-streak {
  border-radius: 50%;
}

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

@media (max-width: 680px) {
  .aals-lens-shape { width: min(260px, 94%); }
  .aals-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) {
  .aals-overlay {
    padding: 12px;
  }

  .aals-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;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .aals-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. */
  .aals-running-total {
    gap: 2px !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

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

  .aals-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. */
  .aals-mobile-lens-card,
  .aals-mobile-lens-preview {
    background: #fff !important;
  }

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

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


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

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

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

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

@media (max-width: 640px) {
  .aals-choice-header { gap: 12px; }
  .aals-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) {
  .aals-lens-type-visual {
    width: 64px !important;
    height: 64px !important;
    flex: 0 0 64px !important;
    border-radius: 16px !important;
  }

  .aals-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) {
  .aals-choice-header {
    gap: 14px !important;
    align-items: center;
  }

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

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