/* Cookie banner — fixed bottom card. Token-based so it inherits whichever theme
   the host installed (theme-telegram, theme-cool, theme-sepia, theme-dark).
   Served from any host as _content/LearnWordsAI.SharedUI/css/cookie-banner.css. */

.cookie-banner {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 9000;
    max-width: 720px;
    margin: 0 auto;
    background: rgba(var(--on-surface-rgb), 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(var(--on-surface-rgb), 0.12);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    color: var(--on-surface);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-banner__title {
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 15px;
}

.cookie-banner__body {
    margin-bottom: 12px;
    color: rgba(var(--on-surface-rgb), 0.82);
}

.cookie-banner__body a {
    color: var(--accent);
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cookie-banner__actions button {
    flex: 1 1 0;
    min-width: 120px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(var(--on-surface-rgb), 0.18);
    background: transparent;
    color: var(--on-surface);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 120ms ease, border-color 120ms ease;
}

.cookie-banner__actions button:hover {
    background: rgba(var(--on-surface-rgb), 0.06);
}

.cookie-banner__actions .cookie-banner__btn-accept {
    background: var(--accent);
    color: var(--on-accent);
    border-color: transparent;
}

.cookie-banner__actions .cookie-banner__btn-accept:hover {
    filter: brightness(1.08);
    background: var(--accent);
}

.cookie-banner__customize {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(var(--on-surface-rgb), 0.04);
    border-radius: 10px;
}

.cookie-banner__row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.cookie-banner__row-text {
    flex: 1;
}

.cookie-banner__row-title {
    font-weight: 500;
    margin-bottom: 2px;
}

.cookie-banner__row-desc {
    font-size: 12.5px;
    color: rgba(var(--on-surface-rgb), 0.7);
}

.cookie-banner__row input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.cookie-banner__row input[type="checkbox"][disabled] {
    opacity: 0.5;
}

.cookie-banner__row--locked .cookie-banner__row-title::after {
    content: " ✓";
    color: var(--accent);
}

.cookie-banner__toggle-link {
    background: none;
    border: none;
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    margin-top: 4px;
}
