/* Shared fail-open controls; gallery keeps its existing 4:3 styling. */
[data-compare] [hidden] { display: none !important; }
[data-compare].compare-failed .lp-compare-after { clip-path: none; }
[data-compare].compare-failed .lp-compare-divider,
[data-compare].compare-failed .lp-compare-topline { display: none; }
[data-compare] .compare-unavailable { position: absolute; inset: auto .5rem .5rem; z-index: 6; margin: 0; padding: .5rem .7rem; border-radius: .5rem; background: #10223beb; color: #fff; font-size: .8rem; line-height: 1.4; }
.public-compare { position: relative; isolation: isolate; aspect-ratio: 3 / 2; overflow: hidden; border-radius: .9rem; background: var(--bs-secondary-bg); }
.marketing-page .public-compare, .marketing-page .public-compare.is-active { aspect-ratio: 3 / 2; transform: none; border: 0; box-shadow: none; }
.public-compare .lp-compare-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; }
.public-compare .lp-compare-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.public-compare .lp-compare-after { clip-path: inset(0 0 0 var(--compare-pos, 50%)); }
.public-compare .lp-compare-topline { position: absolute; inset: .65rem .65rem auto; display: flex; justify-content: space-between; gap: .5rem; z-index: 2; pointer-events: none; }
.public-compare .lp-compare-chip { max-width: 48%; padding: .35rem .6rem; border: 1px solid #ffffff40; border-radius: 2rem; background: #0c2038df; color: #fff; font-size: .7rem; font-weight: 600; line-height: 1.3; }
.public-compare .lp-compare-divider { position: absolute; inset-block: 0; left: var(--compare-pos, 50%); width: 2px; transform: translateX(-50%); z-index: 2; pointer-events: none; background: linear-gradient(180deg, #d8fcff70, #efffff 25%, #b5f9ff 75%, #d8fcff70); box-shadow: 0 0 4px #fff8, 0 0 18px #13cce988; }
.public-compare .lp-compare-handle { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 30px; height: 40px; display: grid; place-items: center; border: 1px solid #d8fbff; border-radius: 2rem; background: #10223be8; color: #fff; box-shadow: 0 0 14px #18d5ec55; }
.public-compare .lp-compare-handle::before { content: '‹ ›'; position: static; inset: auto; width: auto; height: auto; border: 0; transform: none; font-size: 20px; line-height: 1; white-space: nowrap; }
.public-compare .lp-compare-handle::after, .public-compare .lp-compare-handle-grip { content: none; display: none; }
.public-compare .lp-compare-range { position: absolute; inset: 0; z-index: 3; margin: 0; width: 100%; height: 100%; cursor: ew-resize; background: transparent; touch-action: pan-y; appearance: none; -webkit-appearance: none; }
.public-compare .lp-compare-range::-webkit-slider-runnable-track { background: transparent; }
.public-compare .lp-compare-range::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 44px; height: 44px; border: 0; background: transparent; }
.public-compare .lp-compare-range::-moz-range-thumb { width: 44px; height: 44px; border: 0; background: transparent; }
.public-compare .lp-compare-range::-moz-range-track { border: 0; background: transparent; }
.public-compare .lp-compare-range:focus-visible { outline: 3px solid #0b5ed7; outline-offset: -4px; border-radius: .9rem; }
.public-compare:has(.lp-compare-range:focus-visible) .lp-compare-handle { outline: 3px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .public-compare *, .public-compare *::before, .public-compare *::after { animation: none !important; transition: none !important; } }
