/**
 * Cookie Banner Styles — Van Hoop (van-hoop.nl)
 */

/* ==========================================================================
   Cookie Modal
   ========================================================================== */

.vh_cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.vh_cookie-modal.vh_cookie-modal-visible {
    opacity: 1;
    visibility: visible;
}

.vh_cookie-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(72, 82, 68, 0.45);
    backdrop-filter: blur(3px);
}

.vh_cookie-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.96);
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(72, 82, 68, 0.18);
    max-width: 560px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.vh_cookie-modal.vh_cookie-modal-visible .vh_cookie-modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.vh_cookie-modal-header {
    padding: 24px 28px 18px;
    border-bottom: 1px solid #e5e2db;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f5f0;
}

.vh_cookie-modal-header h4 {
    margin: 0;
    color: #485244;
    font-weight: 500;
    font-size: 1.25rem;
}

.vh_cookie-modal-close {
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: #5a5a5a;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: all 0.15s ease;
}

.vh_cookie-modal-close:hover {
    background-color: rgba(72, 82, 68, 0.08);
    color: #485244;
}

.vh_cookie-modal-body {
    padding: 28px;
    max-height: 400px;
    overflow-y: auto;
}

.vh_cookie-modal-body p {
    margin-bottom: 22px;
    color: #5a5a5a;
    font-size: 0.95rem;
    line-height: 1.6;
}

.vh_cookie-category {
    margin-bottom: 18px;
    padding: 18px 20px;
    border: 1px solid #e5e2db;
    border-radius: 8px;
    background: #f7f5f0;
    transition: all 0.15s ease;
}

.vh_cookie-category:hover {
    border-color: #6c7c61;
}

.vh_cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.vh_cookie-category-info {
    flex: 1;
    padding-right: 16px;
}

.vh_cookie-category-info h6 {
    margin: 0 0 6px 0;
    color: #485244;
    font-weight: 500;
    font-size: 1rem;
}

.vh_cookie-category-desc {
    margin: 0;
    color: #5a5a5a;
    font-size: 0.875rem;
    line-height: 1.45;
}

/* ==========================================================================
   Toggle Switch
   ========================================================================== */

.vh_cookie-toggle {
    position: relative;
    display: flex;
    align-items: center;
}

.vh_cookie-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.vh_toggle-label {
    display: block;
    width: 48px;
    height: 26px;
    background-color: #c8c4bc;
    border-radius: 9999px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.vh_toggle-label:hover {
    background-color: #b8b4ac;
}

.vh_toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.vh_cookie-toggle input[type="checkbox"]:checked + .vh_toggle-label {
    background-color: #485244;
}

.vh_cookie-toggle input[type="checkbox"]:checked + .vh_toggle-label:hover {
    background-color: #6c7c61;
}

.vh_cookie-toggle input[type="checkbox"]:checked + .vh_toggle-label .vh_toggle-slider {
    transform: translateX(22px);
}

.vh_cookie-toggle input[type="checkbox"]:disabled + .vh_toggle-label {
    opacity: 0.55;
    cursor: not-allowed;
}

.vh_cookie-toggle input[type="checkbox"]:disabled + .vh_toggle-label:hover {
    background-color: #c8c4bc;
}

/* ==========================================================================
   Modal Footer
   ========================================================================== */

.vh_cookie-modal-footer {
    padding: 18px 28px 24px;
    border-top: 1px solid #e5e2db;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f7f5f0;
}

.vh_cookie-modal-footer .vh_btn {
    padding: 10px 22px !important;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.15s ease;
    text-decoration: none;
    white-space: nowrap;
    min-height: auto;
    height: auto;
    font-size: 0.875rem !important;
    line-height: 1.4 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    border: 1px solid #000000;
}

.vh_cookie-modal-footer .vh_btn-primary {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.vh_cookie-modal-footer .vh_btn-primary:hover {
    background-color: #485244;
    border-color: #485244;
}

.vh_cookie-modal-footer .vh_btn-secondary {
    background-color: #ffffff;
    border-color: #000000;
    color: #000000;
}

.vh_cookie-modal-footer .vh_btn-secondary:hover {
    background-color: #000000;
    color: #ffffff;
}

#vh_cookie-save-preferences {
    background-color: #ffffff;
    border-color: #485244;
    color: #485244;
}

#vh_cookie-save-preferences:hover {
    background-color: #485244;
    border-color: #485244;
    color: #ffffff;
}

/* ==========================================================================
   Body Lock
   ========================================================================== */

body.vh_cookie-modal-open {
    overflow: hidden;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 991.98px) {

    .vh_cookie-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .vh_cookie-modal-header,
    .vh_cookie-modal-body,
    .vh_cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 767.98px) {

    .vh_cookie-modal-content {
        width: 95%;
        margin: 20px auto;
        max-height: calc(100vh - 40px);
    }

    .vh_cookie-modal-header {
        padding: 20px 15px 15px;
    }

    .vh_cookie-modal-header h4 {
        font-size: 1.125rem;
    }

    .vh_cookie-modal-body {
        padding: 20px 15px;
    }

    .vh_cookie-modal-footer {
        padding: 15px;
        flex-direction: column;
    }

    .vh_cookie-modal-footer .vh_btn {
        width: 100%;
        margin: 0;
    }

    .vh_cookie-category {
        padding: 15px;
    }

    .vh_cookie-category-header {
        flex-direction: column;
        gap: 12px;
    }

    .vh_cookie-category-info {
        padding-right: 0;
    }

    .vh_cookie-toggle {
        align-self: flex-start;
    }
}
