.visa-assistant-launcher {
    position: fixed;
    z-index: 1000;
    inset-inline-end: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    min-width: 56px;
    min-height: 56px;
    padding: 12px 18px;
    border: 0;
    border-radius: 999px;
    background: #164e63;
    color: #fff;
    font: inherit;
    font-weight: 700;
    box-shadow: 0 6px 22px #0f172a44;
    cursor: pointer;
}
.visa-assistant-panel {
    position: fixed;
    z-index: 1001;
    inset-inline-end: 18px;
    bottom: calc(86px + env(safe-area-inset-bottom));
    width: min(390px, calc(100vw - 28px));
    height: min(620px, calc(100dvh - 112px));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #d4e0e7;
    border-radius: 18px;
    background: #fff;
    color: #142b3a;
    box-shadow: 0 16px 50px #0f172a40;
    font-family: inherit;
}
.visa-assistant-panel[hidden] { display: none; }
.visa-assistant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #164e63;
    color: #fff;
}
.visa-assistant-header h2 { margin: 0; font-size: 1.05rem; }
.visa-assistant-close {
    min-width: 40px;
    min-height: 40px;
    border: 1px solid #ffffff77;
    border-radius: 10px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 1.2rem;
    cursor: pointer;
}
.visa-assistant-log {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    padding: 14px;
}
.visa-assistant-message {
    max-width: 94%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef5f7;
    line-height: 1.55;
    overflow-wrap: anywhere;
}
.visa-assistant-message[data-from="user"] {
    align-self: flex-end;
    background: #e4f1ec;
}
.visa-assistant-quick-replies {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 14px 12px;
}
.visa-assistant-quick-replies button,
.visa-assistant-form button {
    min-height: 44px;
    border: 1px solid #b9cdd5;
    border-radius: 10px;
    background: #fff;
    color: #164e63;
    font: inherit;
    cursor: pointer;
}
.visa-assistant-form {
    display: flex;
    gap: 8px;
    padding: 10px 14px max(12px, env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
}
.visa-assistant-form input {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #bccbd5;
    border-radius: 9px;
    font: inherit;
}
.visa-assistant-form button { padding: 0 14px; background: #164e63; color: white; }
@media (max-width: 600px) {
    .visa-assistant-launcher { inset-inline-end: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); }
    .visa-assistant-panel {
        inset-inline: 0;
        bottom: 0;
        width: 100vw;
        height: min(78dvh, 700px);
        border-radius: 18px 18px 0 0;
        padding-bottom: env(safe-area-inset-bottom);
    }
}
