/* iFrame Opticals frame + lens wizard. */
.ifo-lens-launcher{margin-top:22px;padding:18px;background:#F3F8FC;border:1px solid #E0EDF6;border-radius:14px}
.ifo-lens-launcher p{margin:0 0 12px;color:#657683;font-size:13px}
.ifo-open-lens-wizard,.ifo-choose-lenses-link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;padding:0 22px!important;border:0!important;border-radius:10px!important;color:#fff!important;background:#3A75E9!important;font-size:13px!important;font-weight:750!important;text-align:center!important}
.ifo-lens-modal{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px}
.ifo-lens-modal.is-open{display:flex}
.ifo-lens-backdrop{position:absolute;inset:0;background:rgba(12,23,44,.58);backdrop-filter:blur(4px)}
.ifo-lens-dialog{position:relative;display:flex;flex-direction:column;width:min(100%,760px);max-height:min(92vh,900px);overflow:hidden;background:#F7F8FB;border:1px solid rgba(255,255,255,.7);border-radius:22px;box-shadow:0 28px 90px rgba(9,20,40,.3)}
.ifo-lens-header{display:flex;align-items:center;gap:14px;padding:20px 24px 14px;background:#fff}
.ifo-lens-header h2{margin:0;color:#080B45;font-size:25px;letter-spacing:-.04em}
.ifo-lens-header p{margin:3px 0 0;color:#78809D;font-size:12px}
.ifo-lens-back,.ifo-lens-close{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:38px;height:38px;padding:0;color:#080B45;background:#F2F4F9;border:0;border-radius:50%;font-size:22px;cursor:pointer}
.ifo-lens-close{margin-left:auto}
.ifo-lens-progress{display:flex;gap:0;padding:14px 28px 12px;background:#fff;border-bottom:1px solid #E7E9F0}
.ifo-lens-progress-step{display:flex;flex:1 1 0;flex-direction:column;align-items:center;gap:6px;color:#9A9EB2;font-size:12px;font-weight:700;text-align:center}
.ifo-lens-progress-step strong{display:flex;align-items:center;justify-content:center;width:30px;height:30px;color:#fff;background:#A1A4B8;border-radius:50%;font-size:14px}
.ifo-lens-progress-step.is-active{color:#10134D}
.ifo-lens-progress-step.is-active strong{background:#10134D}
.ifo-lens-progress-step.is-done{color:#078F7A}
.ifo-lens-progress-step.is-done strong{background:#10A98D}
.ifo-lens-steps{flex:1 1 auto;min-height:0;overflow:auto;padding:22px 24px}
.ifo-lens-step[hidden]{display:none!important}
.ifo-lens-option-list{display:grid;gap:12px}
.ifo-lens-mode-card{display:grid;grid-template-columns:76px minmax(0,1fr) 24px;align-items:center;gap:15px;width:100%;min-height:104px;padding:14px 16px;color:#0D114A;background:#fff;border:1px solid #E7EAF2;border-radius:18px;text-align:left;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.ifo-lens-mode-card:hover,.ifo-lens-mode-card.is-selected{border-color:#3A75E9;box-shadow:0 8px 22px rgba(58,117,233,.10)}
.ifo-lens-mode-icon{display:flex;align-items:center;justify-content:center;width:72px;height:72px;color:#3A75E9;background:#F5F8FD;border:1px solid #E8EEF8;border-radius:14px;font-size:25px;font-weight:800}
.ifo-lens-mode-copy{display:grid;gap:4px;min-width:0}
.ifo-lens-mode-copy strong{color:#080B45;font-size:18px;font-weight:750}
.ifo-lens-mode-copy small{color:#737A9A;font-size:13px;line-height:1.4}
.ifo-lens-chevron{color:#080B45;font-size:30px;line-height:1}
.ifo-lens-package-intro h3,.ifo-lens-power-intro h3,.ifo-reading-power-picker h3{margin:0 0 5px;color:#080B45;font-size:21px}
.ifo-lens-package-intro p,.ifo-lens-power-intro p,.ifo-reading-power-picker p{margin:0 0 16px;color:#747B9A;font-size:13px}
.ifo-lens-package-list{display:grid;gap:13px}
.ifo-lens-package-card{position:relative;overflow:hidden;background:#fff;border:1px solid #E6E9F0;border-radius:18px}
.ifo-lens-package-card.is-selected{border-color:#3A75E9;box-shadow:0 0 0 2px rgba(58,117,233,.12)}
.ifo-lens-package-select{position:relative;display:grid;grid-template-columns:150px minmax(0,1fr) 30px;align-items:center;gap:16px;width:100%;padding:20px 18px 12px;color:inherit;background:transparent;border:0;text-align:left;cursor:pointer}
.ifo-lens-package-image-wrap{display:flex;align-items:center;justify-content:center;min-height:130px;overflow:hidden}
.ifo-lens-package-image{display:block;width:100%;max-width:145px;height:125px;object-fit:contain}
.ifo-lens-package-placeholder{display:flex;align-items:center;justify-content:center;width:112px;height:90px;color:#3A75E9;background:linear-gradient(135deg,#EEF7FD,#DDEEFF);border-radius:50%;font-size:44px}
.ifo-lens-package-copy{display:grid;gap:10px;min-width:0}
.ifo-lens-package-copy>strong{color:#080B45;font-size:18px;line-height:1.3}
.ifo-lens-package-features{display:grid;gap:7px;color:#737A9A;font-size:13px;line-height:1.35}
.ifo-lens-package-details{color:#6E7695;font-size:12px;line-height:1.6}
.ifo-lens-package-view{color:#07876F;font-size:13px;font-weight:700;cursor:pointer}
.ifo-lens-package-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;color:#fff;background:#090B43;border-radius:50%;font-size:24px;line-height:1}
.ifo-lens-package-ribbon{position:absolute;top:0;left:0;z-index:2;padding:6px 16px;color:#fff;background:#275DB4;font-size:11px;font-weight:750}
.ifo-lens-package-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 18px;padding:12px 0 14px;border-top:1px dashed #D9DCE6}
.ifo-lens-warranty{display:inline-flex;padding:6px 10px;color:#333B6B;background:#F4F4FA;border-radius:999px;font-size:11px;font-weight:700}
.ifo-lens-package-price{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:7px;color:#3A75E9;text-align:right}
.ifo-lens-package-price small{flex:1 0 100%;color:#737A9A;font-size:11px}
.ifo-lens-package-price strong{font-size:17px}
.ifo-lens-package-price del{color:#9EA2B5;font-size:12px}
.ifo-lens-package-details[hidden]{display:none!important}
.ifo-lens-power-groups{display:grid;gap:22px}
.ifo-lens-power-group h4{margin:0 0 10px;color:#080B45;font-size:16px}
.ifo-lens-method-card{display:grid;grid-template-columns:48px minmax(0,1fr) 20px;align-items:center;gap:13px;width:100%;margin:0 0 10px;padding:14px;color:#080B45;background:#fff;border:1px solid #EAECF2;border-radius:16px;text-align:left;cursor:pointer}
.ifo-lens-method-card.is-selected{border-color:#3A75E9;box-shadow:0 0 0 2px rgba(58,117,233,.10)}
.ifo-lens-method-icon{display:flex;align-items:center;justify-content:center;width:48px;height:48px;color:#3A75E9;background:#F1F6FD;border-radius:12px;font-size:17px;font-weight:800}
.ifo-lens-method-card strong,.ifo-lens-method-card small{display:block}
.ifo-lens-method-card strong{font-size:14px;line-height:1.35}
.ifo-lens-method-card small{margin-top:4px;color:#747B9A;font-size:12px;line-height:1.4}
.ifo-lens-rx-panel{margin-top:14px;padding:17px;background:#fff;border:1px solid #E9ECF3;border-radius:16px}
.ifo-rx-form-grid{display:grid;grid-template-columns:72px repeat(4,minmax(0,1fr));gap:8px;align-items:center}
.ifo-rx-form-grid .ifo-rx-head{color:#737A9A;font-size:11px;font-weight:700;text-align:center}
.ifo-rx-form-grid .ifo-rx-eye{color:#11144C;font-size:12px;font-weight:750}
.ifo-rx-form-grid input{width:100%;min-width:0;min-height:40px;padding:7px;border:1px solid #DDE3ED;border-radius:8px;font-size:12px;text-align:center}
.ifo-rx-field{display:grid;gap:6px;margin-top:13px;color:#323A65;font-size:12px;font-weight:650}
.ifo-rx-field input{min-height:42px;padding:8px 11px;border:1px solid #DDE3ED;border-radius:8px}
.ifo-rx-upload{display:grid;gap:10px;color:#737A9A;font-size:12px}
.ifo-rx-upload input{width:100%}
.ifo-reading-power-picker{padding:3px 0}
.ifo-reading-power-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ifo-reading-power-option{display:flex;align-items:center;justify-content:center;min-height:112px;padding:8px;color:#33376B;background:#FAFAFD;border:1px solid #E6E8F0;border-radius:22px;font-size:22px;font-weight:750;box-shadow:0 7px 18px rgba(23,29,62,.06);cursor:pointer}
.ifo-reading-power-option:hover,.ifo-reading-power-option.is-selected{color:#fff;background:#10134D;border-color:#10134D;box-shadow:0 8px 20px rgba(16,19,77,.16)}
.ifo-lens-empty{padding:18px;color:#69748B;background:#fff;border:1px dashed #CCD6E6;border-radius:14px}
.ifo-lens-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px;background:#fff;border-top:1px solid #E7E9F0}
.ifo-lens-selection-hint{color:#858BA3;font-size:12px}
.ifo-lens-continue{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:150px;min-height:46px!important;padding:0 20px!important;color:#fff!important;background:#3A75E9!important;border:0!important;border-radius:10px!important;font-size:13px!important;font-weight:750!important}
.ifo-lens-continue:disabled{opacity:.45;cursor:not-allowed}
.ifo-lens-error{margin:10px 18px;padding:11px 13px;color:#9C2E38;background:#FFF2F3;border-radius:9px;font-size:12px}
.ifo-rx-later-upload{margin-top:24px;padding:18px;background:#F5F8FB;border:1px solid #E2EAF1;border-radius:14px}
.ifo-rx-later-upload h2{margin-top:0;font-size:20px}
.ifo-rx-later-upload p{color:#667584;font-size:13px}
.ifo-rx-later-upload form{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
body.ifo-lens-modal-open{overflow:hidden}
@media(max-width:700px){
 .ifo-lens-modal{align-items:flex-end;padding:0}
 .ifo-lens-dialog{width:100%;max-height:94dvh;border-radius:22px 22px 0 0}
 .ifo-lens-header{padding:16px 16px 12px;gap:10px}
 .ifo-lens-header h2{font-size:21px}
 .ifo-lens-progress{padding:12px 14px}
 .ifo-lens-progress-step{font-size:11px}
 .ifo-lens-progress-step strong{width:27px;height:27px}
 .ifo-lens-steps{padding:16px 14px}
 .ifo-lens-mode-card{grid-template-columns:62px minmax(0,1fr) 16px;min-height:88px;gap:11px;padding:11px;border-radius:15px}
 .ifo-lens-mode-icon{width:60px;height:60px;font-size:21px}
 .ifo-lens-mode-copy strong{font-size:15px}
 .ifo-lens-mode-copy small{font-size:11px}
 .ifo-lens-package-select{grid-template-columns:92px minmax(0,1fr) 24px;gap:10px;padding:19px 11px 10px}
 .ifo-lens-package-image-wrap{min-height:96px}
 .ifo-lens-package-image{height:92px}
 .ifo-lens-package-copy>strong{font-size:14px}
 .ifo-lens-package-features{font-size:11px;gap:5px}
 .ifo-lens-package-view{font-size:11px}
 .ifo-lens-package-arrow{width:25px;height:25px;font-size:20px}
 .ifo-lens-package-meta{margin:0 11px;padding:10px 0 12px;gap:8px}
 .ifo-lens-warranty{font-size:9px;padding:5px 7px}
 .ifo-lens-package-price strong{font-size:14px}
 .ifo-lens-package-price small{font-size:10px}
 .ifo-reading-power-grid{gap:10px}
 .ifo-reading-power-option{min-height:82px;border-radius:18px;font-size:18px}
 .ifo-lens-footer{padding:11px 14px calc(11px + env(safe-area-inset-bottom))}
 .ifo-lens-continue{min-width:128px;min-height:43px!important}
 .ifo-lens-selection-hint{max-width:45%;font-size:10px}
 .ifo-rx-form-grid{grid-template-columns:48px repeat(4,minmax(0,1fr));gap:5px}
 .ifo-rx-form-grid input{min-height:38px;padding:5px 3px;font-size:11px}
}
/* Honour hidden states on custom flex/grid components in the configurator. */
.ifo-lens-package-intro[hidden],
.ifo-lens-package-list[hidden],
.ifo-reading-power-picker[hidden],
.ifo-lens-footer[hidden],
.ifo-lens-back[hidden],
.ifo-lens-power-intro[hidden],
.ifo-lens-power-groups[hidden],
.ifo-lens-rx-panel[hidden] {
  display: none !important;
}

/* Keep the server-rendered reading-power choices visible inside the picker. */
.ifo-reading-power-picker .ifo-reading-power-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  min-height: 1px;
}
.ifo-reading-power-picker .ifo-reading-power-option {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.ifo-reading-power-status{margin-top:-7px!important;margin-bottom:12px!important;font-size:12px!important}
.ifo-reading-power-option:disabled{opacity:.6;cursor:wait}
.ifo-reading-power-picker .ifo-lens-error{margin:12px 0 0}

/* Keep reading power options interactive above any decorative overlays. */
.ifo-reading-power-picker,
.ifo-reading-power-grid,
.ifo-reading-power-option {
  position: relative;
  pointer-events: auto !important;
}
.ifo-reading-power-option:disabled {
  opacity: .55;
  cursor: wait;
}
