/* Feed selection only; the reference page design stays unchanged. */
[hidden]{display:none!important}
.feed-selection{width:100%;padding-bottom:110px!important}
.feed-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}
.feed-product{display:flex;flex-direction:column;gap:10px;text-align:left;min-width:0;border:1px solid var(--line);border-radius:18px;background:#fff;padding:8px;cursor:pointer;color:var(--ink)}
.feed-product[aria-checked=true]{border:2px solid var(--accent-dark);padding:7px;background:var(--accent-soft)}
.feed-product:focus-visible,.feed-back:focus-visible{outline:3px solid var(--accent-dark);outline-offset:3px}
.feed-product-image{display:block;width:100%;aspect-ratio:1;overflow:hidden;border-radius:12px;background:#fff}
.feed-product-image img{display:block;width:100%;height:100%;object-fit:contain}
.feed-product strong{padding:0 3px 5px;font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.feed-back{display:inline-flex;border:0;background:transparent;color:var(--ink);font:inherit;font-size:14px;padding:10px 0;cursor:pointer;text-align:left}
.feed-model-name{font-weight:700;margin:8px 0 0;font-size:16px}
.feed-placement,.feed-dimensions{margin:18px 0;text-align:left;font-size:13px;line-height:1.5}
.feed-placement summary,.feed-dimensions summary{font-weight:700;cursor:pointer}
.feed-placement canvas{display:block;width:100%;height:auto;touch-action:none;border-radius:16px;margin-top:12px}
.feed-tools{display:flex;gap:8px}.feed-tools button{font-size:11px;padding:10px;min-height:40px}
.feed-dimension-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-top:12px}.feed-dimension-fields input{width:100%;min-width:0;padding:10px}
.app:has(.feed-selection) .screen[data-step="3"].is-active{height:auto;min-height:650px;overflow:visible}
.app:has(.screen[data-step="3"].is-active) .wizard{height:auto;max-height:none;overflow:visible}
.app:has(.screen[data-step="3"].is-active) .progress-card{position:static;margin-bottom:16px}
.app:has(.screen[data-step="3"].is-active) .wizard-actions{position:sticky;bottom:0;background:var(--phone-bg);padding:16px 0;z-index:4}

/* Reuse the original try-on carousel and keep its action in the viewport. */
#color-selection #selected-model-name{display:none}
#color-selection #product-meta{display:grid;gap:5px;margin:30px 0 0;text-align:left;font-size:13px;font-weight:400;line-height:1.3}
#product-meta strong{font-size:15px;font-weight:400;color:var(--ink)}
#product-meta b{font-family:var(--font-heading);font-size:20px;font-weight:var(--heading-weight);text-transform:uppercase;color:var(--text-heading)}
#color-selection .product-info{padding-top:14px;text-align:center}
.catalog-arrow:disabled{opacity:.3;cursor:default}
.app.is-color-selection:has(.screen[data-step="3"].is-active){min-height:0}
.app.is-color-selection .screen[data-step="3"].is-active{min-height:0}
.app.is-color-selection .feed-selection{padding-top:10px;padding-bottom:0!important;gap:4px}
.app.is-color-selection #selection-intro{display:none}
.app.is-color-selection #selection-title{margin:0;font-size:30px}
.app.is-color-selection .feed-back{padding:6px 0;font-size:13px}
.app.is-color-selection .catalog-scroll{padding-top:16px;padding-bottom:15px}
.app.is-color-selection:has(.screen[data-step="3"].is-active) .wizard{padding-bottom:12px}
.app.is-color-selection:has(.screen[data-step="3"].is-active) .progress-card{margin-bottom:4px}
.app.is-color-selection:has(.screen[data-step="3"].is-active) .wizard-actions{margin-top:20px;padding:8px 0;position:sticky;bottom:0}
.app.is-color-selection #selection-status:empty{display:none}
@media(max-height:740px){
 .app.is-color-selection .product-card{flex-basis:144px;height:196px}
 .app.is-color-selection .product-thumb{height:144px}
 .app.is-color-selection .catalog-scroll{padding-bottom:13px}
 .app.is-color-selection .catalog-scroll{padding-left:calc(50% - 72px);padding-right:calc(50% - 72px)}
 .app.is-color-selection .product-info{padding:10px}
}
#color-selection{min-width:0;width:100%;max-width:100%}
#color-selection .catalog-shell{min-width:0}
#color-selection .catalog-scroll{min-width:0}
@media(max-height:640px){
 .app.is-color-selection:has(.screen[data-step="3"].is-active) .header{min-height:64px;padding-top:12px;padding-bottom:4px}
 .app.is-color-selection .product-card{flex-basis:112px;height:156px}
 .app.is-color-selection .product-thumb{height:112px}
 .app.is-color-selection .catalog-scroll{padding-left:calc(50% - 56px);padding-right:calc(50% - 56px);padding-top:12px;padding-bottom:11px}
 .app.is-color-selection #selection-title{font-size:26px}
 .app.is-color-selection .product-name{font-size:13px}
 .app.is-color-selection #product-meta{gap:3px}
}

#color-selection .catalog-shell,#color-selection .catalog-scroll{background:transparent}
#color-selection .product-card{background:var(--card-surface,#f7f7f1);box-shadow:none;opacity:1}
#color-selection .product-thumb,#color-selection .product-info{background:var(--card-surface,#f7f7f1)}
#color-selection .product-card--selected,#color-selection .product-card--center{box-shadow:0 0 0 4px var(--accent)}

.generation-contact{display:grid;gap:8px;text-align:left;width:100%;margin:8px 0}
.generation-contact-copy{margin:0 0 6px;font-family:var(--font-body);font-size:var(--subtitle-size);line-height:var(--subtitle-line-height);color:var(--ink)}
.generation-contact .field-label{margin:0}
.generation-contact .field-input{width:100%;font-family:var(--font-body);font-size:20px;font-weight:400;min-height:54px;border-radius:999px}
#generation-phone::placeholder{font-weight:400}
.generation-consent,.generation-consent span,.generation-consent a{font-weight:400}
#generation-phone-status:empty{display:none}
.app.is-generating #generation-contact{display:none}

.restart-btn{border:0;background:transparent;color:var(--ink);font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer;padding:12px 0;min-height:44px;text-align:left}
#restart-modal .modal-dialog{display:grid;gap:18px}
#restart-modal h2,#restart-modal p{margin:0}

/* Keep the desktop phone frame anchored like the first screen. */
@media(min-width:461px){
 body{align-items:start;padding-top:max(42px,calc((100dvh - 860px)/2))}
 .app,.app.is-color-selection:has(.screen[data-step="3"].is-active){min-height:860px}
}
@media(min-width:461px) and (max-height:850px){
 body{padding-top:24px}
 .app,.app.is-color-selection:has(.screen[data-step="3"].is-active){min-height:calc(100dvh - 48px)}
}
@media(max-width:460px){
 .app.is-color-selection:has(.screen[data-step="3"].is-active){min-height:100dvh}
}

/* Match the storefront actions and use the owner's exact messenger artwork. */
.primary-btn,.app .primary-btn,#start-btn,#generate-btn,.modal .primary-btn{border-radius:999px!important;background:#333333!important;color:#fff!important;border:1px solid #333333!important;box-shadow:none!important;text-transform:uppercase!important;font-weight:500}
.secondary-btn,.app .secondary-btn,.show-more-reviews-btn,.modal .secondary-btn,.feed-back{border:1px solid #333333!important;border-radius:999px!important;background:#fff!important;color:#333333!important;box-shadow:none!important;text-transform:uppercase!important;font-weight:500}
.feed-back{padding:10px 18px}
.tryon-messengers{width:100%;margin:14px 0}
.tryon-messenger-icons{display:flex;justify-content:center;align-items:start;gap:32px}
.tryon-messenger-link{display:flex;flex-direction:column;align-items:center;gap:10px;width:96px;color:#333;text-decoration:none;font:inherit;font-size:14px;cursor:pointer}
.tryon-messenger-link:focus-visible{outline:2px solid #333;outline-offset:6px;border-radius:20px}
.tryon-messenger-link[aria-disabled=true]{cursor:wait}
.tryon-messenger-sprite{display:block;width:88px;height:88px;border-radius:23%;background-image:url('./assets/messenger-icons-source.png');background-repeat:no-repeat;background-size:214.4px 105.2px}
.tryon-messenger-sprite--max{background-position:-12.2px -7.4px}
.tryon-messenger-sprite--telegram{background-size:212.8px 105.1px;background-position:-113.5px -7.3px}
.tryon-messengers .status{margin:12px 0 0;text-align:center;font-size:13px;line-height:1.4}
.tryon-messengers .status:empty{display:none}
.messenger-panel-dialog{display:grid;gap:20px;max-width:400px;text-align:center}
.messenger-panel-dialog h2,.messenger-panel-dialog p{margin:0}
.messenger-panel-dialog h2{font-family:var(--font-heading);font-size:26px;font-weight:var(--heading-weight);line-height:1.15;color:var(--text-heading)}
.messenger-panel-dialog p{line-height:1.45}
#loader-messenger-btn{margin-top:18px}
.site-menu-contacts .tryon-messenger-icons{justify-content:start;gap:20px}
.site-menu-contacts .tryon-messenger-link{width:72px;font-size:12px}
.app.is-critical-failure .generation-contact,.app.is-critical-failure .generation-consent,.app.is-critical-failure #generate-btn,.app.is-critical-failure .generation-result-note,.app.is-critical-failure .magic-card>h1,.app.is-critical-failure .generation-note{display:none!important}

/* VK vector reuses the bundled Tabler brand-vk geometry. */
.tryon-messenger-vk{display:block;width:88px;height:88px;box-sizing:border-box;padding:18px;border-radius:23%;background:#0077ff;color:#fff}
.tryon-messengers.has-vk .status{overflow-wrap:anywhere}
@media(max-width:480px){.tryon-messengers.has-vk .tryon-messenger-icons{flex-wrap:wrap;gap:16px}.tryon-messengers.has-vk .tryon-messenger-link{width:72px}.tryon-messengers.has-vk .tryon-messenger-sprite,.tryon-messengers.has-vk .tryon-messenger-vk{transform:scale(.7273);transform-origin:top center;margin-bottom:-24px}}
