/**
 * Cookie Consent Styles (Bootstrap 5)
 *
 * @package Tarancon_Digital
 */

#cookie-consent-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0.5rem;
}

@media (min-width: 576px) {
    #cookie-consent-banner {
        padding: 1rem;
        align-items: center;
    }
}

.cookie-modal {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1.25rem 1.5625rem -0.3125rem rgba(0, 0, 0, 0.1), 0 0.625rem 0.625rem -0.3125rem rgba(0, 0, 0, 0.04);
    max-width: 56rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-icon {
    color: #0d6efd;
    flex-shrink: 0;
}

.cookie-settings-section {
    margin-bottom: 1.5rem;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #dee2e6;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #0d6efd;
}

.cookie-toggle input:focus + .cookie-toggle-slider {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.cookie-settings-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s;
    border-radius: 0.375rem;
}

.cookie-settings-close:hover {
    background: #f8f9fa;
    color: #212529;
}
