/* Icona WhatsApp accanto ai numeri di telefono (soft/js/whatsapp_numeri.js). */
:root {
    --wa-verde: #25d366;
    --wa-verde-scuro: #128c4b;
}

.wa-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0 2px 0 5px;
    border-radius: 50%;
    background: var(--wa-verde);
    color: #fff !important;
    vertical-align: middle;
    text-decoration: none !important;
    line-height: 1;
    flex: 0 0 auto;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .2);
    transition: transform .15s ease, background .15s ease;
}

.wa-link:hover,
.wa-link:focus-visible {
    background: var(--wa-verde-scuro);
    transform: scale(1.12);
}

.wa-link svg {
    width: 15px;
    height: 15px;
    display: block;
}

.wa-link[hidden] {
    display: none !important;
}

/* Accanto ai campi dove si scrive il numero: un po' piu' grande, centrata. */
.wa-link--campo {
    width: 30px;
    height: 30px;
    margin-left: 6px;
    align-self: center;
    justify-self: start;
}

.wa-link--campo svg {
    width: 19px;
    height: 19px;
}

/* Al dito serve un'area piu' grande. */
@media (pointer: coarse) {
    .wa-link {
        width: 30px;
        height: 30px;
    }
    .wa-link svg {
        width: 19px;
        height: 19px;
    }
}

/* Fumetto "WhatsApp Desktop non si e' aperto?" sul computer. */
.wa-fumetto {
    position: absolute;
    z-index: 10080;
    width: 230px;
    padding: 12px 12px 10px;
    border: 2px solid var(--wa-verde);
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .25);
    font-size: 13px;
    line-height: 1.35;
}

.wa-fumetto p {
    margin: 0 18px 8px 0;
    font-weight: 600;
}

.wa-fumetto button {
    font: inherit;
    cursor: pointer;
}

.wa-fumetto__web,
.wa-fumetto__riprova {
    display: block;
    width: 100%;
    min-height: 34px;
    margin-top: 6px;
    border-radius: 8px;
    font-weight: 700;
}

.wa-fumetto__web {
    border: 0;
    background: var(--wa-verde);
    color: #fff;
}

.wa-fumetto__riprova {
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
}

.wa-fumetto__chiudi {
    position: absolute;
    top: 4px;
    right: 6px;
    border: 0;
    background: none;
    color: #64748b;
    font-size: 18px !important;
    line-height: 1;
}

@media print {
    .wa-link, .wa-fumetto { display: none !important; }
}
