﻿.cc-window {
    background: #1e3a8a !important;
    border: 2px solid #3b82f6 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    font-family: 'Poppins', sans-serif !important;
}

.cc-banner {
    padding: 20px 24px !important;
}

.cc-message {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #ffffff !important;
    margin-bottom: 0 !important;
}

.cc-compliance {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 16px !important;
}

.cc-btn {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.cc-allow {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

    .cc-allow:hover {
        background-color: #059669 !important;
        transform: translateY(-1px) !important;
    }

.cc-deny {
    background-color: #ef4444 !important;
    color: #ffffff !important;
}

    .cc-deny:hover {
        background-color: #dc2626 !important;
        transform: translateY(-1px) !important;
    }

.cc-settings {
    background-color: transparent !important;
    color: #e5e7eb !important;
    border: 1px solid #6b7280 !important;
}

    .cc-settings:hover {
        background-color: #374151 !important;
        color: #ffffff !important;
        border-color: #9ca3af !important;
    }

.cc-link {
    color: #60a5fa !important;
    text-decoration: underline !important;
}

    .cc-link:hover {
        color: #93c5fd !important;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .cc-window.cc-banner {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    .cc-compliance {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .cc-btn {
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 8px !important;
    }
}

/* Cookie preferences modal styles */
.cookie-preferences-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    font-family: 'Poppins', sans-serif;
}

.cookie-preferences-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

    .cookie-category h4 {
        margin: 0 0 10px 0;
        color: #1e3a8a;
        font-weight: 600;
    }

.cookie-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

    .toggle-switch.active {
        background-color: #10b981;
    }

    .toggle-switch::before {
        content: '';
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s;
    }

    .toggle-switch.active::before {
        transform: translateX(26px);
    }

    .toggle-switch.disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.cookie-preferences-close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
}

    .cookie-preferences-close:hover {
        color: #1f2937;
    }

.cookie-preferences-content {
    position: relative;
}

    .cookie-preferences-content h3 {
        margin: 0 0 10px 0;
        color: #1e3a8a;
        font-size: 24px;
        font-weight: 600;
    }

    .cookie-preferences-content > p {
        color: #4b5563;
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.6;
    }

.cookie-category p {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.cookie-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.cookie-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-primary {
    background-color: #10b981;
    color: #ffffff;
}

    .cookie-btn-primary:hover {
        background-color: #059669;
    }

.cookie-btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

    .cookie-btn-secondary:hover {
        background-color: #e5e7eb;
    }

/* Mobile responsive for preferences modal */
@media (max-width: 576px) {
    .cookie-preferences-content {
        margin: 10% auto;
        padding: 20px;
        width: 95%;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}
