/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(33, 33, 33, 0.9);
    color: white;
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cookie-banner.show {
    display: flex;
    opacity: 1;
    align-items: flex-end;
    justify-content: center;
}

.cookie-content {
    max-width: 800px;
    margin: 0 0 2rem 0;
    text-align: center;
    padding: 0 1rem;
}

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

.cookie-text {
    margin-bottom: 1.5rem;
}

.cookie-heading {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

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

.cookie-btn {
    padding: 0.3rem 1.1rem;
    border: none;
    border-radius: 50px 10px 50px 10px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn:focus {
    outline: 2px solid rgba(166, 111, 20, 0.5);
    outline-offset: 2px;
}

.cookie-btn-essential {
    background-color: rgba(20, 166, 37, 0.7);
    color: white;
    border: 2px solid rgba(20, 166, 37, 0.5);
}

.cookie-btn-essential:hover {
    background-color: rgba(20, 166, 37, 1);
    border-color: rgba(166, 111, 20, 0.7);
}

.cookie-btn-settings,
.cookie-btn-save {
    background-color: rgba(166, 111, 20, 0.8);
    color: white;
}

.cookie-btn-settings:hover,
.cookie-btn-save:hover {
    background-color: rgba(166, 111, 20, 1);
}

.cookie-btn-decline {
    background-color: #666;
    color: white;
}

.cookie-btn-decline:hover {
    background-color: #777;
}

/* Cookie Settings Button */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    color: #333;
    border: none;
    border-radius: 15px;
    padding: 7.5px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cookie-settings-btn:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.cookie-settings-btn svg {
    width: 20px;
    height: 20px;
}

.cookie-settings-btn span {
    font-size: 14px;
    font-weight: 500;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.cookie-settings-modal.show {
    display: flex;
    opacity: 1;
}

.cookie-settings-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(166, 111, 20, 0.2);
    padding-bottom: 1rem;
}

.settings-header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-settings-header h2 {
    margin: 0;
    color: rgba(166, 111, 20, 1);
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0.5rem;
}

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

.cookie-settings-section h3 {
    color: rgba(166, 111, 20, 0.9);
    margin-bottom: 0.5rem;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin: 0.75rem 0;
}

.cookie-toggle input[type="checkbox"] {
    width: 40px;
    height: 20px;
    appearance: none;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.cookie-toggle input[type="checkbox"]:checked {
    background-color: rgba(166, 111, 20, 0.8);
}

.cookie-toggle input[type="checkbox"]::before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: white;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.cookie-toggle input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

.cookie-toggle input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-toggle span {
    font-size: 0.9rem;
    color: #666;
}

/* Language Selector */
.banner-language-selector .language-btn,
.settings-language-selector .language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
}

.settings-language-selector .language-btn {
    border-color: rgba(166, 111, 20, 0.3);
    color: #333;
}

.banner-language-selector .language-menu,
.settings-language-selector .language-menu {
    top: calc(100% + 5px);
    right: 0;
    min-width: 120px;
}

.banner-language-selector .language-menu {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .cookie-content {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-settings-content {
        width: 95%;
        padding: 1.5rem;
    }

    .cookie-settings-btn {
        bottom: 0.5rem;
        left: 0.5rem;
        padding: 0.5rem;
    }

    .cookie-settings-btn span {
        display: none;
    }

    .cookie-settings-btn svg {
        margin: 0;
    }

    .cookie-header {
        flex-direction: column;
        gap: 1rem;
    }

    .banner-language-selector,
    .settings-language-selector {
        align-self: flex-end;
    }

    .language-select {
        padding: 0.5rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        background: transparent;
        color: white;
        cursor: pointer;
        font-size: 0.9rem;
        outline: none;
        transition: all 0.3s ease;
    }

    .language-select:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .language-select option {
        background: #333;
        color: white;
        padding: 0.5rem;
    }

    .cookie-settings-modal .language-select {
        border-color: rgba(166, 111, 20, 0.3);
        color: #333;
    }

    .cookie-settings-modal .language-select option {
        background: white;
        color: #333;
    }
}