/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #243041;
    padding: 24px;
    box-shadow: 0 -10px 40px rgba(21, 31, 45, 0.12);
    border-top: 1px solid rgba(32, 41, 56, 0.08);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

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

.cookie-consent-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #1f2937;
}

.cookie-consent-title i {
    font-size: 24px;
    color: #2b4f7c;
}

.cookie-consent-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
    color: #5b6676;
}

.cookie-consent-text a {
    color: #2b4f7c;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(43, 79, 124, 0.35);
    transition: all 0.3s ease;
}

.cookie-consent-text a:hover {
    color: #203b5e;
    border-bottom-color: #203b5e;
}

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

.cookie-consent-btn {
    min-height: 44px;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
}

.cookie-consent-btn:focus {
    outline: 2px solid #2b4f7c;
    outline-offset: 2px;
}

.btn-accept {
    background: linear-gradient(135deg, #2b4f7c, #203b5e);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(32, 59, 94, 0.18);
}

.btn-accept:hover {
    background: linear-gradient(135deg, #31588a, #254568);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(32, 59, 94, 0.24);
}

.btn-reject {
    background: #eef2f6;
    color: #465264;
    box-shadow: 0 8px 18px rgba(21, 31, 45, 0.06);
}

.btn-reject:hover {
    background: #dde5ee;
    color: #243041;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(21, 31, 45, 0.09);
}

.btn-customize {
    background: transparent;
    color: #2b4f7c;
    border: 1px solid rgba(43, 79, 124, 0.24);
}

.btn-customize:hover {
    background: rgba(43, 79, 124, 0.08);
    border-color: rgba(43, 79, 124, 0.42);
    color: #203b5e;
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(32, 59, 94, 0.12);
}

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

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

.cookie-settings-content {
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    border: 1px solid rgba(32, 41, 56, 0.08);
    border-radius: 24px;
    max-width: 680px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.22);
}

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

.cookie-settings-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.cookie-settings-close {
    background: #f3f6f9;
    border: 1px solid #e3e9f0;
    font-size: 24px;
    cursor: pointer;
    color: #516072;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.cookie-settings-close:hover {
    background: #e8eef5;
    color: #243041;
    border-color: #d5dee8;
}

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

.cookie-category {
    margin-bottom: 16px;
    padding: 18px 18px 16px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(32, 41, 56, 0.08);
    box-shadow: 0 10px 24px rgba(20, 31, 46, 0.05);
}

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

.cookie-category-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cookie-category-description {
    font-size: 14px;
    color: #607082;
    line-height: 1.7;
    margin: 0;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 30px;
    flex-shrink: 0;
}

.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: #c9d2dd;
    transition: 0.25s ease;
    border-radius: 999px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.25s ease;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(17, 24, 39, 0.15);
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background: linear-gradient(135deg, #2b4f7c, #203b5e);
}

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

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

.cookie-settings-footer {
    padding: 20px 24px 24px;
    border-top: 1px solid #e5eaf0;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: rgba(247, 250, 252, 0.86);
}

.cookie-settings-footer .cookie-consent-btn {
    min-width: 180px;
}

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

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

    .cookie-consent-btn {
        flex: 1;
        text-align: center;
    }

    .cookie-settings-content {
        margin: 20px;
    }

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

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

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

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }

    .cookie-consent-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}
