body:has(.product-dialog[open]) {
    overflow: hidden;
}

.product-dialog {
    width: auto;
    padding: 0;
    border: 1px solid var(--default-border-color);
    border-radius: var(--default-border-radius);
    background-color: var(--default-background-color);
    color: var(--text-default-color);
}
.product-dialog[open] {
    animation: fadeInDown;
    animation-duration: .4s;
    animation-fill-mode: both;
}
.product-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn;
    animation-duration: .4s;
    animation-fill-mode: both;
}
.product-dialog::-webkit-scrollbar {
    display: none;
}

.product-dialog.closing {
    animation: fadeOutUpFixed;
    animation-duration: .4s;
    animation-fill-mode: both;
}
.product-dialog.closing::backdrop {
    animation: fadeOut;
    animation-duration: .4s;
    animation-fill-mode: both;
}

.product-dialog .dialog-content {
    position: relative;
    pointer-events: auto;
    width: 100%;
}

.product-dialog .dialog-header {
    display: flex;
    position: sticky;
    z-index: 1020;
    top: 0;
    background-color: var(--default-background-color);
    align-items: center;
    justify-content: space-between;
    padding: var(--default-space-between);
    border-bottom: 1px solid var(--default-border-color);
}
.product-dialog .dialog-title {
    font-size: 20px;
    margin: 0;
}
.product-dialog .dialog-body {
    padding: var(--default-space-between);
    background-color: var(--default-background-color);
}
.product-dialog .dialog-footer {
    display: flex;
    position: sticky;
    z-index: 1020;
    bottom: 0;
    background-color: var(--default-background-color);
    flex-direction: column;
    flex-wrap: wrap;
    align-items: inherit;
    justify-content: inherit;
    padding: var(--default-space-between);
    border-top: 1px solid var(--default-border-color);
}

.product-dialog .dialog-close {
    box-sizing: content-box;
    width: 20px;
    height: 20px;
    padding: 4px;
    color: var(--text-default-color);
    background-color: transparent;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: none;
    opacity: .5;
}
@media (hover: hover) and (pointer: fine) {
    .product-dialog .dialog-close:hover {
        color: var(--text-default-color);
        text-decoration: none;
        opacity: 1;
    }
}
.product-dialog .dialog-close:focus {
    color: var(--text-default-color);
    outline: 0;
    opacity: 1;
}

.product-dialog .dialog-footer .product-offer {
    margin-top: 0;
}

.product-dialog .dialog-footer .product-add-to-cart {
    margin-top: var(--default-space-between);
}

.product-dialog .dialog-footer .product-conditions fieldset {
    text-align: center;
}

.product-dialog .product-unavailable {
    margin-top: 15px;
}

@media (max-width:767.98px) {
    .product-image-default img {
        max-height: 50vh;
    }
}

@media (min-width: 992px) {
    .product-dialog {
        max-width: 800px
    }
}

@keyframes fadeOutUpFixed {
    /* The animate.css library is missing the transform for the from. */

    from {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    to {
        opacity: 0;
        -webkit-transform: translate3d(0, -100%, 0);
        transform: translate3d(0, -100%, 0);
    }
}
