/* Cookie Consent Banner Styles */

.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1e293b;
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 300px;
}

.cookie-consent-text p {
    margin: 0 0 8px 0;
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent-text p:first-child {
    font-size: 16px;
    margin-bottom: 12px;
}

.cookie-consent-text a {
    color: #60a5fa;
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: #93c5fd;
}

.cookie-consent-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #2563eb;
    color: #ffffff;
}

.cookie-btn-accept:hover {
    background: #1e40af;
    transform: translateY(-1px);
}

.cookie-btn-decline {
    background: #64748b;
    color: #ffffff;
}

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

.cookie-btn-settings {
    background: transparent;
    color: #ffffff;
    border: 1px solid #475569;
}

.cookie-btn-settings:hover {
    background: #334155;
    border-color: #64748b;
}

/* Cookie Settings Modal */

.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    padding: 20px;
}

.cookie-settings-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e2e8f0;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 24px;
    color: #1e293b;
}

.cookie-close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-close-btn:hover {
    color: #1e293b;
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

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

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

.cookie-category-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1e293b;
}

.cookie-category p {
    margin: 0;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Toggle Switch */

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

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

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

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

.cookie-switch input:checked + .cookie-slider {
    background-color: #2563eb;
}

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

.cookie-switch input:disabled + .cookie-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.cookie-settings-footer {
    padding: 16px 24px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

/* Mobile Responsive */

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 16px;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-consent-text {
        min-width: 100%;
    }

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

    .cookie-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-settings-modal {
        padding: 0;
    }

    .cookie-settings-content {
        border-radius: 0;
        max-height: 100vh;
    }
}
