/* Widget WhatsApp — stile.
   File statico condiviso da tutti i siti: i dati variabili (numero, logo)
   arrivano dal markup generato da inc/wa-widget.php. */
  .wa-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1200;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  }
  @media (min-width: 1024px) {
    .wa-widget {
      display: flex;
    }
  }
  .wa-widget__button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    background: #bf9f56;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
  }
  .wa-widget__button svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
  }
  .wa-widget__button:hover {
    transform: translateY(-2px);
  }
  .wa-widget__chat {
    width: 320px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .wa-widget.is-open .wa-widget__chat {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .wa-widget__header {
    background: #2f2f2f;
    color: #fff;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .wa-widget__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
    background: #fff;
    padding: 4px;
  }
  .wa-widget__title {
    flex: 1;
  }
  .wa-widget__name {
    font-weight: 600;
    font-size: 0.95rem;
  }
  .wa-widget__status {
    font-size: 0.8rem;
    opacity: 0.85;
  }
  .wa-widget__close {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
  }
  .wa-widget__body {
    padding: 16px;
    background: #ece5dd;
  }
  .wa-widget__bubble {
    background: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 14px;
  }
  .wa-widget__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    background: #bf9f56;
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
  }
