.cookie-consent,
.cookie-consent * {
    box-sizing: border-box;
}

.cookie-consent {
    position: fixed;
    inset: auto 18px 18px auto;
    z-index: 9999;
    display: none;
    width: min(620px, calc(100vw - 36px));
    max-width: calc(100vw - 36px);
    color: #f7f4ee;
    overflow-wrap: break-word;
}

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

.cookie-consent__body {
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    background: rgba(16,20,24,0.97);
    box-shadow: 0 22px 65px rgba(0,0,0,0.38);
    padding: 18px;
    max-height: min(82vh, 720px);
    overflow-y: auto;
    backdrop-filter: blur(16px);
}

.cookie-consent__title {
    display: block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 850;
}

.cookie-consent__text {
    margin: 0 0 14px;
    color: #b8b0a4;
    font-size: 0.92rem;
    line-height: 1.5;
    max-width: 100%;
}

.cookie-consent__choices {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.cookie-consent__option {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    min-height: 68px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 12px;
    background: rgba(255,255,255,0.045);
}

.cookie-consent__option-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.cookie-consent__option-copy strong {
    color: #fff;
    font-size: 0.94rem;
    line-height: 1.25;
}

.cookie-consent__option-copy span {
    color: #b8b0a4;
    font-size: 0.84rem;
    line-height: 1.4;
}

.cookie-consent__option.is-disabled {
    opacity: 0.7;
}

.cookie-consent__toggle {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 26px;
    flex: 0 0 auto;
}

.cookie-consent__toggle input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.cookie-consent__toggle span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: rgba(255,255,255,0.16);
    transition: background 0.2s ease;
}

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

.cookie-consent__toggle input:checked + span {
    background: linear-gradient(135deg, #f3d487, #d8ad4f);
}

.cookie-consent__toggle input:checked + span::after {
    transform: translateX(18px);
    background: #17110a;
}

.cookie-consent__toggle input:disabled {
    cursor: not-allowed;
}

.cookie-consent__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.cookie-consent__button,
.footer-cookie-link,
.privacy-cookie-button {
    font: inherit;
}

.cookie-consent__button {
    min-height: 42px;
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.2;
    white-space: normal;
    cursor: pointer;
}

.cookie-consent__button--primary {
    border: 0;
    color: #17110a;
    background: linear-gradient(135deg, #f3d487, #d8ad4f);
}

.cookie-consent__button--secondary {
    border: 1px solid rgba(243,212,135,0.5);
    color: #f3d487;
    background: rgba(243,212,135,0.08);
}

.cookie-consent__button--ghost {
    border: 1px solid rgba(255,255,255,0.12);
    color: #f7f4ee;
    background: rgba(255,255,255,0.04);
}

.cookie-consent__link {
    display: inline-flex;
    margin-top: 12px;
    color: #f3d487;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
}

.footer-cookie-link {
    border: 0;
    padding: 0;
    color: #f3d487;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.privacy-cookie-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #17110a;
    background: linear-gradient(135deg, #f3d487, #d8ad4f);
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 680px) {
    .cookie-consent {
        inset: auto 10px 10px;
        width: auto;
        max-width: none;
    }

    .cookie-consent__body {
        padding: 12px;
        max-height: min(62vh, 520px);
    }

    .cookie-consent__option {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 8px;
        min-height: 50px;
        padding: 9px 10px;
    }

    .cookie-consent__title {
        margin-bottom: 4px;
        font-size: 1rem;
    }

    .cookie-consent__text {
        margin-bottom: 10px;
        font-size: 0.84rem;
        line-height: 1.4;
    }

    .cookie-consent__option-copy span {
        display: none;
    }

    .cookie-consent__choices {
        gap: 8px;
        margin-bottom: 10px;
    }

    .cookie-consent__actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .cookie-consent__button {
        min-height: 40px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .cookie-consent__button--primary {
        grid-column: 1 / -1;
    }

    .cookie-consent__link {
        margin-top: 8px;
    }
}
