.gg-product-3d-host { position: relative; }

.single-product .product .gg-product-3d-host > button.gg-product-3d-trigger {
    position: absolute;
    inset: 8px auto auto 8px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 40px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #161616;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    letter-spacing: 0;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}
.gg-product-3d-trigger svg { display: block; width: 19px; height: 19px; }
.single-product .product .gg-product-3d-host > .gg-product-3d-trigger:hover { background: #f7f7f7; border-color: #ddd; color: #161616; }
.single-product .product .gg-product-3d-host > .gg-product-3d-trigger:focus-visible,
#gg-product-3d-dialog > .gg-product-3d-close:focus-visible { outline: 2px solid #81203c; outline-offset: 3px; }
.single-product .product .gg-product-3d-host > .gg-product-3d-trigger[hidden] { display: none !important; }
html.gg-product-3d-open { overflow: hidden; }

dialog.gg-product-3d-dialog {
    width: min(1080px, calc(100vw - 64px));
    height: 90vh;
    height: 90dvh;
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: #f7f7f5;
    overflow: hidden;
    color: #161616;
}
.gg-product-3d-dialog::backdrop { background: rgb(0 0 0 / 45%); }
.gg-product-3d-dialog > iframe { display: block; width: 100%; height: 100%; border: 0; }
#gg-product-3d-dialog > button.gg-product-3d-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 0;
    margin: 0;
    padding: 10px;
    border: 0;
    border-radius: 0;
    background: #fff;
    color: #161616;
    box-shadow: none;
    cursor: pointer;
}
.gg-product-3d-close svg { width: 24px; height: 24px; }
@media (max-width: 767px) {
    .single-product .product .gg-product-3d-host > button.gg-product-3d-trigger { min-height: 44px; }
    dialog.gg-product-3d-dialog { width: 100vw; height: 100vh; height: 100dvh; border-radius: 0; }
    #gg-product-3d-dialog > button.gg-product-3d-close {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
    }
}
