.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(2, 6, 23, 0.95));
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 -8px 30px rgba(2, 6, 23, 0.55);
    z-index: 1200;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner--hidden {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none;
}
.cookie-banner__content {
    flex: 1;
    min-width: 230px;
}
.cookie-banner__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}
.cookie-banner__text {
    margin: 0.2rem 0 0;
    font-size: 0.95rem;
    color: rgba(248, 250, 252, 0.82);
}
.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.cookie-banner__actions button {
    border-radius: 999px;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.cookie-banner__actions .cookie-banner__btn--primary {
    background-color: #2f7d64;
    color: #fff;
    border-color: transparent;
}
.cookie-banner__actions .cookie-banner__btn--primary:hover,
.cookie-banner__actions .cookie-banner__btn--primary:focus-visible {
    background-color: #1c5d44;
}
.cookie-banner__actions .cookie-banner__btn--secondary {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: #f8fafc;
}
.cookie-banner__actions .cookie-banner__btn--secondary:hover,
.cookie-banner__actions .cookie-banner__btn--secondary:focus-visible {
    border-color: #fff;
}
.cookie-banner__actions .cookie-banner__btn--link {
    background: none;
    border: none;
    color: rgba(248, 250, 252, 0.9);
    text-decoration: underline;
    padding: 0.4rem 0.5rem;
}
.cookie-banner__actions button:focus-visible {
    outline: 2px solid #e2e8f0;
    outline-offset: 2px;
}
.cookie-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 6, 23, 0.75);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1250;
    padding: 1rem;
}
.cookie-modal--open {
    opacity: 1;
    pointer-events: auto;
}
.cookie-modal__panel {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    max-width: 520px;
    width: min(100%, 520px);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.25);
}
.cookie-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}
.cookie-modal__eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    color: rgba(15, 23, 42, 0.6);
    margin: 0 0 0.15rem;
}
.cookie-modal__header h2 {
    margin: 0;
    font-size: 1.5rem;
}
.cookie-modal__intro {
    margin: 0 0 1.5rem;
    color: rgba(15, 23, 42, 0.8);
    font-size: 0.95rem;
    line-height: 1.4;
}
.cookie-modal__categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cookie-modal__category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.cookie-modal__category:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cookie-modal__category-info {
    flex: 1;
}
.cookie-modal__category-title {
    margin: 0;
    font-weight: 600;
}
.cookie-modal__category-desc {
    margin: 0.15rem 0 0;
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.7);
}
.cookie-toggle {
    display: inline-flex;
    align-items: center;
    position: relative;
}
.cookie-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.cookie-toggle__switch {
    width: 46px;
    height: 26px;
    background: rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
}
.cookie-toggle__switch::after {
    content: '';
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
}
.cookie-toggle input:checked + .cookie-toggle__switch {
    background: #2f7d64;
}
.cookie-toggle input:checked + .cookie-toggle__switch::after {
    transform: translateX(20px);
}
.cookie-modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    color: rgba(15, 23, 42, 0.6);
}
.cookie-modal__close:hover,
.cookie-modal__close:focus-visible {
    color: #0f172a;
}
.cookie-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}
body.cookie-consent-modal-open {
    overflow: hidden;
}
.cookie-footer {
    background: #0b1220;
    color: rgba(255, 255, 255, 0.85);
    padding: 1.5rem 0;
    margin-top: 2rem;
}
.cookie-footer .footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.cookie-footer a,
.cookie-footer button {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}
.cookie-footer button:focus-visible,
.cookie-footer a:focus-visible {
    outline: 2px solid #dcdcdc;
    outline-offset: 2px;
}
.cookie-footer button:hover,
.cookie-footer a:hover {
    color: #fff;
}
@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-banner__actions {
        width: 100%;
        justify-content: flex-start;
    }
    .cookie-modal__category {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-modal__footer {
        justify-content: flex-start;
    }
}
