/* wa_qr.css — pop-up do QR do WhatsApp no computador (23/10/2026).
   Comportamento e motivo em wa_qr.js. Prefixo `wq-`. Paleta da marca: vinho,
   bordô, nude e ouro (o ouro só em fio: as quinas do visor do código). O verde
   do WhatsApp aparece só no ícone ao lado do número. Fraunces só no título,
   que não tem número. Servido cru pelo rodapé das páginas do avie.me. */
.wq {
    width: min(720px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 16px;
    background: #fffcf9;
    color: #351a24;
    font-family: var(--font-ui, "Segoe UI", Arial, sans-serif);
    box-shadow: 0 32px 80px -24px rgba(53, 26, 36, 0.5), 0 0 0 1px rgba(109, 55, 70, 0.08);
}

.wq::backdrop {
    background: rgba(53, 26, 36, 0.52);
    backdrop-filter: blur(3px);
}

.wq[open] {
    animation: wq-in 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes wq-in {
    from { opacity: 0; transform: translateY(10px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.wq :where(p, h2) {
    margin: 0;
}

/* O X se posiciona pelo cartão inteiro (.wq-in): no computador ele fica no
   canto do texto; na janela estreita, no canto de cima, sobre o código. */
.wq-in {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
}

/* Lado do código: nude da marca, o código numa moldura branca com as quinas
   de visor de câmera. */
.wq-side {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 16px;
    padding: 36px 24px;
    background: linear-gradient(165deg, #f5ece4 0%, #efe2da 100%);
    border-right: 1px solid rgba(109, 55, 70, 0.1);
}

.wq-scan {
    --q: #b9985a;
    padding: 12px;
    background:
        linear-gradient(var(--q), var(--q)) top left / 26px 2px no-repeat,
        linear-gradient(var(--q), var(--q)) top left / 2px 26px no-repeat,
        linear-gradient(var(--q), var(--q)) top right / 26px 2px no-repeat,
        linear-gradient(var(--q), var(--q)) top right / 2px 26px no-repeat,
        linear-gradient(var(--q), var(--q)) bottom left / 26px 2px no-repeat,
        linear-gradient(var(--q), var(--q)) bottom left / 2px 26px no-repeat,
        linear-gradient(var(--q), var(--q)) bottom right / 26px 2px no-repeat,
        linear-gradient(var(--q), var(--q)) bottom right / 2px 26px no-repeat;
}

.wq-code {
    width: 212px;
    height: 212px;
    padding: 14px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 30px -16px rgba(53, 26, 36, 0.5), 0 0 0 1px rgba(109, 55, 70, 0.1);
}

.wq-code img {
    display: block;
    width: 100%;
    height: 100%;
}

.wq-num {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: #5a4048;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.wq-num svg {
    width: 17px;
    height: 17px;
    flex: none;
    color: #1fa855;
}

/* Lado do texto */
.wq-main {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 34px 32px 28px;
}

.wq-x {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #e6d6ce;
    border-radius: 50%;
    background: #fff;
    color: #351a24;
    cursor: pointer;
    transition: background 0.16s ease;
}

.wq-x svg {
    width: 18px;
    height: 18px;
}

.wq-x:hover {
    background: #f5ece4;
}

.wq-k {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #75555c;
}

.wq-t {
    padding-right: 44px;
    font-family: var(--font-display, Georgia, serif);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-variation-settings: "SOFT" 30, "WONK" 0;
    color: #351a24;
    text-wrap: balance;
}

.wq-p {
    font-size: 15px;
    line-height: 1.5;
    color: #5a4048;
}

/* A mensagem que vai chegar, no balão de saída do WhatsApp */
.wq-msg {
    display: grid;
    gap: 7px;
    padding: 12px 12px 14px;
    border-radius: 12px;
    background: #efeae2;
}

.wq-msg[hidden] {
    display: none;
}

.wq-msg-k {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #75555c;
}

.wq-bubble {
    justify-self: end;
    max-width: 94%;
    padding: 8px 11px;
    border-radius: 10px 0 10px 10px;
    background: #d9fdd3;
    color: #111b21;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13);
    overflow-wrap: anywhere;
}

.wq-actions {
    display: grid;
    gap: 6px;
    margin-top: 2px;
}

.wq-web {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #6d3746;
    color: #f5ece4;
    font: inherit;
    font-size: 15px;
    font-weight: 650;
    cursor: pointer;
    box-shadow: 0 12px 24px -12px rgba(109, 55, 70, 0.9);
    transition: background 0.16s ease, transform 0.16s ease;
}

.wq-web svg {
    width: 19px;
    height: 19px;
    flex: none;
}

.wq-web:hover {
    background: #351a24;
    transform: translateY(-1px);
}

.wq-app {
    justify-self: center;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    background: none;
    color: #6d3746;
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.wq-app:hover {
    color: #351a24;
}

.wq button:focus-visible {
    outline: 2px solid #b9985a;
    outline-offset: 3px;
}

/* Janela estreita no computador: o código vai para cima. */
@media (max-width: 680px) {
    .wq-in {
        grid-template-columns: 1fr;
    }

    .wq-side {
        padding: 26px 20px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(109, 55, 70, 0.1);
    }

    .wq-main {
        padding: 22px 22px 20px;
    }

    .wq-t {
        padding-right: 0;
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wq[open] {
        animation: none;
    }

    .wq-web:hover {
        transform: none;
    }
}
