.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 1rem 1.25rem;
    background: var(--espresso-deep, #272029);
    color: var(--cream, #FDFAFB);
    border-top: 1px solid rgba(253, 250, 251, 0.12);
    box-shadow: 0 -8px 32px rgba(39, 32, 41, 0.28);
}

.cookie-consent--hidden {
    display: none;
}

.cookie-consent__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

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

.cookie-consent__title {
    margin: 0 0 0.35rem;
    font-family: var(--headline, Georgia, serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--cream, #FDFAFB);
}

.cookie-consent__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: rgba(253, 250, 251, 0.78);
}

.cookie-consent__links {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.cookie-consent__links a {
    color: var(--cream, #FDFAFB);
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.cookie-consent__btn {
    border: 1px solid rgba(253, 250, 251, 0.35);
    background: transparent;
    color: var(--cream, #FDFAFB);
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 999px;
}

.cookie-consent__btn:hover {
    background: rgba(253, 250, 251, 0.08);
}

.cookie-consent__btn--primary {
    background: var(--cream, #FDFAFB);
    color: var(--espresso, #322A33);
    border-color: var(--cream, #FDFAFB);
}

.cookie-consent__btn--primary:hover {
    background: #efe4da;
}

.cookie-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(39, 32, 41, 0.55);
}

.cookie-consent-modal--hidden {
    display: none;
}

body.cookie-consent-modal-open {
    overflow: hidden;
}

.cookie-consent-modal__panel {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow: auto;
    background: var(--cream, #FDFAFB);
    color: var(--ink, #3D2B3E);
    padding: 1.5rem;
    border-radius: 12px;
}

.cookie-consent-modal__title {
    margin: 0 0 0.75rem;
    font-family: var(--headline, Georgia, serif);
    font-size: 1.2rem;
    font-weight: 600;
}

.cookie-consent-modal__intro {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--muted, #8C8290);
}

.cookie-consent-category {
    border-top: 1px solid var(--line, rgba(87, 76, 90, 0.14));
    padding: 0.85rem 0;
}

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

.cookie-consent-category__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-consent-category__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 500;
}

.cookie-consent-category__desc {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--muted, #8C8290);
}

.cookie-consent-category__badge {
    font-size: 0.75rem;
    color: var(--muted, #8C8290);
    white-space: nowrap;
}

.cookie-consent-switch {
    position: relative;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.cookie-consent-switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.cookie-consent-switch__track {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: #d7cfd4;
    transition: background 0.2s ease;
}

.cookie-consent-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}

.cookie-consent-switch input:checked + .cookie-consent-switch__track {
    background: var(--espresso, #322A33);
}

.cookie-consent-switch input:checked + .cookie-consent-switch__track::after {
    transform: translateX(18px);
}

.cookie-consent-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

.cookie-consent-modal__actions .cookie-consent__btn {
    color: var(--espresso, #322A33);
    border-color: rgba(50, 42, 51, 0.25);
}

.cookie-consent-modal__actions .cookie-consent__btn--primary {
    background: var(--espresso, #322A33);
    color: var(--cream, #FDFAFB);
    border-color: var(--espresso, #322A33);
}

.footer-cookie-settings {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-decoration: none;
}

.footer-cookie-settings:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .cookie-consent__actions {
        width: 100%;
    }

    .cookie-consent__btn {
        flex: 1 1 auto;
        text-align: center;
    }
}
