/* Vedora cream/brown invite. WhatsApp green only on the join control. */
.wa-community {
  width: min(26.5rem, calc(100vw - 2rem));
  max-height: calc(100svh - 2rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  font-family: 'DM Sans', Inter, Arial, sans-serif;
}

.wa-community::backdrop {
  background: rgba(53, 40, 32, 0.46);
}

.wa-community:focus {
  outline: none;
}

.wa-community__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 22px 18px;
  overflow: auto;
  border: 1px solid #e8dfd6;
  border-radius: 16px;
  background: #fbf9f6;
  box-shadow: 0 18px 50px rgba(53, 40, 32, 0.18);
}

.wa-community__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7d5b45;
}

.wa-community__card h2 {
  margin: 0;
  font-family: Lora, Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.wa-community__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #64748b;
}

.wa-community__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 10px;
  border: 1px solid #e8dfd6;
  border-radius: 12px;
  background: #fff;
}

.wa-community__qr img {
  width: 188px;
  height: 188px;
  display: block;
}

.wa-community__qr-hint {
  margin: 0;
  font-size: 0.75rem;
  color: #816b5f;
}

.wa-community__join {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #25d366;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.wa-community__join:hover {
  background: #1ebe57;
}

.wa-community__join svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wa-community__dismiss {
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  background: transparent;
  color: #7d5b45;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.wa-community__dismiss:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wa-community-chip {
  position: fixed;
  z-index: 28;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px 10px 12px;
  border: 1px solid #e8dfd6;
  border-radius: 999px;
  background: #fbf9f6;
  color: #3d2e24;
  box-shadow: 0 8px 24px rgba(53, 40, 32, 0.14);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}

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

.wa-community-chip svg {
  width: 18px;
  height: 18px;
  color: #25d366;
}

.wa-community-chip:hover {
  background: #fff;
}

@media (max-width: 680px) {
  .wa-community__join {
    order: 1;
  }

  .wa-community__dismiss {
    order: 2;
  }

  .wa-community__qr {
    order: 3;
    padding: 10px;
  }

  .wa-community__qr img {
    width: 128px;
    height: 128px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-community__join:hover,
  .wa-community-chip:hover {
    transform: none;
  }
}
