/* Aba do chat: colada no canto inferior direito, sem folga, e com o canto
   superior esquerdo arredondado — ela "entra" na borda em vez de flutuar como
   um botao solto. O padding é o que impede o ícone de encostar no texto. */
chat.edenware-widget.bottom-right {
    bottom: 0 !important;
    right: 0 !important;
    contain: style !important;
}

chat.edenware-widget #widgetButton {
    width: 68px !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 10px 14px !important;
    border-radius: 16px 0 0 0 !important;
    transform: none;
    box-shadow: -2px -4px 24px rgba(0, 0, 0, .35) !important;
}

chat.edenware-widget #widgetButton .edenware-chat-icon-stack {
    margin: 0 auto 4px !important;
}

/* 48px de largura útil: é o que "Dúvidas?" precisa para caber numa linha. */
chat.edenware-widget #widgetButton .edenware-chat-label {
    width: 100%;
    margin-top: 0;
    padding: 0 1px;
    font-size: 11px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Com a aba no canto, o selo de não lidas cairia metade fora da tela. */
chat.edenware-widget #widgetButton .edenware-chat-notification-badge {
    top: 8px !important;
    right: 8px !important;
}

chat.edenware-widget:has(#widgetContainer[style*="display: flex"]) #widgetButton {
    visibility: hidden;
}

chat.edenware-widget #widgetContainer {
    position: fixed;
    inset: 0 0 auto auto;
    width: 40vw;
    min-width: 0;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: trias-landing-chat-in .25s ease;
}

@media (orientation: portrait) {
    chat.edenware-widget #widgetContainer { width: 90vw; }
}

@media (prefers-reduced-motion: reduce) {
    chat.edenware-widget #widgetContainer { animation: none; }
}

@keyframes trias-landing-chat-in {
    from { translate: 100% 0; }
    to { translate: 0 0; }
}
