.habab-callback-button {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 10px 19px;
    background: #5b34bd;
    color: #fff;
    font: 650 14px/1.35 system-ui, sans-serif;
    cursor: pointer;
}

#habab-callback-open {
    position: fixed;
    z-index: 1000;
    inset-inline-end: max(16px, env(safe-area-inset-right));
    inset-block-end: max(16px, env(safe-area-inset-bottom));
    max-width: calc(100vw - 32px);
    box-shadow: 0 4px 16px #21104d33;
}

#habab-callback-open[hidden], #habab-callback-form[hidden] { display: none; }
.habab-callback-button:hover:not(:disabled) { background: #48289d; }
.habab-callback-button:disabled { opacity: .7; cursor: wait; }

.habab-callback-dialog {
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(420px, calc(100% - 32px));
    max-height: calc(100% - 32px);
    overflow: auto;
    padding: 26px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: #211b2e;
    box-shadow: 0 16px 70px #21104d3b;
    font: 400 16px/1.5 system-ui, sans-serif;
    text-align: start;
}

.habab-callback-dialog:not([open]) { display: none; }
.habab-callback-dialog::backdrop { background: #21182b70; }
.habab-callback-dialog h2 {
    margin: 0 48px 18px 0;
    color: inherit;
    font: 700 24px/1.2 system-ui, sans-serif;
}

.habab-callback-close {
    position: absolute;
    inset: 11px 11px auto auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: inherit;
    cursor: pointer;
}

.habab-callback-close::before, .habab-callback-close::after {
    content: '';
    position: absolute;
    top: 21px;
    left: 14px;
    width: 16px;
    height: 2px;
    background: currentColor;
    transform: rotate(45deg);
}

.habab-callback-close::after { transform: rotate(-45deg); }
.habab-callback-close:hover { background: #f1ecfa; }

#habab-callback-form { display: grid; gap: 12px; margin: 0; }
#habab-callback-form > label { font-weight: 650; }
#habab-callback-phone {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    border: 1px solid #827790;
    border-radius: 8px;
    padding: 9px 12px;
    background: #fff;
    color: #211b2e;
    font: inherit;
}

#habab-callback-phone::placeholder { color: #655b70; }
#habab-callback-phone[aria-invalid="true"] { border-color: #9c2029; }
.habab-callback-consent { color: #453e4f; font-size: 13px; }
.habab-callback-consent label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
#habab-callback-consent { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; accent-color: #5b34bd; }
.habab-callback-consent a { margin-inline-start: 25px; }
.habab-callback-dialog a { color: #4a2b9d; text-decoration: underline; }
.habab-callback-submit { margin-top: 3px; border-radius: 8px; }
.habab-callback-status:not(:empty) { margin-top: 12px; }
.habab-callback-status[data-state="error"] { color: #9c2029; }
.habab-callback-button:focus-visible, .habab-callback-dialog :focus-visible {
    outline: 2px solid #5b34bd;
    outline-offset: 3px;
}
