/**
 * Hyvä category/product content modals (request demo / quote / enquire).
 */

.category-misc-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.category-misc-modal[hidden] {
    display: none !important;
}

.category-misc-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.category-misc-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 42rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    color: #333;
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.category-misc-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}

.category-misc-modal__title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
}

.category-misc-modal__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.category-misc-modal__close:hover,
.category-misc-modal__close:focus {
    color: #111827;
}

.category-misc-modal__body {
    padding: 1.25rem;
}

body.category-misc-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .category-misc-modal__dialog {
        max-width: 100%;
    }
}
