dialog.product-review-media-lightbox { width: min(56rem, calc(100vw - 2rem)); max-width: 56rem; margin: auto; padding: 0; overflow: hidden; border: 1px solid #e5e7eb; border-radius: 1rem; background: #fff; }
dialog.product-review-media-lightbox::backdrop { background: rgba(15,23,42,.78); backdrop-filter: blur(3px); }
.product-review-media-lightbox__close { position: absolute; top: 0.75rem !important; right: 0.75rem !important; z-index: 2; display: flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border: 1px solid #d1d5db; border-radius: 999px; color: #374151; background: rgba(255,255,255,.92); }
.product-review-media-lightbox__close svg { width: 1.15rem; height: 1.15rem; }
.product-review-media-lightbox__stage { display: flex; min-height: min(70vh, 40rem); align-items: center; justify-content: center; background: #f9fafb; }
.product-review-media-lightbox__stage img,
.product-review-media-lightbox__stage video { display: block; max-width: 100%; max-height: min(70vh, 40rem); object-fit: contain; }
.product-review-media-lightbox__footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 1rem; border-top: 1px solid #e5e7eb; color: #4b5563; background: #fff; }
.product-review-media-lightbox__count { margin: 0; font-size: 0.8rem; font-weight: 600; }
.product-review-media-lightbox__actions { display: flex; gap: 0.5rem; }
.product-review-media-lightbox__actions button { display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border: 1px solid #d1d5db; border-radius: 0.6rem; color: #374151; background: #fff; cursor: pointer; }
.product-review-media-lightbox__actions button:hover { background: #f3f4f6; }
.product-review-media-lightbox__actions button:disabled { cursor: default; opacity: .4; }
.product-review-media-lightbox__actions svg { width: 1.1rem; height: 1.1rem; }
.product-review-media-lightbox__actions[hidden] { display: none; }

html.dark dialog.product-review-media-lightbox { border-color: #374151; background: #111827; }
html.dark .product-review-media-lightbox__close { border-color: rgba(255,255,255,.2); color: #fff; background: rgba(17,24,39,.7); }
html.dark .product-review-media-lightbox__stage { background: #111827; }
html.dark .product-review-media-lightbox__footer { border-color: #374151; color: #d1d5db; background: #1f2937; }
html.dark .product-review-media-lightbox__actions button { border-color: #4b5563; color: #f9fafb; background: #374151; }
html.dark .product-review-media-lightbox__actions button:hover { background: #4b5563; }
