/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(7, 59, 86, 0.98) 0%, rgba(7, 59, 86, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 24px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 2px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-consent-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

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

.cookie-consent-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--white);
}

.cookie-consent-text {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 8px;
}

.cookie-consent-text a {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.2s;
}

.cookie-consent-text a:hover {
    opacity: 0.8;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.cookie-btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    white-space: nowrap;
    font-family: var(--font-primary);
}

.cookie-btn-accept {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.cookie-btn-accept:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.cookie-btn-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

.cookie-btn-settings {
    background: transparent;
    color: var(--white);
    border: 2px solid transparent;
    padding: 12px 20px;
    text-decoration: underline;
}

.cookie-btn-settings:hover {
    opacity: 0.8;
}

/* Cookie Settings Modal */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.cookie-settings-content {
    background: var(--white);
    border-radius: 16px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cookie-settings-header {
    padding: 32px 32px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.cookie-settings-header h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.cookie-settings-header p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

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

.cookie-category {
    padding: 20px 0;
    border-bottom: 1px solid var(--gray-200);
}

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

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-category-required {
    font-size: 12px;
    color: var(--gray-500);
    font-weight: 500;
    font-style: italic;
}

.cookie-category-description {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    width: 52px;
    height: 28px;
}

.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: var(--gray-300);
    transition: 0.3s;
    border-radius: 28px;
}

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

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--primary-color);
}

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

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

.cookie-settings-footer {
    padding: 24px 32px;
    border-top: 1px solid var(--gray-200);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.cookie-settings-footer .cookie-btn {
    padding: 14px 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

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

    .cookie-settings-content {
        max-height: 95vh;
    }

    .cookie-settings-header,
    .cookie-settings-body,
    .cookie-settings-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cookie-settings-footer {
        flex-direction: column;
    }

    .cookie-settings-footer .cookie-btn {
        width: 100%;
    }
}
