/* Shared product screenshots and accessible device tabs. */
.cd-product-preview { min-width: 0; }
.cd-product-preview-tabs { display: flex; justify-content: var(--preview-tabs-align, center); flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.cd-product-preview-tab { min-height: 44px; padding: 10px 22px; border: 1px solid var(--preview-border, #cbd5e1); border-radius: 999px; background: white; color: var(--preview-ink, #475569); font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.cd-product-preview-tab:hover { background: var(--preview-hover, #f1f5f9); }
.cd-product-preview-tab[aria-selected="true"] { background: var(--preview-active-bg, #dbeafe); border-color: var(--preview-active-border, #93c5fd); color: var(--preview-active-ink, #1d4ed8); }
.cd-product-preview-tab:focus-visible, .cd-product-preview-panel:focus-visible { outline: 3px solid var(--preview-focus, #2563eb); outline-offset: 4px; }
.cd-product-preview-stage { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--preview-stage-border, transparent); border-radius: 28px; background: var(--preview-stage-bg, transparent); }
.cd-product-preview-panel { position: absolute; inset: var(--preview-inset, 0); display: grid; place-items: center; min-width: 0; min-height: 0; border-radius: 16px; animation: cdProductPreviewReveal .28s ease-out; }
.cd-product-preview-panel[hidden] { display: none !important; }
.cd-product-preview .cd-product-preview-image { display: block; width: 100%; height: 100%; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes cdProductPreviewReveal {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 540px) {
    .cd-product-preview-tabs { gap: 6px; margin-bottom: 18px; }
    .cd-product-preview-tab { padding-inline: 16px; }
    .cd-product-preview-stage { border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .cd-product-preview-tab { transition: none; }
    .cd-product-preview-panel { animation: none; }
}
