/* =========================================================
   ASSISTENTE DA TOCA
   ========================================================= */

.toca-assistant {
    position: fixed;
    right: 24px;
    bottom: 86px;
    z-index: 9999;
    font-family: var(--font-family-base);
}

/* ---------------------------------------------------------
   BOTÃO
   --------------------------------------------------------- */

.toca-assistant-trigger {
    position: relative;
    width: 64px;
    height: 64px;
    padding: 4px;
    border: 2px solid rgba(217, 104, 18, 0.55);
    border-radius: 50%;
    background: #26291f;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition: transform 0.2s ease,
    box-shadow 0.2s ease;
}

.toca-assistant-trigger:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.toca-assistant-trigger img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    object-fit: cover;
}

.toca-assistant-notification {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 13px;
    height: 13px;
    border: 2px solid #26291f;
    border-radius: 50%;
    background: #D96812;
}


/* ---------------------------------------------------------
   CHAMADA AUTOMÁTICA
   --------------------------------------------------------- */

.toca-assistant-teaser {
    position: absolute;
    right: 0;
    bottom: 78px;
    width: 250px;
    padding: 17px 38px 17px 18px;
    border: 1px solid rgba(248, 245, 236, 0.12);
    border-radius: 18px;
    background: linear-gradient(
            180deg,
            #26291f 0%,
            #1f211b 100%
    );

    color: #F8F5EC;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.toca-assistant-teaser.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.toca-assistant-teaser strong,
.toca-assistant-teaser span {
    display: block;
}

.toca-assistant-teaser strong {
    margin-bottom: 4px;
    color: #D96812;
}

.toca-assistant-teaser span {
    color: #D8DACB;
    font-size: 0.88rem;
    line-height: 1.45;
}

.toca-assistant-teaser-close {
    position: absolute;
    top: 8px;
    right: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #a9a99e;
    font-size: 1.2rem;
    cursor: pointer;
}

/* ---------------------------------------------------------
   JANELA
   --------------------------------------------------------- */

.toca-assistant-window {
    position: absolute;
    right: 0;
    bottom: 80px;
    width: min(370px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(248, 245, 236, 0.12);
    border-radius: 24px;
    background: #F8F5EC;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.32);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.97);
    transform-origin: bottom right;
    transition: opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.toca-assistant-window.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ---------------------------------------------------------
   CABEÇALHO
   --------------------------------------------------------- */

.toca-assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    background: radial-gradient(
            circle at 100% 20%,
            rgba(104, 112, 74, 0.10),
            transparent 25%
    ),
    linear-gradient(
            180deg,
            #26291f 0%,
            #1f211b 100%
    );
    color: #F8F5EC;
}

.toca-assistant-title {
    display: flex;
    align-items: center;
    gap: 11px;
}

.toca-assistant-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.toca-assistant-title strong,
.toca-assistant-title span {
    display: block;
}

.toca-assistant-title strong {
    font-size: 0.95rem;
}

.toca-assistant-title span {
    margin-top: 2px;
    color: #aeb683;
    font-size: 0.75rem;
}

.toca-assistant-close {
    border: 0;
    background: transparent;
    color: #D8DACB;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ---------------------------------------------------------
   CONTEÚDO
   --------------------------------------------------------- */

.toca-assistant-body {
    padding: 18px;
}

.toca-assistant-message {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 17px;
    color: #69675F;
    font-size: 0.88rem;
    line-height: 1.5;
}

.toca-assistant-message-icon {
    flex-shrink: 0;
}

.toca-assistant-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toca-assistant-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid rgba(26, 26, 23, 0.10);
    border-radius: 13px;
    background: #fff;
    color: #1A1A17;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.toca-assistant-option:hover {
    transform: translateX(3px);
    border-color: rgba(217, 104, 18, 0.45);
    background: #fffaf4;
    color: #1A1A17;
}

.toca-assistant-option > span {
    width: 28px;
    flex-shrink: 0;
    font-size: 1.15rem;
    text-align: center;
}

.toca-assistant-option div {
    display: flex;
    flex-direction: column;
}

.toca-assistant-option strong {
    font-size: 0.84rem;
}

.toca-assistant-option small {
    margin-top: 2px;
    color: #69675F;
    font-size: 0.72rem;
}

.toca-assistant-option-whatsapp {
    border-color: rgba(104, 112, 74, 0.28);
}

/* ---------------------------------------------------------
   RESPOSTAS
   --------------------------------------------------------- */

.toca-assistant-response {
    padding-top: 2px;
}

.toca-assistant-back {
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #D96812;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.toca-assistant-answer {
    padding: 17px;
    border-radius: 15px;
    background: #fff;
    color: #69675F;
    font-size: 0.88rem;
    line-height: 1.55;
}

.toca-assistant-answer strong {
    display: block;
    margin-bottom: 7px;
    color: #1A1A17;
    font-size: 1rem;
}

.toca-assistant-answer-action {
    display: block;
    margin-top: 15px;
    padding: 11px 16px;
    border-radius: 999px;
    background: #D96812;
    color: #fff;
    text-align: center;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
}

.toca-assistant-answer-action:hover {
    background: #B94F0B;
    color: #fff;
}


/* ---------------------------------------------------------
   MOBILE
   --------------------------------------------------------- */

@media (max-width: 576px) {

    .toca-assistant {
        right: 16px;
        bottom: 74px;
    }

    .toca-assistant-trigger {
        width: 58px;
        height: 58px;
    }

    .toca-assistant-window {
        position: fixed;
        right: 12px;
        bottom: 86px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }

    .toca-assistant-teaser {
        position: fixed;
        right: 16px;
        bottom: 86px;
        width: min(270px, calc(100vw - 32px));
    }

}