/* Cookie Banner Styles */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: white;
}

.cookie-banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.cookie-banner-text {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-link {
    color: var(--color-brand-yellow, #E8E534);
    text-decoration: underline;
    font-weight: 500;
    cursor: pointer;
}

.cookie-link:hover {
    color: #d4d126;
}

.cookie-banner-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.btn-cookie {
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 0;
    text-transform: none;
}

.btn-refuse {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-refuse:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-customize {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-customize:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-accept {
    background-color: var(--color-brand-yellow, #E8E534);
    color: black;
    border: 2px solid var(--color-brand-yellow, #E8E534);
}

.btn-accept:hover {
    background-color: #d4d126;
    border-color: #d4d126;
}

/* Privacy Modal Styles */

.privacy-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.privacy-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.privacy-modal-content {
    position: relative;
    background-color: white;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-modal-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.privacy-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
}

.privacy-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.privacy-modal-close:hover {
    color: black;
}

.privacy-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    color: #333;
}

.privacy-modal-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: black;
}

.privacy-modal-body h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: black;
}

.privacy-modal-body p {
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.9375rem;
}

.privacy-modal-body ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.privacy-modal-body ul li {
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.privacy-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: flex-end;
    background-color: white;
}

.btn-close-modal {
    padding: 0.75rem 2rem;
    background-color: black;
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-close-modal:hover {
    background-color: #333;
}

/* Responsive adjustments */

@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1.5rem;
    }
    
    .cookie-banner-title {
        font-size: 1.125rem;
    }
    
    .cookie-banner-text {
        font-size: 0.8125rem;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
        padding: 0.75rem 1.5rem;
    }
    
    .privacy-modal-content {
        max-height: 95vh;
        margin: 0.5rem;
    }
    
    .privacy-modal-header,
    .privacy-modal-body,
    .privacy-modal-footer {
        padding: 1.5rem;
    }
    
    .privacy-modal-header h2 {
        font-size: 1.25rem;
    }
}

/* Print styles - hide cookie banner */
@media print {
    .cookie-banner,
    .privacy-modal,
    .cookie-settings {
        display: none !important;
    }
}

/* Cookie Settings Panel */

.cookie-settings {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cookie-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.cookie-settings-content {
    position: relative;
    background-color: white;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.cookie-settings-header {
    padding: 2rem;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.cookie-settings-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: black;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.cookie-settings-close:hover {
    color: black;
}

.cookie-settings-intro {
    padding: 1.5rem 2rem;
    margin: 0;
    font-size: 0.9375rem;
    color: #666;
    border-bottom: 1px solid #e5e5e5;
}

.cookie-settings-body {
    padding: 1rem 2rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.cookie-category {
    border-bottom: 1px solid #e5e5e5;
    padding: 1.5rem 0;
}

.cookie-category:last-child {
    border-bottom: none;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.cookie-category-header h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: black;
}

.cookie-category-description {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #666;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    cursor: pointer;
}

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

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

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: var(--color-brand-yellow, #E8E534);
}

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

input:disabled + .toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle input:disabled {
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #e5e5e5;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    background-color: white;
    flex-wrap: wrap;
}

.btn-accept-selected {
    background-color: transparent;
    color: black;
    border: 2px solid black;
}

.btn-accept-selected:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments for settings */

@media (max-width: 768px) {
    .cookie-settings-content {
        max-height: 95vh;
        margin: 0.5rem;
    }
    
    .cookie-settings-header,
    .cookie-settings-intro,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding: 1rem;
    }
    
    .cookie-settings-header h3 {
        font-size: 1.125rem;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer .btn-cookie {
        width: 100%;
    }
    
    .cookie-category-header {
        flex-direction: row;
        gap: 1rem;
    }
}
