/* =====================================================
   CHATBOT DE MEDICAMENTOS — Mobile-first, Gov-inspired
   ===================================================== */

/* ===== RESET & TOKENS ===== */
:root {
    --blue-900: #00306b;
    --blue-700: #004a99;
    --blue-500: #1a6fc4;
    --blue-300: #5fa8e8;
    --blue-100: #ddeeff;
    --blue-50:  #f0f6ff;

    --gray-900: #1a1d23;
    --gray-700: #3a3f4b;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f5f8;
    --gray-50:  #f8f9fb;

    --green-500: #22c55e;
    --red-500:   #ef4444;
    --amber-500: #f59e0b;

    --white: #ffffff;

    --radius-sm:  6px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  28px;
    --radius-full: 9999px;

    --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 14px rgba(0,0,0,.08);

    --font-body:  'DM Sans', system-ui, sans-serif;
    --font-mono:  'DM Mono', monospace;

    --header-h: 68px;
    --input-h:  80px;

    --anim-fast:   150ms;
    --anim-normal: 280ms;
    --anim-slow:   460ms;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    overscroll-behavior: none;
}

body {
    font-family: var(--font-body);
    background: var(--gray-100);
    color: var(--gray-900);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ===== APP SHELL ===== */
.app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
    max-width: 520px;
    margin: 0 auto;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

@media (min-width: 540px) {
    .app {
        height: 92dvh;
        margin: 4dvh auto;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-lg);
        border: 1px solid var(--gray-300);
    }

    body {
        background: linear-gradient(145deg, #e8f0fe 0%, #f0f6ff 50%, #e2eaf8 100%);
        background-attachment: fixed;
    }
}

/* ===== HEADER ===== */
.header {
    flex-shrink: 0;
    height: var(--header-h);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 18px;
    background: var(--blue-900);
    position: relative;
    z-index: 10;
}

.header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Logo + título empilhados no centro do header */
.header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    grid-column: 2;
}

.logo-wrap {
    flex-shrink: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5px 8px;
}

.logo-wrap img {
    height: 36px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

.header-titles {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.header-label {
    display: none;
}

.header-title {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    white-space: nowrap;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

/* ===== STATUS PILL ===== */
.nova-conversa {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    color: rgba(255,255,255,0.9);
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    z-index: 1;
    transition: background var(--anim-fast);
}
.nova-conversa:hover { background: rgba(255,255,255,0.2); }
@media (max-width: 420px) {
    .nova-conversa span { display: none; }
}

.status-pill {
    grid-row: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(4px);
    transition: background var(--anim-normal);
    grid-column: 3;
    justify-self: end;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber-500);
    transition: background var(--anim-normal);
    flex-shrink: 0;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.2);
}

.status-dot.online  {
    background: var(--green-500);
    box-shadow: 0 0 0 2px rgba(34,197,94,0.3);
    animation: pulse-green 2s infinite;
}
.status-dot.offline {
    background: var(--red-500);
    box-shadow: 0 0 0 2px rgba(239,68,68,0.3);
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.85); }
}

/* ===== CHAT AREA ===== */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: var(--gray-50);
}

/* ===== MESSAGES SCROLL ===== */
.messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-300) transparent;
}

.messages::-webkit-scrollbar        { width: 4px; }
.messages::-webkit-scrollbar-track  { background: transparent; }
.messages::-webkit-scrollbar-thumb  { background: var(--gray-300); border-radius: 2px; }

/* ===== MESSAGE ROWS ===== */
.message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 100%;
    animation: msg-in var(--anim-slow) var(--ease-spring) both;
}

.message.user  { flex-direction: row-reverse; }
.message.bot   { flex-direction: row; }

.message + .message.user { margin-top: 4px; }
.message + .message.bot  { margin-top: 4px; }
.message.user + .message.bot,
.message.bot  + .message.user { margin-top: 14px; }

@keyframes msg-in {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1);     }
}

/* ===== AVATAR ===== */
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--blue-100);
    object-fit: cover;
    background: var(--blue-50);
}

.message.bot.hide-avatar .avatar { visibility: hidden; }

/* ===== BUBBLES ===== */
.bubble {
    max-width: calc(100% - 48px);
    padding: 11px 15px;
    font-size: 14.5px;
    line-height: 1.55;
    position: relative;
    word-break: break-word;
}

.message.bot .bubble {
    background: var(--white);
    color: var(--gray-900);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
    border: 1px solid var(--gray-200, #e5e7eb);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.message.user .bubble {
    background: var(--blue-700);
    color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
    box-shadow: 0 2px 8px rgba(0,74,153,0.3);
}

/* ===== TYPING INDICATOR ===== */
.typing-indicator .bubble {
    padding: 14px 18px;
}

.typing-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 18px;
}

.typing-dots span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gray-300);
    animation: dot-bounce 1.2s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.18s; }
.typing-dots span:nth-child(3) { animation-delay: 0.36s; }

@keyframes dot-bounce {
    0%, 80%, 100% { transform: translateY(0);    background: var(--gray-300); }
    40%            { transform: translateY(-7px); background: var(--blue-500); }
}

/* ===== QUICK OPTIONS ===== */
.quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
    padding-bottom: 2px;
}

.quick-options button {
    flex: 0 0 auto;
    white-space: nowrap;
    background: var(--blue-50);
    color: var(--blue-700);
    border: 1.5px solid var(--blue-300);
    padding: 7px 14px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition:
        background   var(--anim-fast),
        color        var(--anim-fast),
        border-color var(--anim-fast),
        transform    var(--anim-fast) var(--ease-spring),
        box-shadow   var(--anim-fast);
    -webkit-tap-highlight-color: transparent;
}

.quick-options button:hover,
.quick-options button:focus-visible {
    background: var(--blue-700);
    color: var(--white);
    border-color: var(--blue-700);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,74,153,0.25);
}

.quick-options button:active {
    transform: scale(0.96);
}

/* ===== LATENCY TAG ===== */
.message-time {
    display: inline-block;
    margin-top: 6px;
    font-size: 11px;
    font-family: var(--font-mono);
    opacity: 0.55;
    letter-spacing: 0.03em;
}

/* ===== MATCH TYPE BADGE ===== */
/*
 * Verde  (.exato)     — resultado encontrado com nome idêntico ao buscado
 * Amarelo (.semelhante) — resultado aproximado por similaridade de string
 * O JS insere este elemento antes do texto do balão quando
 * a API retorna { match_type: 'exato' | 'semelhante', nome_encontrado: '...' }
 */
.match-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    margin-bottom: 8px;
    width: fit-content;
}

.match-badge.exato {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.match-badge.semelhante {
    background: #fef9c3;
    color: #92400e;
    border: 1px solid #fde68a;
}

.match-badge svg {
    flex-shrink: 0;
}

/* ===== MAP CONTAINER ===== */
.map-container {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-md);
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    box-shadow: var(--shadow-sm);
}

/* ===== MAP BOTTOM SHEET ===== */
.map-sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1000;
    pointer-events: none;
    transition: background var(--anim-normal) var(--ease-smooth);
}

.map-sheet-overlay.open {
    background: rgba(0, 0, 0, 0.35);
    pointer-events: all;
}

.map-sheet {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1001;
    transition: transform var(--anim-slow) var(--ease-spring);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.18);
    overflow: hidden;
    max-height: 75dvh;
    display: flex;
    flex-direction: column;
}

.map-sheet.open {
    transform: translateX(-50%) translateY(0);
}

.map-sheet-handle {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0 6px;
    cursor: grab;
    touch-action: none;
}

.map-sheet-handle::before {
    content: '';
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--gray-300);
}

.map-sheet-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 20px 14px;
    border-bottom: 1px solid var(--gray-100);
}

.map-sheet-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

.map-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    transition: background var(--anim-fast), color var(--anim-fast);
    -webkit-tap-highlight-color: transparent;
}

.map-sheet-close:hover { background: var(--gray-300); color: var(--gray-900); }

.map-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 24px;
    -webkit-overflow-scrolling: touch;
}

.map-sheet-name {
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.3;
}

.map-sheet-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: var(--blue-700);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    margin-right: 10px;
    flex-shrink: 0;
}

.map-sheet-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--gray-700);
    line-height: 1.5;
}

.map-sheet-distance {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-700);
}

/* Localização do usuário no mapa */
.user-location-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--gray-700);
    cursor: pointer;
}
.user-location-btn:hover  { background: var(--gray-100); }
.user-location-btn.active { color: var(--blue-500); }
.user-location-btn.loading svg { animation: user-location-spin 1s linear infinite; }

@keyframes user-location-spin { to { transform: rotate(360deg); } }

.user-location-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue-500);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 0 rgba(26,111,196,0.6), 0 1px 4px rgba(0,0,0,0.3);
    animation: user-location-pulse 2s infinite;
}

@keyframes user-location-pulse {
    0%   { box-shadow: 0 0 0 0    rgba(26,111,196,0.6), 0 1px 4px rgba(0,0,0,0.3); }
    70%  { box-shadow: 0 0 0 12px rgba(26,111,196,0),   0 1px 4px rgba(0,0,0,0.3); }
    100% { box-shadow: 0 0 0 0    rgba(26,111,196,0),   0 1px 4px rgba(0,0,0,0.3); }
}

.map-hint-erro {
    top: auto;
    bottom: 8px;
    left: 8px;
    right: 8px;
    justify-content: center;
    color: var(--red-500);
}

.map-sheet-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--blue-500);
}

.map-sheet-img {
    width: 100%;
    border-radius: var(--radius-md);
    margin-top: 14px;
    object-fit: cover;
    max-height: 160px;
}

.map-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255,255,255,0.92);
    border-radius: var(--radius-full);
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    z-index: 500;
    pointer-events: none;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 5px;
}


/* ===== TOAST DE AVISO ===== */
.toast {
    position: fixed;
    bottom: calc(var(--input-h) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: calc(100% - 32px);
    max-width: 488px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 13px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: var(--shadow-lg);
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity    var(--anim-normal) var(--ease-smooth),
        transform  var(--anim-normal) var(--ease-spring);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--amber-500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.toast-icon svg {
    width: 12px;
    height: 12px;
    color: var(--gray-900);
}

.toast-body {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
}

.toast-text {
    font-size: 12px;
    color: rgba(255,255,255,0.70);
    line-height: 1.45;
}

.toast-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
    font-size: 16px;
    line-height: 1;
    align-self: flex-start;
    transition: color var(--anim-fast);
    -webkit-tap-highlight-color: transparent;
}

.toast-close:hover { color: var(--white); }

/* ===== INPUT AREA ===== */
.input-area {
    flex-shrink: 0;
    padding: 10px 14px 14px;
    background: var(--white);
    border-top: 1px solid var(--gray-100);
}

.input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--gray-50);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-xl);
    padding: 8px 8px 8px 16px;
    transition: border-color var(--anim-fast), box-shadow var(--anim-fast);
}

.input-wrapper:focus-within {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 3px rgba(26,111,196,0.12);
    background: var(--white);
}

textarea {
    flex: 1;
    border: none;
    background: transparent;
    resize: none;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--gray-900);
    line-height: 1.5;
    max-height: 120px;
    overflow-y: auto;
    outline: none;
    padding: 2px 0;
    scrollbar-width: none;
}

textarea::-webkit-scrollbar { display: none; }

textarea::placeholder {
    color: var(--gray-500);
}

#send {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--blue-700);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        background var(--anim-fast),
        transform  var(--anim-fast) var(--ease-spring),
        box-shadow var(--anim-fast);
    -webkit-tap-highlight-color: transparent;
}

#send svg {
    width: 17px;
    height: 17px;
    margin-left: 1px;
}

#send:hover {
    background: var(--blue-500);
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(0,74,153,0.35);
}

#send:active {
    transform: scale(0.93);
}

#send:disabled {
    background: var(--gray-300);
    cursor: default;
    transform: none;
    box-shadow: none;
}

.input-hint {
    font-size: 11px;
    color: var(--gray-500);
    text-align: center;
    margin-top: 6px;
    letter-spacing: 0.01em;
}

.input-hint kbd {
    font-family: var(--font-mono);
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 3px;
    padding: 1px 5px;
    font-size: 10px;
}

/* ===== SAFE AREA (notch/home-bar) ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .input-area {
        padding-bottom: calc(14px + env(safe-area-inset-bottom));
    }
}

/* ===== DATE DIVIDERS (optional, added by JS) ===== */
.date-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.date-divider::before,
.date-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200, #e5e7eb);
}

/* ===== DESKTOP REFINEMENT ===== */
@media (min-width: 540px) {
    .messages         { padding: 24px 20px 14px; }
    .bubble           { font-size: 15px; }
    .input-area       { padding: 12px 20px 18px; }
    .map-container    { height: 300px; }
    .input-hint       { display: none; }
}

/* Alinhamento do texto com o botão de áudio */
.bubble-content-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px; /* Espaço entre o texto e o ícone */
}

/* Estilização do botão de áudio */
.tts-button {
    background: none;
    border: none;
    padding: 4px;
    margin-top: -2px; /* Ajuste fino de altura */
    cursor: pointer;
    color: currentColor; /* Herda a cor do texto do balão (funciona para bot e user) */
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.1s ease;
    flex-shrink: 0; /* Impede o botão de esmagar se o texto for muito longo */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.tts-button:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.message.user .tts-button:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.tts-button:active {
    transform: scale(0.9);
}

/* Estilo base do botão do microfone */
#mic-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.1s ease;
}

#mic-btn svg {
    width: 20px;
    height: 20px;
}

#mic-btn:hover {
    color: #004a99; /* Muda para a cor principal do seu app ao passar o mouse */
}

/* Efeito visual quando estiver gravando/ouvindo */
#mic-btn.listening {
    color: #dc3545; /* Vermelho */
    animation: pulseMic 1.2s infinite ease-in-out;
}

@keyframes pulseMic {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
/* ===== CONVERSA: sugestões e links nas respostas ===== */
.message.sugestoes .quick-options { margin-top: 0; }
.bubble a { color: inherit; text-decoration: underline; word-break: break-all; }
.message.bot .bubble strong { font-weight: 700; }
/* Balão só com o mapa: ocupa a largura disponível (sem texto ele encolheria) */
.bubble.bubble-mapa { width: calc(100% - 48px); padding: 6px; }
.bubble.bubble-mapa .map-container { margin-top: 0; }
/* Sugestões com nomes longos de medicamento quebram linha em vez de vazar */
.message.sugestoes .quick-options { min-width: 0; max-width: calc(100% - 48px); }
.message.sugestoes .quick-options button { white-space: normal; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
