/* Quick view: keep actions reachable, with only the description scrolling. */
body #detail_product.t5-quickview .modal-dialog {
    width: calc(100% - 24px);
    max-width: 1000px;
    height: calc(100vh - 24px) !important;
    height: calc(100dvh - 24px) !important;
    min-height: 0 !important;
    margin: 12px auto;
    display: block;
}
body #detail_product.t5-quickview .modal-content {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden;
}
body #detail_product.t5-quickview .t5-quickview__layout {
    display: grid;
    grid-template-columns: 44% minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    height: 100%;
    min-height: 0;
    padding: 0;
    overflow: hidden;
}
body #detail_product.t5-quickview .t5-quickview__media {
    height: 100%;
    min-height: 0;
    overflow: hidden;
}
body #detail_product.t5-quickview .t5-quickview__media img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
}
body #detail_product.t5-quickview .t5-quickview__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 28px;
    overflow: hidden;
}
body #detail_product.t5-quickview .t5-quickview__content > * {
    flex-shrink: 0;
}
body #detail_product.t5-quickview #modal-product-description {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    white-space: pre-line;
    overflow-wrap: anywhere;
    margin: 16px 0;
    padding-inline-end: 6px;
}
body #detail_product.t5-quickview .t5-quickview__actions {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    flex: 0 0 auto;
    gap: 8px;
    margin: 0;
    padding: 12px 0 0;
    width: 100%;
    min-width: 0;
}
body #detail_product.t5-quickview .t5-quickview__actions .t5-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
    min-height: 48px;
    height: auto;
    padding: 10px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.35;
    font-size: 11px;
    letter-spacing: .04em;
    text-align: center;
}
body #detail_product.t5-quickview .t5-quickview__actions .t5-button span {
    min-width: 0;
    white-space: normal;
    overflow: visible;
}
body #detail_product.t5-quickview #modal-details-link {
    grid-column: 1 / -1;
}
body #detail_product.t5-quickview .t5-quickview__stock.is-unavailable {
    background: transparent;
    color: var(--t5-muted, #625f57);
    border: 1px solid currentColor;
}
@media (max-width: 767px) {
    body #detail_product.t5-quickview .t5-quickview__layout {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(96px, 23%) minmax(0, 1fr);
    }
    body #detail_product.t5-quickview .t5-quickview__content {
        padding: 16px;
    }
    body #detail_product.t5-quickview .t5-quickview__title {
        font-size: clamp(21px, 5.5vw, 28px);
        line-height: 1.15;
        margin: 8px 0;
    }
    body #detail_product.t5-quickview .t5-quickview__price {
        margin: 10px 0 0;
    }
    body #detail_product.t5-quickview #modal-product-description {
        margin: 12px 0;
        font-size: 14px;
        line-height: 1.6;
    }
}
