/* Cookie Consent Styles */

/* Cookie Icon Button */
#cookie-consent-icon {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 9999;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0074c1;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0;
}

#cookie-consent-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#cookie-consent-icon:active {
    transform: scale(0.95);
}

/* Cookie Consent Banner */
#cookie-consent-banner {
    position: fixed;
    left: 16px;
    bottom: 80px;
    z-index: 10000;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 24px;
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#cookie-consent-banner.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

#cookie-consent-banner h3 {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1e1f29;
}

#cookie-consent-banner p {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4e69;
}

#cookie-consent-banner .cookie-consent-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

#cookie-consent-banner .cookie-consent-btn {
    flex: 1;
    min-width: 100px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

#cookie-consent-banner .cookie-consent-btn:active {
    transform: scale(0.98);
}

#cookie-consent-accept {
    background: #0074c1;
    color: #fff;
}

#cookie-consent-accept:hover {
    background: #005a9a;
}

#cookie-consent-reject {
    background: #e0e0e0;
    color: #333;
}

#cookie-consent-reject:hover {
    background: #d0d0d0;
}

#cookie-consent-close {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

#cookie-consent-close:hover {
    background: #f5f5f5;
}

/* Dark theme support */
html.dark-theme #cookie-consent-banner,
body.dark-theme #cookie-consent-banner {
    background: #2a2d40;
    color: #fff;
}

html.dark-theme #cookie-consent-banner h3,
body.dark-theme #cookie-consent-banner h3 {
    color: #fff;
}

html.dark-theme #cookie-consent-banner p,
body.dark-theme #cookie-consent-banner p {
    color: #c7cffc;
}

html.dark-theme #cookie-consent-reject,
body.dark-theme #cookie-consent-reject {
    background: #4a4e69;
    color: #fff;
}

html.dark-theme #cookie-consent-reject:hover,
body.dark-theme #cookie-consent-reject:hover {
    background: #5a5e79;
}

html.dark-theme #cookie-consent-close,
body.dark-theme #cookie-consent-close {
    border-color: #4a4e69;
    color: #c7cffc;
}

html.dark-theme #cookie-consent-close:hover,
body.dark-theme #cookie-consent-close:hover {
    background: #3a3d50;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
    #cookie-consent-banner {
        left: 16px;
        right: 16px;
        max-width: none;
        bottom: 80px;
    }

    #cookie-consent-icon {
        left: 16px;
        bottom: 16px;
    }
}

/* RTL support - keep button on left side */
html[dir="rtl"] #cookie-consent-icon {
    left: 16px;
    right: auto;
}
