.rm-product-video-preview { position: relative; display: grid; place-items: center; min-height: 220px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--rm-radius); background: #17283b; color: #fff; text-decoration: none; }
.rm-product-video-preview img { position: absolute; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.rm-product-video-preview__play { position: relative; display: grid; place-items: center; width: 68px; height: 68px; padding-left: 4px; border: 2px solid #fff; border-radius: 50%; background: #005aaa; font-size: 22px; }
.rm-product-video-preview__label { position: absolute; bottom: 18px; left: 18px; padding: 5px 10px; border-radius: 4px; background: #17283b; color: #fff; }
.rm-product-video-preview:focus-visible, .rm-media-viewer button:focus-visible { outline: 3px solid #77c3ff; outline-offset: 3px; }
.rm-media-viewer { position: fixed; width: min(1100px, 94vw); max-width: none; max-height: 94dvh; padding: 52px 20px 16px; border: 0; border-radius: 12px; background: #122235; color: #fff; box-shadow: 0 20px 80px #0008; overflow: auto; }
.rm-media-viewer::backdrop { background: rgba(4, 13, 24, .85); }
.rm-media-viewer__close { position: absolute; right: 12px; top: 8px; }
.rm-media-viewer button { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid #7790a8; border-radius: 6px; background: #233c56; color: #fff; font-size: 24px; cursor: pointer; }
.rm-media-viewer button:hover { background: #005aaa; }
.rm-media-viewer__body { display: grid; place-items: center; height: min(68dvh, 720px); }
.rm-media-viewer__body img, .rm-media-viewer__body video { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.rm-media-viewer__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.rm-media-viewer__footer p { margin: 0; color: #fff; }
.rm-media-viewer__nav { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.rm-media-viewer__nav[hidden] { display: none; }
@media (max-width: 600px) { .rm-media-viewer { width: 96vw; padding: 52px 12px 12px; } .rm-media-viewer__body { height: 62dvh; } .rm-media-viewer__footer { flex-wrap: wrap; } }
