.cookie-consent {
    --cc-primary: #0563c1;
    --cc-primary-dark: #022f60;
    --cc-text: #0f172a;
    --cc-muted: #64748b;
    --cc-border: rgba(148, 163, 184, 0.28);
    --cc-surface: #ffffff;
    --cc-shadow: 0 24px 60px rgba(2, 6, 23, 0.18);
    font-family: 'Exo 2', Arial, sans-serif;
}

.cookie-consent__banner,
.cookie-consent__modal {
    position: fixed;
    z-index: 12000;
}

.cookie-consent__banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 920px;
    margin: 0 auto;
    padding: 18px 20px;
    border: 1px solid var(--cc-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: var(--cc-shadow);
    display: none;
}

.cookie-consent__banner.is-visible {
    display: block;
}

.cookie-consent__banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-consent__copy {
    flex: 1 1 280px;
    min-width: 0;
}

.cookie-consent__title {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--cc-text);
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--cc-muted);
}

.cookie-consent__text a {
    color: var(--cc-primary);
    font-weight: 700;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent__btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    font-size: 0.8125rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.cookie-consent__btn--primary {
    background: var(--cc-primary);
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    background: var(--cc-primary-dark);
}

.cookie-consent__btn--secondary {
    background: #fff;
    border-color: var(--cc-border);
    color: var(--cc-text);
}

.cookie-consent__btn--ghost {
    background: transparent;
    color: var(--cc-muted);
}

.cookie-consent__fab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 11990;
    display: none;
    align-items: center;
    gap: 8px;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--cc-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.12);
    color: var(--cc-text);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
}

.cookie-consent__fab.is-visible {
    display: inline-flex;
}

.cookie-consent__modal {
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 6, 23, 0.55);
}

.cookie-consent__modal.is-visible {
    display: flex;
}

.cookie-consent__dialog {
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 22px;
    border-radius: 18px;
    background: var(--cc-surface);
    box-shadow: var(--cc-shadow);
}

.cookie-consent__dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.cookie-consent__dialog-head h2 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--cc-text);
}

.cookie-consent__close {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--cc-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-consent__category {
    padding: 14px 0;
    border-top: 1px solid var(--cc-border);
}

.cookie-consent__category:first-of-type {
    border-top: 0;
}

.cookie-consent__category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-consent__category-head h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--cc-text);
}

.cookie-consent__category p {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: var(--cc-muted);
}

.cookie-consent__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(5, 99, 193, 0.1);
    color: var(--cc-primary);
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cookie-consent__switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-consent__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent__switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 0.2s ease;
    cursor: pointer;
}

.cookie-consent__switch span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fff;
    transition: transform 0.2s ease;
}

.cookie-consent__switch input:checked + span {
    background: var(--cc-primary);
}

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

.cookie-consent__switch input:disabled + span {
    opacity: 0.65;
    cursor: not-allowed;
}

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

@media (max-width: 640px) {
    .cookie-consent__banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 16px;
    }

    .cookie-consent__actions,
    .cookie-consent__dialog-actions {
        width: 100%;
    }

    .cookie-consent__actions .cookie-consent__btn,
    .cookie-consent__dialog-actions .cookie-consent__btn {
        flex: 1 1 calc(50% - 5px);
        justify-content: center;
    }
}
