/* Matches wesplasticsurgery.com: Montserrat, black/white/gold, square corners, no card.
   Montserrat is bundled under the SIL Open Font License (static/fonts/OFL.txt). */
@font-face { font-family: montserrat; font-style: normal; font-weight: 300; font-display: swap; src: url("fonts/montserrat-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: montserrat; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
:root {
  color-scheme: only light;  /* The site is light-only; never auto-darken the widget. */
  --ink: #1a1a1a;
  --muted: #5f5f5f;
  --line: #d9d9d9;
  --paper: #ffffff;
  --soft: #f5f5f5;
  --gold: #c2ad70;        /* Site CTA gold; dark text on it for 7.9:1 contrast. */
  --gold-hover: #b39d5e;
  --stage-height: 280px;
  --sans: montserrat, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: transparent; color: var(--ink); font: 300 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button, a, label { touch-action: manipulation; }
a { color: inherit; text-underline-offset: 4px; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible,
label:has(input:focus-visible), .preview:has(#photo:focus-visible) .upload-zone,
.preview:has(#photo:focus-visible) .replace-photo { outline: 2px solid var(--ink); outline-offset: 3px; }
p, h1 { margin: 0; }
/* The host page section supplies spacing and background; the widget adds no card. */
.preview { width: 100%; max-width: 680px; margin: 0 auto; padding: 0; background: transparent; border: 0; }
.widget-header { margin-bottom: 20px; }
.widget-header h1 { font: 500 15px/1.6 var(--sans); letter-spacing: 3px; text-transform: uppercase; }
.widget-header p { color: var(--muted); margin-top: 6px; }
.options { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.options legend { font-size: 15px; font-weight: 500; margin-bottom: 10px; padding: 0; }
.option-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 0; padding: 12px 16px; min-height: 52px; background: var(--paper); cursor: pointer; color: var(--ink); transition: background .15s ease, border-color .15s ease; }
.option:hover { border-color: #8c8c8c; }
.option:has(input:checked) { background: var(--soft); border-color: var(--ink); }
.option-label { min-width: 0; line-height: 1.3; }
.option input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); cursor: inherit; }
.options:disabled .option { cursor: default; }
.upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 168px; padding: 18px; text-align: center; border: 1px solid var(--line); border-radius: 0; background: var(--soft); cursor: pointer; transition: border-color .15s ease; }
.upload-zone:hover { border-color: var(--ink); }
.upload-zone svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.25; margin-bottom: 4px; }
.upload-zone strong { font-size: 16px; font-weight: 500; }
.upload-zone > span { font-size: 14px; color: var(--muted); }
.photo-stage { width: min(100%, calc(var(--stage-height) * .8)); height: var(--stage-height); margin-inline: auto; position: relative; overflow: hidden; background: var(--soft); border: 1px solid var(--line); border-radius: 0; }
#local-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.photo-stage:has(.comparison:not([hidden])) { width: 100%; height: auto; overflow: visible; border: 0; background: transparent; }
.comparison { width: 100%; --comparison-position: 50%; }
.comparison-canvas { position: relative; aspect-ratio: var(--eye-ratio, 1.6); border: 1px solid var(--line); border-radius: 0; overflow: hidden; background: var(--soft); isolation: isolate; }
.comparison-canvas img { display: block; width: 100%; height: auto; }
.simulation-layer { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--comparison-position)); }
.comparison-labels { position: absolute; z-index: 2; inset: 4px 10px auto; display: flex; justify-content: space-between; gap: 12px; pointer-events: none; }
.comparison-labels button { display: inline-flex; align-items: center; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--ink); pointer-events: auto; }
.comparison-labels span { padding: 4px 9px; background: #ffffffeb; font-size: 11px; font-weight: 500; line-height: 1.4; letter-spacing: 1.5px; text-transform: uppercase; }
.comparison-labels button[aria-pressed="true"] span { background: var(--ink); color: #fff; }
.comparison-divider { position: absolute; inset: 0 auto 0 var(--comparison-position); width: 1px; background: #fff; box-shadow: 0 0 0 1px #1a1a1a22; pointer-events: none; }
.comparison-handle { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: 0 2px 8px #1a1a1a26; }
.comparison-handle svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.comparison-help { position: absolute; top: calc(50% + 27px); left: var(--comparison-position); transform: translateX(-50%); padding: 4px 9px; background: #ffffffeb; color: var(--ink); font-size: 12px; font-weight: 500; line-height: 1.4; white-space: nowrap; pointer-events: none; }
.comparison-handle.hint { animation: comparison-hint 1.2s ease-in-out 1; }
@keyframes comparison-hint { 0%, 100% { transform: translate(-50%, -50%); } 35% { transform: translate(calc(-50% + 7px), -50%); } 70% { transform: translate(calc(-50% - 7px), -50%); } }
.comparison-slider { position: absolute; top: 0; left: -22px; width: calc(100% + 44px); height: 100%; margin: 0; padding: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: ew-resize; touch-action: pan-y; }
.comparison-slider::-webkit-slider-runnable-track { height: 100%; background: transparent; }
.comparison-slider::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 44px; height: 100%; border: 0; background: transparent; }
.comparison-slider::-moz-range-track { height: 100%; background: transparent; }
.comparison-slider::-moz-range-thumb { width: 44px; height: 100%; border: 0; border-radius: 0; background: transparent; }
.comparison-slider:focus-visible { outline: none; }
.comparison-canvas:has(.comparison-slider:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }
.comparison-canvas:has(.comparison-slider:focus-visible) .comparison-handle { box-shadow: 0 0 0 2px var(--ink); }
.image-notice { position: absolute; inset: auto 0 0; background: #1a1a1ae0; color: #fff; font-size: 12px; line-height: 1.45; padding: 6px 10px; pointer-events: none; }
.simulation-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 2px; color: var(--ink); font-size: 15px; }
.feedback-options { display: inline-flex; gap: 4px; }
.feedback-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 1px solid transparent; border-radius: 0; color: var(--muted); background: transparent; cursor: pointer; }
.feedback-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#feedback-down svg { transform: rotate(180deg); }
.feedback-button:hover { background: var(--soft); }
.feedback-button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); background: var(--soft); }
.feedback-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.feedback-button:disabled { cursor: wait; opacity: .55; }
.feedback-status { color: var(--muted); font-size: 14px; }
.measurement-preference { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0; }
.measurement-preference input { accent-color: var(--ink); flex-shrink: 0; margin-top: 5px; }
.loading { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: calc(100% - 24px); max-width: 200px; display: grid; gap: 10px; padding: 14px 16px; border: 1px solid #ffffffb3; border-radius: 0; background: #ffffffeb; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 3px 18px #1a1a1a14; text-align: center; pointer-events: none; }
.loading-message { display: grid; place-items: center; min-height: 1.4em; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.4; text-wrap: balance; }
.progress-track { position: relative; height: 2px; overflow: hidden; background: #1a1a1a1f; }
.progress-track::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 36%; background: var(--ink); animation: progress-sweep 2.4s cubic-bezier(.45, 0, .25, 1) infinite; transition: width .3s ease, opacity .2s ease; }
.progress-track[data-stage="complete"]::before { width: 100%; transform: none; opacity: 1; animation: none; }
@keyframes progress-sweep { 0% { transform: translateX(-45%) scaleX(.75); opacity: .65; } 20%, 75% { opacity: 1; } 100% { transform: translateX(310%) scaleX(.85); opacity: 0; } }
.photo-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; font-size: 14px; color: var(--muted); margin-top: 8px; }
.photo-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.replace-photo { padding: 6px 0; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.subtle-button, .reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; border: 0; border-radius: 0; background: transparent; padding: 7px 0; color: var(--muted); font-size: 14px; }
.subtle-button { text-decoration: underline; text-underline-offset: 4px; }
.subtle-button:hover:not(:disabled), .reset-button:hover:not(:disabled) { color: var(--ink); }
.reset-button:disabled { opacity: .65; }
.reset-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.preview-actions { margin-top: 16px; }
.ownership { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; margin: 0 0 16px; cursor: pointer; }
.ownership input { margin: 4px 0 0; accent-color: var(--ink); width: 18px; height: 18px; flex-shrink: 0; }
/* Square, centered buttons like the site's CTAs. */
.primary { display: flex; align-items: center; justify-content: center; text-align: center; border: 0; border-radius: 0; min-height: 52px; width: 100%; padding: 14px 20px; background: var(--ink); color: #fff; font: 500 16px/1.3 var(--sans); text-transform: capitalize; text-decoration: none; transition: background .15s ease; }
.primary:disabled { background: #e6e6e6; color: #6b6b6b; }
.primary:hover:not(:disabled) { background: #000; }
.consult-link.result-consult { margin-top: 16px; padding: 14px 16px; font-size: 16px; white-space: normal; background: var(--gold); color: var(--ink); text-decoration: none; }
.consult-link.result-consult:hover { background: var(--gold-hover); }
.upload-zone[aria-busy="true"] { cursor: progress; }
.availability, .error { font-size: 15px; margin-top: 14px; }
.error { color: #8b3426; }
.widget-footer { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 12px; }
.utility-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 3px 20px; }
.privacy { font-size: 14px; }
.privacy summary { cursor: pointer; padding: 9px 0; }
.privacy[open] { flex-basis: 100%; }
.privacy-copy { color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.7; padding: 3px 0 8px; }
.privacy-copy p + p { margin-top: 12px; }
.privacy-copy a { display: inline-block; margin-top: 12px; }
.consult-link { padding: 9px 0; font-size: 14px; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  :root { --stage-height: 220px; }
  .widget-header h1 { font-size: 14px; letter-spacing: 2.5px; }
  .upload-zone { min-height: 150px; padding: 16px 10px; }
  .photo-footer { align-items: flex-start; }
  .comparison-labels { inset: 1px 8px auto; }
  .comparison-labels span { font-size: 10px; padding: 3px 7px; letter-spacing: 1px; }
  .image-notice { font-size: 11px; padding: 5px 9px; }
}
/* Phone columns (~315 px on the live site) are too narrow for two option labels. */
@media (max-width: 420px) {
  .option-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .progress-track:not([data-stage="complete"])::before { left: 32%; transform: none; }
}

.privacy-summary { color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.6; margin: 0 0 6px; }
.ownership { color: var(--ink); font-weight: 500; margin-top: 16px; }
