button.b2b-product-image-preview-trigger {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font: inherit;
    line-height: normal;
    text-align: inherit;
    cursor: zoom-in;
}
button.b2b-product-image-preview-trigger:hover,
button.b2b-product-image-preview-trigger:active {
    background: transparent;
    color: inherit;
    box-shadow: none;
}
button.b2b-product-image-preview-trigger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}
.b2b-product-image-preview-hint {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 5px 9px;
    border-radius: 3px;
    background: rgb(0 0 0 / 65%);
    color: #fff;
    font: 500 12px/1.35 system-ui, sans-serif;
    pointer-events: none;
}
dialog#b2b-product-image-preview {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: fit-content;
    max-width: min(1200px, calc(100vw - 32px));
    height: fit-content;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 48px 16px 16px;
    overflow: auto;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 60px rgb(0 0 0 / 30%);
    overscroll-behavior: contain;
}
dialog#b2b-product-image-preview::backdrop {
    background: rgb(0 0 0 / 78%);
}
#b2b-product-image-preview .b2b-product-image-preview-title {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
#b2b-product-image-preview button.b2b-product-image-preview-close {
    position: absolute;
    top: 4px;
    right: 4px;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #222;
    font: 400 30px/1 system-ui, sans-serif;
    cursor: pointer;
}
#b2b-product-image-preview button.b2b-product-image-preview-close:hover {
    background: #eee;
}
#b2b-product-image-preview button.b2b-product-image-preview-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}
#b2b-product-image-preview img.b2b-product-image-preview-photo {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 112px);
    max-height: calc(100dvh - 112px);
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}
#b2b-product-image-preview img.b2b-product-image-preview-photo[hidden],
#b2b-product-image-preview .b2b-product-image-preview-status[hidden] {
    display: none;
}
#b2b-product-image-preview .b2b-product-image-preview-status {
    max-width: 320px;
    margin: 20px;
    color: #333;
    font: 400 16px/1.5 system-ui, sans-serif;
}
@media (max-width: 600px) {
    dialog#b2b-product-image-preview {
        max-width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding-right: 8px;
        padding-left: 8px;
        border-radius: 4px;
    }
}
