#itv-quote-trigger {
    position: fixed;
    right: 0;
    top: 50%;
    z-index: 9997;
    background: #111;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 1rem 0.65rem;
    border-radius: 6px 0 0 6px;
    box-shadow: -2px 0 12px rgba(0,0,0,0.15);
    font-family: quasimoda, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: translateY(-50%);
    transition: background 0.15s;
}

#itv-quote-trigger:hover { background: #333; }

#itv-quote-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 9999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

#itv-quote-overlay.is-visible { opacity: 1; visibility: visible; }

#itv-quote-drawer {
    position: fixed;
    right: 0;
    top: 0;
    /* vh primeiro (fallback), dvh depois — no mobile o vh conta com a área
       tapada pela barra do browser, deixando o painel mais alto do que o
       ecrã realmente visível; sem scroll no corpo do drawer (ver acima),
       esse excesso ficava inacessível, cortando os botões no fundo. */
    height: 100vh;
    height: 100dvh;
    width: max(460px, 50vw);
    max-width: 95vw;
    background: #fffeee;
    z-index: 9999999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
}

#itv-quote-drawer.is-open { transform: translateX(0); }

#itv-quote-drawer .itv-drawer-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1.4rem 1.75rem;
    border-bottom: 1px solid #e5e0d8;
    flex-shrink: 0;
}

#itv-quote-drawer .itv-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
    line-height: 1;
}

#itv-quote-drawer .itv-drawer-close:hover { color: #111; }

#itv-quote-drawer .itv-drawer-body {
    flex: 1;
    min-height: 0;
    /* Rede de segurança: se por algum motivo (dvh mal suportado, etc) o
       painel ficar mais alto do que o ecrã visível, isto continua a dar
       para arrastar até ao fundo em vez de cortar o botão "Seguinte". */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1.75rem 1.75rem;
}

#itv-quote-drawer .pedir-orcamento-form-embed {
    flex: 1;
    min-height: 0;
}

#itv-quote-drawer .pedir-orcamento-form-embed iframe {
    height: 100%;
}

@media (max-width: 576px) {
    #itv-quote-drawer { width: 100%; }
}
