/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    padding: 20px 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #1a73e8;
}

.cookie-consent-banner.show {
    transform: translateY(0);
}

.cookie-consent-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    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: 600;
    color: #202124;
    margin-bottom: 8px;
    font-family: 'HarmonyOS_Sans', sans-serif;
}

.cookie-consent-text {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.6;
    margin-bottom: 0;
}

.cookie-consent-text a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 500;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-consent-btn {
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-family: 'HarmonyOS_Sans', sans-serif;
    white-space: nowrap;
    outline: none;
}

.cookie-consent-btn:focus {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.cookie-consent-btn-accept {
    background: #1a73e8;
    color: white;
    box-shadow: 0 1px 3px rgba(26, 115, 232, 0.3);
}

.cookie-consent-btn-accept:hover {
    background: #1557b0;
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.4);
}

.cookie-consent-btn-reject {
    background: #f1f3f4;
    color: #5f6368;
    border: 1px solid #dadce0;
}

.cookie-consent-btn-reject:hover {
    background: #e8eaed;
    border-color: #bdc1c6;
}

.cookie-consent-btn-settings {
    background: transparent;
    color: #1a73e8;
    padding: 10px 16px;
    text-decoration: underline;
}

.cookie-consent-btn-settings:hover {
    background: rgba(26, 115, 232, 0.08);
    text-decoration: underline;
}

/* Cookie Icon */
.cookie-consent-icon {
    width: 40px;
    height: 40px;
    margin-right: 16px;
    flex-shrink: 0;
}

.cookie-consent-icon svg {
    width: 100%;
    height: 100%;
    fill: #1a73e8;
}

/* Settings Modal */
.cookie-settings-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-settings-modal.show {
    display: flex;
}

.cookie-settings-content {
    background: white;
    border-radius: 8px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cookie-settings-header {
    padding: 24px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-settings-header h2 {
    margin: 0;
    font-size: 20px;
    color: #202124;
    font-family: 'HarmonyOS_Sans', sans-serif;
}

.cookie-settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #5f6368;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.cookie-settings-close:hover {
    background: #f1f3f4;
}

.cookie-settings-body {
    padding: 24px;
}

.cookie-category {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.cookie-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cookie-category-title {
    font-size: 16px;
    font-weight: 600;
    color: #202124;
    font-family: 'HarmonyOS_Sans', sans-serif;
}

.cookie-category-description {
    font-size: 14px;
    color: #5f6368;
    line-height: 1.6;
}

/* Toggle Switch */
.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.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: #dadce0;
    transition: 0.3s;
    border-radius: 24px;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: #1a73e8;
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(20px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-settings-footer {
    padding: 16px 24px;
    border-top: 1px solid #e8eaed;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .cookie-consent-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-consent-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
        text-align: center;
    }

    .cookie-consent-title {
        font-size: 16px;
    }

    .cookie-consent-text {
        font-size: 13px;
    }

    .cookie-settings-content {
        max-height: 95vh;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 16px 0;
    }

    .cookie-consent-container {
        padding: 0 16px;
    }

    .cookie-consent-icon {
        width: 32px;
        height: 32px;
    }
}

/* Animation for fade-out */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

.cookie-consent-banner.hide {
    animation: fadeOut 0.4s forwards;
}

