/*
 * Layout oficial (clone do print de referência) — igual nas 3 variantes
 * (SHEIN, Relacionamento, Livre); só os textos padrão mudam entre elas.
 * Todo seletor começa com .mc-gw-wrap para blindar o componente de estilos
 * externos do tema (maior especificidade que uma classe solta).
 */

.mc-gw-wrap {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.mc-gw-wrap .mc-gw-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 380px;
    padding: 24px 20px 20px;
    border-radius: 22px;
    background: var(--gw-bg-override, #ffffff);
    text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
    border: 1px solid #dcf5de;
}

.mc-gw-wrap .mc-gw-title {
    margin: 0 0 18px;
    font-size: 23px !important;
    font-weight: 700;
    line-height: 1.35;
    color: var(--gw-text-override, #4e524a);
}

/* "Versão com Card Central" — caixa com cabeçalho verde + horário + balões
   de chat, um por trecho do subtexto (quebrado pelo separador "•"). */
.mc-gw-wrap .mc-gw-chat {
    border: 2px solid #23cc65;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #ffffff;
}

.mc-gw-wrap .mc-gw-chat__header {
    height: 32px;
    background: #23cc65;
}

.mc-gw-wrap .mc-gw-chat__body {
    position: relative;
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Papel de parede bem clarinho atrás dos balões (teste visual) — pseudo-
   elemento próprio em vez de background direto no .mc-gw-chat__body, para
   controlar a opacidade sem desbotar o texto/balões que ficam por cima
   (z-index nos filhos, que já são flex items). */
.mc-gw-wrap .mc-gw-chat__body::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/chat-pattern.webp');
    background-repeat: repeat;
    background-size: 150px auto;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.mc-gw-wrap .mc-gw-chat__time {
    position: relative;
    z-index: 1;
    margin: 0 0 2px;
    font-size: 11px !important;
    color: #9ca3af;
    text-align: center;
}

.mc-gw-wrap .mc-gw-chat__bubble {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: #ececec;
    color: #4e524a;
    font-size: 14px !important;
    line-height: 1.35;
    text-align: left;
    align-self: flex-start;
    max-width: 100%;
    width: fit-content;
}

/* "Versão apenas texto" — sem a caixa verde, subtexto vira um bloco cinza
   só, com um item de lista por trecho (empilhados), sem os marcadores
   nativos da <ul> — o "·" já vem escrito no início de cada <li>. */
.mc-gw-wrap .mc-gw-plaintext {
    margin: 0 0 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ececec;
    color: #4e524a;
    font-size: 14px !important;
    line-height: 1.5;
    text-align: center;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mc-gw-wrap .mc-gw-plaintext li {
    margin: 0;
    padding: 0;
}

.mc-gw-wrap .mc-gw-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 15px 22px;
    border-radius: 9999px;
    background: radial-gradient(circle, #25d366 0%, #1ba060 100%);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    animation: mc-gw-pulse 1.8s ease-in-out infinite;
}

.mc-gw-wrap .mc-gw-button__icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.mc-gw-wrap .mc-gw-button__arrow {
    font-size: 16px;
    line-height: 1;
}

/* Pulso contínuo do botão — puro CSS, sem JS, nas 3 variantes. */
@keyframes mc-gw-pulse {
    0%   { transform: scale(1);      box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35); }
    50%  { transform: scale(1.035);  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.55); }
    100% { transform: scale(1);      box-shadow: 0 6px 16px rgba(22, 163, 74, 0.35); }
}

/* Fica ACIMA do botão (aviso específico da variante/admin, ex: "Grupo
   independente, sem vínculo oficial com a Shein."). */
.mc-gw-wrap .mc-gw-disclaimer {
    margin: 0 0 14px;
    font-size: 12px !important;
    color: #9ca3af;
    line-height: 1.4;
}

/* Fica SEMPRE abaixo do botão — aviso fixo de redirecionamento, mesmo texto/
   mecanismo de tradução usado em card-relationship, botao-cta etc. */
.mc-gw-wrap .mc-gw-redirect-notice {
    margin: 12px 0 0;
    font-size: 12px !important;
    color: #9ca3af;
    line-height: 1.4;
}

/* Ajustes finos no editor (Gutenberg encolhe a coluna do Inspector) */
.editor-styles-wrapper .mc-gw-wrap .mc-gw-card,
.block-editor-block-list__block .mc-gw-wrap .mc-gw-card {
    max-width: 100%;
}
