.quimatic-product-unavailable {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 32px;
}

.quimatic-product-unavailable[hidden] {
    display: none;
}

.quimatic-product-unavailable__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.52);
}

.quimatic-product-unavailable__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 760px);
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow: auto;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.3);
}

.quimatic-product-unavailable__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    object-fit: contain;
}

.quimatic-product-unavailable__close {
    position: absolute;
    z-index: 2;
    top: 20px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 8px;
    border: 0;
    border-radius: 50%;
    color: #0a0203;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.quimatic-product-unavailable__close svg {
    display: block;
    width: 32px;
    height: 32px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 3;
}

.quimatic-product-unavailable__close:hover {
    color: var(--quimatic, #ff4e00);
    background: #ffffff;
    transform: scale(1.04);
}

.quimatic-product-unavailable__close:focus-visible {
    outline: 3px solid var(--quimatic, #ff4e00);
    outline-offset: 3px;
}

body.quimatic-product-unavailable-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .quimatic-product-unavailable {
        padding: 16px;
    }

    .quimatic-product-unavailable__dialog,
    .quimatic-product-unavailable__image {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
    }

    .quimatic-product-unavailable__close {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .quimatic-product-unavailable__close {
        transition: none;
    }
}
