.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: 24px;
    z-index: 100000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent__panel {
    width: min(920px, 100%);
    padding: 24px;
    border: 1px solid rgba(52, 72, 85, 0.16);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
    pointer-events: auto;
}

.cookie-consent__main h2 {
    margin: 0 0 8px;
    color: var(--black-2);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.cookie-consent__main p,
.cookie-consent__option p {
    margin: 0;
    color: var(--gray-2);
    font-size: 15px;
    line-height: 1.5;
}

.cookie-consent__main a {
    color: var(--black-2);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-consent__preferences {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.cookie-consent__option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(52, 72, 85, 0.14);
    border-radius: 8px;
    background: #fafafa;
}

.cookie-consent__option strong {
    display: block;
    margin-bottom: 4px;
    color: var(--black-2);
    font-size: 16px;
    font-weight: 600;
}

.cookie-consent__required {
    flex: 0 0 auto;
    color: var(--gray-2);
    font-size: 13px;
    white-space: nowrap;
}

.cookie-consent__option input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    accent-color: #344855;
}

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

.cookie-consent__btn {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cookie-consent__btn--primary {
    border: 1px solid #344855;
    background: #344855;
    color: #fff;
}

.cookie-consent__btn--primary:hover {
    border-color: #243542;
    background: #243542;
}

.cookie-consent__btn--ghost {
    border: 1px solid rgba(52, 72, 85, 0.28);
    background: #fff;
    color: #344855;
}

.cookie-consent__btn--ghost:hover {
    border-color: #344855;
}

html[lang="hy"] .cookie-consent__main h2,
html[lang="hy"] .cookie-consent__main p,
html[lang="hy"] .cookie-consent__option strong,
html[lang="hy"] .cookie-consent__option p,
html[lang="hy"] .cookie-consent__required,
html[lang="hy"] .cookie-consent__btn {
    font-family: "Noto Sans Armenian", "Kanit", sans-serif;
}

@media (max-width: 767px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
    }

    .cookie-consent__panel {
        max-height: calc(100vh - 24px);
        overflow: auto;
        padding: 18px;
    }

    .cookie-consent__main h2 {
        font-size: 21px;
    }

    .cookie-consent__option {
        align-items: flex-start;
        flex-direction: column;
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__btn {
        width: 100%;
    }
}
