/* Shared by the signed-in picker and guest onboarding. */
.tryon-composer { --composer-pink: #ff809a; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; max-width: 710px; min-height: 100svh; margin: 0 auto; padding: max(16px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom)); background: #fff; color: #11110f; font-family: var(--sans,Arial,sans-serif); }
.tryon-composer *, .tryon-composer *::before, .tryon-composer *::after { box-sizing: border-box; }
.tryon-composer [hidden] { display: none !important; }
.tryon-composer-title { margin: 4px 0 26px; color: #11110f; font-family: var(--serif,Georgia,serif); font-size: clamp(28px,8.7vw,52px); font-weight: 400; line-height: 1.12; letter-spacing: -.045em; text-align: center; text-wrap: balance; }
.tryon-composer-title:focus { outline: none; }
.tryon-composer-header { display: flex; align-items: center; min-height: 34px; margin-bottom: 8px; }
.tryon-composer-back { display: grid; width: 44px; height: 44px; margin-left: -8px; padding: 10px; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
.tryon-composer-back svg { width: 25px; height: 25px; }
.tryon-composer-navigation { display: flex; align-items: center; }
.tryon-composer-forward { display: grid; place-items: center; width: 40px; height: 44px; padding: 8px; border: 0; background: transparent; color: inherit; cursor: pointer; }
.tryon-composer-forward svg { width: 25px; height: 25px; }
.tryon-composer-forward:disabled { opacity: .25; cursor: default; }
.tryon-composer-hero { position: relative; width: 100%; aspect-ratio: 640/665; margin-bottom: 8px; isolation: isolate; }
.tryon-composer-person { position: absolute; inset: 0 0 0 37.5%; overflow: hidden; border-radius: clamp(16px,4.2vw,30px); background: #f5f5f5; }
.tryon-composer-person > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.tryon-composer-curtain { position: absolute; inset: 0; z-index: 2; transform: translateX(-101%); background-color: #e8e3dd; background-image: linear-gradient(104deg,transparent 4%,rgba(255,255,255,.75) 19%,rgba(170,157,144,.14) 32%,transparent 45%,rgba(255,255,255,.68) 61%,rgba(168,156,146,.15) 77%,rgba(255,255,255,.52) 94%),linear-gradient(24deg,rgba(192,178,164,.22),rgba(255,255,255,.45) 55%,transparent); pointer-events: none; }
.tryon-composer-generating { position: absolute; inset: 0; display: grid; place-items: center; }
.tryon-composer-generating svg { width: 42px; color: #e93e6b; animation: tryon-curtain-pulse 1.8s ease-in-out infinite; }
.tryon-composer[data-phase="revealing"] .tryon-composer-generating { opacity: 0; transition: opacity .2s; }
.tryon-composer-expand { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: zoom-in; }
.tryon-composer-preview { pointer-events: none; white-space: nowrap; transform: translateY(3px); transition: opacity 450ms,transform 450ms; }
.tryon-composer[data-phase="succeeded"][data-photo-mode="result"] .tryon-composer-preview { opacity: 1; transform: translateY(0); }
.tryon-composer[data-photo-mode="original"] .tryon-composer-preview { visibility: hidden; }
.tryon-composer-comparison { display: flex; justify-content: center; gap: 4px; width: fit-content; margin: 18px auto 0; padding: 4px; border-radius: 12px; background: #f4f4f4; }
.tryon-composer-comparison button { min-height: 42px; padding: 8px 22px; border: 0; border-radius: 9px; color: #62625e; background: transparent; font: inherit; font-weight: 600; cursor: pointer; }
.tryon-composer-comparison button[aria-pressed="true"] { color: #fff; background: #11110f; }
.tryon-composer-message { margin: 18px 0 0; font-size: 15px; line-height: 1.5; text-align: center; color: #666661; }
.tryon-composer-reload { align-self: center; margin-top: 12px; min-height: 44px; padding: 10px 16px; border: 1px solid #dadad7; border-radius: 10px; background: #fff; color: #11110f; font: inherit; cursor: pointer; }
.tryon-composer-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: max(64px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom)); border: 0; background: #111; }
.tryon-composer-lightbox::backdrop { background: #111; }
.tryon-composer-lightbox > img { width: 100%; height: 100%; object-fit: contain; }
.tryon-composer-lightbox > button { position: absolute; top: max(12px,env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #111; font: 30px/1 Arial,sans-serif; cursor: pointer; }
@keyframes tryon-curtain-pulse { 0%,100% { opacity: .6; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .tryon-composer-generating svg { animation: none; } .tryon-composer-generating,.tryon-composer-preview { transition: none !important; } }
.tryon-composer-empty { width: 100%; height: 100%; padding: 14px; border: 0; color: #6d6d69; background: #f5f5f5; font: inherit; cursor: pointer; }
.tryon-composer-product { position: absolute; z-index: 2; left: 0; top: 50%; transform: translateY(-50%); width: 43.6%; margin: 0; }
/* Reuse the results card's surface and edge-to-edge portrait media. */
.tryon-composer-product .product-image-wrap { cursor: default; }
.tryon-composer-product:hover .product-primary-image { transform: none; }
.tryon-composer-product .product-info { cursor: default; }
.tryon-composer-product .product-info h2 { height: 2.16em; font-size: clamp(13px,3.35vw,22px); -webkit-line-clamp: 2; }
.tryon-composer-product .product-info p { font-size: clamp(16px,4.1vw,27px); font-weight: 750; }
.tryon-composer-product .product-info small { font-size: clamp(10px,2.55vw,18px); }
.tryon-composer-product .product-retailer { text-decoration: none; }
.tryon-composer-product .product-retailer:hover { text-decoration: underline; }
.tryon-composer-photos { margin-bottom: 10px; }
.tryon-composer-photos > h2 { margin: 0 0 8px; font-family: inherit; font-size: clamp(16px,3.45vw,24px); line-height: 1.3; font-weight: 550; letter-spacing: -.02em; }
.tryon-composer-photo-row { display: grid; grid-template-columns: minmax(0,3fr) minmax(0,1fr); gap: 7px; }
.tryon-composer-photo-options { position: relative; display: flex; gap: 7px; overflow-x: auto; min-width: 0; padding: 1px; scrollbar-width: none; overscroll-behavior-x: contain; }
.tryon-composer-photo-options::-webkit-scrollbar { display: none; }
.tryon-composer-photo, .tryon-composer-add { position: relative; flex: 0 0 calc((100% - 14px)/3); min-width: 0; aspect-ratio: .82; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #f8f7f7; cursor: pointer; }
.tryon-composer-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tryon-composer-photo.is-selected { border: 3px solid var(--composer-pink); }
.tryon-composer-check { display: none; position: absolute; top: 3px; right: 3px; width: 23px; height: 23px; border: 1px solid #fff; border-radius: 50%; color: #fff; background: #eaa6a5c9; font-size: 19px; line-height: 20px; text-align: center; }
.tryon-composer-photo.is-selected .tryon-composer-check { display: block; }
.tryon-composer-add { display: grid; place-items: center; border: 1px dashed #d3d3d1; font: inherit; color: #11110f; }
.tryon-composer-add span { font-size: clamp(40px,9vw,66px); line-height: 1; font-weight: 200; }
.tryon-composer-footer { margin-top: auto; padding-top: 0; }
.tryon-composer:not(.has-quota) .tryon-composer-footer { display: none; }
.tryon-composer-submit { display: block; width: 100%; min-height: 52px; margin: 12px 0 24px; padding: 13px 16px; border: 0; border-radius: 15px; color: #fff; background: #11110f; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.tryon-composer-submit:disabled { opacity: .4; cursor: default; }
.tryon-composer button:focus-visible,.tryon-composer a:focus-visible { outline: 3px solid #f24077; outline-offset: 3px; }
.tryon-composer-quota-slot:empty { display: none; }
.tryon-composer .tryon-picker-quota { margin: 0 0 11px; padding: 10px 11px; border-radius: 16px; background: #faf9f7; }
.tryon-composer .tryon-picker-quota .profile-quota-icon { width: 44px; height: 44px; }
.tryon-composer .profile-quota-row { font-size: 15px; }
.tryon-composer .profile-quota-meta { font-size: 11px; }
#tryOnPickerDialog.tryon-fullscreen { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; overflow-y: auto; overscroll-behavior: contain; border: 0; border-radius: 0; background: #fff; animation: none; }
#tryOnPickerDialog.tryon-fullscreen[open].is-closing { animation: none; }
#tryOnPickerDialog.tryon-fullscreen::backdrop { background: #fff; backdrop-filter: none; animation: none; }
.fiind-onboarding.onb-tryon-step { background: #fff; }
.onb-tryon-step .onb-layout { display: block; width: 100%; max-width: none; min-height: 100svh; padding: 0; }
.onb-tryon-step .onb-content { padding: 0; animation: none; }
.onb-tryon-step .onb-footer { margin: 0; padding: 0 20px; background: #fff; }
.onb-tryon-step .onb-status:empty { display: none; }
.onb-tryon-step .onb-status:not(:empty) { padding-bottom: 16px; }
@media (min-width: 600px) { .tryon-composer { padding-inline: 35px; } .tryon-composer-photo-row,.tryon-composer-photo-options { gap: 12px; } .tryon-composer-photo,.tryon-composer-add { flex-basis: calc((100% - 24px)/3); border-radius: 14px; } .tryon-composer-check { width: 36px; height: 36px; font-size: 28px; line-height: 31px; } .tryon-composer-submit { min-height: 64px; font-size: 24px; } .tryon-composer-product .product-info { padding: 12px 15px 0; } }

/* The preparation photo expands into the same viewer used by saved products. */
.tryon-composer-header { display: grid; grid-template-columns: 88px minmax(0,1fr) 88px; }
.tryon-viewer-brand { visibility: hidden; opacity: 0; justify-self: center; font-size: 34px; line-height: 1; transition: opacity 250ms; }
.tryon-viewer-actions { display: flex; justify-content: flex-end; }
.tryon-viewer-actions button { display: grid; place-items: center; width: 40px; height: 44px; padding: 7px; border: 0; background: transparent; color: #111; cursor: pointer; }
.tryon-viewer-actions svg { width: 25px; height: 25px; }
.tryon-viewer-save.is-saved svg { fill: #111; }
.tryon-composer.is-viewer .tryon-viewer-brand { visibility: visible; opacity: 1; }
.tryon-composer.is-viewer .tryon-composer-title { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); }
.onb-tryon-step .tryon-composer.is-reveal .tryon-composer-title { position: static; width: auto; height: auto; margin: 4px 0 24px; overflow: visible; clip-path: none; }
.onb-tryon-step .tryon-composer.is-reveal .tryon-viewer-brand { visibility: hidden; }
.tryon-composer.is-viewer .tryon-composer-header { margin-bottom: 12px; }
.tryon-composer.is-viewer .tryon-composer-hero { aspect-ratio: 13/15; margin-bottom: 0; }
.tryon-composer.is-viewer .tryon-composer-person { inset: 0; }
.tryon-composer.is-viewer .tryon-composer-person > img { object-fit: contain; background: #f5f4f2; }
.tryon-composer.is-viewer .tryon-composer-product { opacity: 0; pointer-events: none; }
.tryon-composer.is-viewer .tryon-composer-generating { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.tryon-viewer-loading-text { font-size: 15px; color: #524d48; }
.tryon-generation-track { width: 84%; height: 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.92); border-radius: 20px; background: rgba(110,93,79,.14); }
.tryon-generation-fill { display: block; width: 38%; height: 100%; border-radius: inherit; background: #e93e6b; animation: tryon-progress-sweep 2.4s ease-in-out infinite; }
.tryon-composer[data-phase="revealing"] .tryon-generation-fill { width: 100%; animation: none; transform: none; }
@keyframes tryon-progress-sweep { from { transform: translateX(-110%); } to { transform: translateX(365%); } }
@media (prefers-reduced-motion: reduce) { .tryon-generation-fill { animation: none; transform: translateX(82%); } }
.tryon-viewer-thumbnails { display: grid; grid-template-columns: repeat(var(--gallery-count,3),minmax(0,1fr)); width: 100%; gap: 8px; margin: 12px 0 0; padding: 0; border-radius: 0; background: transparent; }
.tryon-viewer-thumbnails button { display: block; min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: #111; font-size: 13px; line-height: 1.35; }
.tryon-viewer-thumbnails button img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2px solid transparent; border-radius: 13px; }
.tryon-viewer-thumbnails button span { display: block; margin-top: 5px; }
.tryon-viewer-thumbnails button[aria-pressed="true"] { color: #e93e6b; background: transparent; }
.tryon-viewer-thumbnails button[aria-pressed="true"] img { border-color: #f27ba4; }
.tryon-viewer-thumb-image { position: relative; overflow: hidden; border-radius: 13px; }
.tryon-reference-frame { position: absolute; z-index: 2; pointer-events: none; }
.tryon-reference-frame[hidden] { display: none; }
.tryon-viewer-details { margin-top: 22px; }
.tryon-viewer-retailer-name { margin: 0 0 10px; color: #e93e6b; font-size: 12px; font-weight: 750; letter-spacing: .19em; text-transform: uppercase; }
.tryon-viewer-details h2 { margin: 0; font: 400 24px/1.1 var(--serif,Georgia,serif); letter-spacing: -.025em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tryon-viewer-price { margin: 12px 0 0; font-size: 19px; font-weight: 750; line-height: 1.3; }
.tryon-composer.is-viewer .tryon-composer-submit { display: flex; align-items: center; justify-content: center; margin: 14px 0 0; text-align: center; text-decoration: none; }
.tryon-composer.is-viewer .tryon-composer-submit[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.tryon-viewer-another { min-height: 48px; margin: 8px 0 0; padding: 12px; border: 0; background: transparent; color: #111; font: 600 15px/1.3 var(--sans,Arial,sans-serif); cursor: pointer; }
.tryon-viewer-share-dialog { width: min(420px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; border: 0; border-radius: 20px; color: #111; background: #fff; }
.tryon-viewer-share-dialog::backdrop { background: #0006; }
.tryon-viewer-share-dialog h2 { margin: 0 0 16px; font: 400 28px/1.1 var(--serif,Georgia,serif); }
.tryon-viewer-share-dialog button { display: block; width: 100%; min-height: 48px; margin-top: 8px; border: 1px solid #ddd; border-radius: 10px; background: #fff; color: #111; font: inherit; cursor: pointer; }
.tryon-viewer-share-dialog p:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .tryon-viewer-brand { transition: none; } }
