/* A native top-layer host keeps existing forms underneath the image viewer. */
#product-image-zoom[data-photoswipe-host] { --fc-lightbox-ready: 1; position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; background: #21160f; color: #faf7ef; animation: none; }
#product-image-zoom[data-photoswipe-host] > :not(.pswp):not(.fc-lightbox-loading) { display: none !important; }
#product-image-zoom[data-photoswipe-host]::backdrop { background: #21160f; backdrop-filter: none; }
#product-image-zoom[data-photoswipe-host] .pswp { position: absolute; inset: 0; width: 100%; height: 100%; --pswp-bg: #21160f; --pswp-icon-color: #faf0db; --pswp-icon-color-secondary: #21160f; --pswp-icon-stroke-color: #21160f; --pswp-icon-stroke-width: 1px; --pswp-preloader-color: #e7c97a; --pswp-preloader-color-secondary: #594129; font-family: var(--sans, Arial, sans-serif); }
.fc-photoswipe .pswp__top-bar { background: linear-gradient(#21160fdf, #21160f00); }
.fc-photoswipe .pswp__counter { color: #e7c97a; font-size: 14px; text-shadow: none; }
.fc-photoswipe .pswp__button { min-width: 44px; min-height: 44px; }
.fc-photoswipe .pswp__button:focus-visible, .fc-lightbox-original:focus-visible, .fc-lightbox-loading-close:focus-visible { outline: 3px solid #e7c97a; outline-offset: -4px; }
.fc-photoswipe .pswp__button--arrow { background: #21160f88; border-radius: 4px; }
.fc-photoswipe .pswp__button:hover { background-color: #78582f55; }
.fc-lightbox-caption { position: absolute; z-index: 20; inset: auto 0 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 66px; padding: 14px max(24px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); border-top: 1px solid #c59a4a55; background: #21160ff2; color: #faf0db; font-size: 13px; line-height: 1.5; }
.fc-lightbox-caption-copy { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; max-width: min(75ch, 70%); overflow-wrap: anywhere; }
.fc-lightbox-original { display: inline-flex; align-items: center; flex-shrink: 0; min-height: 44px; color: #e7c97a; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.fc-lightbox-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #faf0db; font: 400 14px/1.5 var(--sans, Arial, sans-serif); }
.fc-lightbox-loading p { margin: 0; padding: 24px; }
.fc-lightbox-loading-close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid #e7c97a66; border-radius: 4px; color: #faf0db; background: transparent; font: 300 30px/1 var(--sans, Arial, sans-serif); }
@media (max-width: 600px) {
  .fc-lightbox-caption { min-height: 76px; padding: 9px 16px calc(9px + env(safe-area-inset-bottom)); gap: 8px 16px; flex-wrap: wrap; font-size: 12px; }
  .fc-lightbox-caption-copy { max-width: 100%; width: 100%; }
  .fc-lightbox-original { min-height: 32px; font-size: 11px; }
  .fc-photoswipe .pswp__button--arrow { width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #product-image-zoom[data-photoswipe-host], #product-image-zoom[data-photoswipe-host] * { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}

.fc-lightbox-pending { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; color: #faf0db; font-size: 14px; }
.fc-photoswipe .pswp__error-msg { color: #faf0db; font-size: 14px; line-height: 1.6; max-width: 420px; padding: 24px; text-align: center; }
