.hala-consent {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at top left, rgba(36, 84, 214, 0.20), transparent 34%),
        rgba(7, 17, 38, 0.42);
    pointer-events: auto;
    backdrop-filter: blur(10px) saturate(1.1);
}

.hala-consent__panel {
    width: min(860px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px 20px;
    align-items: start;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(248, 250, 252, 0.76));
    color: #0f172a;
    box-shadow: 0 28px 90px rgba(2, 8, 23, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    pointer-events: auto;
    backdrop-filter: blur(24px) saturate(1.25);
}

.hala-consent__header {
    grid-row: span 2;
}

.hala-consent__mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #071126;
    color: #ffffff;
    font-weight: 900;
    letter-spacing: 0;
}

.hala-consent__eyebrow {
    margin-bottom: 3px;
    color: #2454d6;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.hala-consent__copy h2 {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
}

.hala-consent__copy p {
    margin: 0;
    max-width: 650px;
    color: #475569;
    font-size: 15px;
    line-height: 1.45;
}

.hala-consent__policy {
    display: inline-block;
    margin-top: 7px;
    color: #2454d6;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.hala-consent__policy:hover {
    text-decoration: underline;
}

.hala-consent__settings {
    grid-column: 2;
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

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

.hala-consent__row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 13px 14px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.70);
}

.hala-consent__row span {
    display: grid;
    gap: 2px;
}

.hala-consent__row small {
    color: #64748b;
    font-size: 12px;
}

.hala-consent__switch {
    position: relative;
    width: 46px;
    height: 26px;
    flex: 0 0 auto;
}

.hala-consent__switch input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.hala-consent__switch span {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #cbd5e1;
    transition: background 160ms ease;
}

.hala-consent__switch span::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.22);
    transition: transform 160ms ease;
}

.hala-consent__switch input:checked + span {
    background: #2454d6;
}

.hala-consent__switch input:checked + span::after {
    transform: translateX(20px);
}

.hala-consent__switch input:focus-visible + span {
    outline: 3px solid rgba(36, 84, 214, 0.25);
    outline-offset: 2px;
}

.hala-consent__switch.is-disabled {
    opacity: 0.72;
}

.hala-consent__actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.hala-consent__btn {
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    cursor: pointer;
    transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.hala-consent__btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.hala-consent__btn:focus-visible {
    outline: 3px solid rgba(36, 84, 214, 0.25);
    outline-offset: 2px;
}

.hala-consent__btn:active {
    transform: translateY(1px);
}

.hala-consent__btn--primary {
    border-color: #2454d6;
    background: #2454d6;
    color: #ffffff;
}

.hala-consent__btn--primary:hover {
    border-color: #1745bd;
    background: #1745bd;
}

.hala-consent__btn--ghost {
    border-color: transparent;
    background: transparent;
    color: #475569;
}

.hala-consent__btn--ghost:hover {
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #0f172a;
}

@media (max-width: 760px) {
    .hala-consent {
        padding: 14px;
    }

    .hala-consent__panel {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px;
        max-height: calc(100dvh - 28px);
        overflow: auto;
    }

    .hala-consent__header {
        display: none;
    }

    .hala-consent__settings,
    .hala-consent__actions {
        grid-column: 1;
    }

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

    .hala-consent__btn {
        flex: 1 1 auto;
    }

    .hala-consent__btn--primary {
        flex-basis: 100%;
    }
}
