#rmtf-assistant,
.rmtf-assistant,
.rmtf-assistant * {
    box-sizing: border-box;
}

#rmtf-assistant.rmtf-assistant {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 398px;
    max-width: calc(100vw - 24px);
    z-index: 999999;
    display: block;
    opacity: 1;
    visibility: visible;
    font-family: Arial, Helvetica, sans-serif;
}

.rmtf-card {
    background: #0d0d10;
    color: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 102, 0, .28);
}

.rmtf-header {
    background: linear-gradient(135deg, #ff6500, #ff852e);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.rmtf-logo-wrap {
    width: 126px;
    height: 58px;
    flex: 0 0 auto;
    border-radius: 14px;
    background: #252432;
    padding: 5px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.rmtf-logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    transform: translateZ(0);
}

.rmtf-title strong {
    display: block;
    color: #fff;
    font-size: 19px;
    line-height: 1.1;
    font-weight: 800;
}

.rmtf-title span {
    display: block;
    color: #fff;
    font-size: 12px;
    opacity: .94;
    margin-top: 2px;
}

.rmtf-progress {
    width: 100%;
    height: 5px;
    background: #1e1e24;
}

#rmtf-progress-bar {
    display: block;
    width: 0%;
    height: 100%;
    background: #25D366;
    transition: width .3s ease;
}

.rmtf-body {
    padding: 14px;
    max-height: 82vh;
    overflow-y: auto;
    scrollbar-width: thin;
}

.rmtf-banner {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    margin-bottom: 14px;
}

.rmtf-message {
    padding: 13px 14px;
    margin: 10px 0;
    border-radius: 16px;
    line-height: 1.5;
    font-size: 14px;
}

.rmtf-bot {
    background: #1d1d24;
    color: #fff;
    border: 1px solid rgba(255,255,255,.05);
}

.rmtf-user {
    background: #ff6500;
    color: #fff;
    margin-left: 42px;
    font-weight: 700;
}

.rmtf-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 12px 0 16px;
}

.rmtf-options button {
    width: 100%;
    border: 0;
    background: #ff6500;
    color: #fff;
    text-align: left;
    border-radius: 14px;
    padding: 13px 14px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.rmtf-options button:hover,
.rmtf-options button:focus {
    background: #ff8126;
    transform: translateY(-1px);
    outline: none;
}

.rmtf-video {
    margin: 16px 0;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
}

.rmtf-video iframe {
    display: block;
    width: 100%;
    height: 218px;
}

.rmtf-whatsapp {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 15px;
    border-radius: 16px;
    background: #25D366;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 15px;
}

.rmtf-whatsapp:hover,
.rmtf-whatsapp:focus {
    filter: brightness(1.05);
    color: #fff !important;
}

.rmtf-address {
    margin-top: 12px;
    text-align: center;
    color: rgba(255,255,255,.86);
    font-size: 12px;
    line-height: 1.35;
}

[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    #rmtf-assistant.rmtf-assistant {
        right: 10px;
        bottom: 10px;
        width: calc(100vw - 20px);
    }

    .rmtf-card {
        border-radius: 20px;
    }

    .rmtf-body {
        max-height: 78vh;
        padding: 12px;
    }

    .rmtf-logo-wrap {
        width: 112px;
        height: 52px;
    }

    .rmtf-title strong {
        font-size: 17px;
    }

    .rmtf-video iframe {
        height: 200px;
    }
}

/* Ajuste 3.1.0: Botao X para fechar */
.rmtf-header {
    position: relative;
    padding-right: 48px;
}

.rmtf-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.26);
    color: #fff;
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, transform .18s ease;
}

.rmtf-close:hover,
.rmtf-close:focus {
    background: rgba(0,0,0,.42);
    transform: scale(1.04);
    outline: none;
}

/* Ajuste 3.2.0: WhatsApp fixo abaixo da imagem inicial */
.rmtf-whatsapp-top {
    margin-top: 0;
    margin-bottom: 14px;
}
