.cookie-consent {
    position: fixed;
    inset: auto 24px 24px 24px;
    z-index: 9998;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

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

.cookie-consent__panel {
    width: min(100%, 1040px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(26, 24, 24, 0.96);
    color: #fff;
    box-shadow: 0 18px 52px rgba(0, 0, 0, 0.28);
    pointer-events: auto;
}

.cookie-consent__content {
    min-width: 0;
}

.cookie-consent__eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #ffd84d;
}

.cookie-consent__title {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    color: #fff;
}

.cookie-consent__text {
    margin: 0;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.82);
}

.cookie-consent__policy {
    display: inline-flex;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd84d;
    text-decoration: none;
}

.cookie-consent__policy:hover {
    color: #fff;
    text-decoration: underline;
}

.cookie-consent__settings {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding-top: 2px;
}

.cookie-consent__settings[hidden] {
    display: none;
}

.cookie-consent__toggle {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 0;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.cookie-consent__toggle input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ffd84d;
}

.cookie-consent__toggle strong,
.cookie-consent__toggle small {
    display: block;
}

.cookie-consent__toggle strong {
    font-size: 14px;
    line-height: 1.35;
}

.cookie-consent__toggle small {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

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

.cookie-consent__button {
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__button--primary {
    background: #ffd84d;
    color: #1f1d1d;
}

.cookie-consent__button--primary:hover {
    background: #fff;
}

.cookie-consent__button--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.26);
    color: #fff;
}

.cookie-consent__button--ghost:hover {
    border-color: #ffd84d;
    color: #ffd84d;
}

@media (max-width: 820px) {
    .cookie-consent {
        inset: auto 12px 12px 12px;
    }

    .cookie-consent__panel {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px;
    }

    .cookie-consent__settings {
        grid-template-columns: 1fr;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__button {
        flex: 1 1 140px;
    }
}
