.vcg-preview { margin: 0 0 1.2rem; padding: .75rem; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; }
.vcg-preview[hidden] { display: none; }
.vcg-preview__title { font-weight: 600; margin-bottom: .4rem; }
.vcg-preview__svg { display: block; width: 100%; height: auto; }
.vcg-preview__note { margin-top: .4rem; font-size: 12px; color: #666; }
/* Replace: the gallery is hidden while the preview is showing (it stays in the page); Shrink: the gallery is smaller under a large preview */
.product.media.vcg-preview-design > .gallery-placeholder { display: none; }
.product.media.vcg-preview-shrink > .gallery-placeholder { max-width: 45%; margin: .8rem auto 0; }
.vcg-preview-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.vcg-preview-tabs button { width: 72px; height: 72px; padding: 0; border: 2px solid #d9d9d9; border-radius: 4px; background: #fff; cursor: pointer; overflow: hidden; }
.vcg-preview-tabs button[aria-pressed="true"] { border-color: #333; }
.vcg-preview-tabs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcg-preview-tabs__design { font-size: 12px; line-height: 1.2; font-weight: 600; padding: 4px; display: block; }
/* a picture sits on a light grey stage so its white outline shows against it */
.vcg-preview--picture .vcg-preview__stage { background: #f2f2f2; }
/* Replace and Shrink: the picture column stays on screen while the customer works down the options */
.product.media.vcg-preview-sticky { position: sticky; top: 12px; z-index: 5; align-self: flex-start; }
@media (max-width: 767px) {
    .product.media.vcg-preview-sticky { top: 0; margin: 0 -10px; padding: 4px 10px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
    .vcg-preview-sticky .vcg-preview { margin: 0 0 .25rem; padding: .3rem .4rem; }
    .vcg-preview-sticky .vcg-preview__title { display: none; }
    .vcg-preview-sticky .vcg-preview__note { margin-top: .15rem; font-size: 11px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
    .vcg-preview-sticky .vcg-preview-tabs { margin: 0; gap: .35rem; }
    .vcg-preview-sticky .vcg-preview-tabs button { width: 40px; height: 40px; }
    .vcg-preview-sticky .vcg-preview-tabs__design { font-size: 9px; padding: 2px; }
}
