#cookie-consent-root [hidden] {
    display: none !important;
}

.cookie-consent-overlay {
    position: fixed;
    inset: 0;
    z-index: 9997;
    background: rgba(10, 16, 25, 0.55);
    backdrop-filter: blur(2px);
}

.cookie-consent-banner {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: min(960px, calc(100vw - 24px));
    z-index: 9998;
    border-radius: 14px;
    padding: 20px;
    color: #f7f7f9;
    background: linear-gradient(135deg, #1f2732, #121921);
    box-shadow: 0 14px 38px rgba(9, 13, 18, 0.45);
}

.cookie-consent-banner h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
    color: #ffffff;
}

.cookie-consent-banner p {
    margin: 0;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-consent-links {
    margin-top: 10px !important;
    font-size: 14px;
}

.cookie-consent-links a {
    color: #d8ecff;
    text-decoration: underline;
}

.cookie-consent-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cookie-btn:hover {
    transform: translateY(-1px);
}

.cookie-btn-light {
    color: #0f1720;
    background: #e8edf2;
}

.cookie-btn-primary {
    color: #ffffff;
    background: #0e7490;
}

.cookie-btn-dark {
    color: #ffffff;
    background: #19212c;
}

.cookie-consent-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(680px, calc(100vw - 24px));
    max-height: calc(100vh - 36px);
    overflow: auto;
    z-index: 9999;
    border-radius: 14px;
    padding: 22px;
    color: #f2f5f8;
    background: #121a23;
    box-shadow: 0 14px 46px rgba(6, 10, 15, 0.5);
}

.cookie-consent-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.cookie-consent-modal-header h3 {
    margin: 0;
    color: #ffffff;
}

.cookie-close {
    border: 0;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    color: #e8edf2;
    background: #23303f;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent-modal-text {
    margin: 14px 0 12px;
    color: rgba(255, 255, 255, 0.88);
}

.cookie-consent-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px;
}

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

.cookie-consent-category-desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-switch {
    position: relative;
    width: 48px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.cookie-switch span {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #6b7280;
    display: block;
    transition: background-color 0.2s ease;
    position: relative;
}

.cookie-switch span::before {
    content: "";
    position: absolute;
    width: 22px;
    height: 22px;
    left: 3px;
    top: 3px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 0.2s ease;
}

.cookie-switch input:checked + span {
    background: #0e7490;
}

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

.cookie-switch input:disabled + span {
    background: #1f8f74;
    opacity: 0.8;
}

.cookie-consent-actions-modal {
    margin-top: 16px;
}

.cookie-settings-fab {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 9996;
    border: 0;
    border-radius: 999px;
    padding: 10px 13px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: #0e7490;
    box-shadow: 0 8px 22px rgba(14, 116, 144, 0.35);
    cursor: pointer;
}

.cookie-footer-trigger {
    display: inline-flex;
    margin-left: 12px;
    border: 0;
    background: transparent;
    text-decoration: underline;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

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

    .cookie-consent-banner h2 {
        font-size: 18px;
    }

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

    .cookie-btn {
        width: 100%;
    }

    .cookie-consent-modal {
        padding: 16px;
    }
}
