/* Ribstead WhatsApp widget — loaded alongside whatsapp-widget.mjs. */
.wa-widget-overlay[hidden] { display: none; }
.wa-widget-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 20px;
  overflow-y: auto;
  background: rgb(20 37 31 / 42%);
}
.wa-widget-overlay *,
.wa-widget-overlay *::before,
.wa-widget-overlay *::after { box-sizing: border-box; }
body.wa-widget-is-open { overflow: hidden; }
.wa-widget-card {
  position: relative;
  width: min(100%, 420px);
  margin: auto;
  padding: 29px;
  border: 1px solid #ded7ce;
  border-radius: 4px;
  background: #fff;
  color: #19332a;
  box-shadow: 0 18px 54px rgb(16 37 27 / 30%);
}
.wa-widget-card:focus { outline: none; }
.wa-widget-eyebrow {
  margin: 0 42px 8px 0;
  color: #a84837;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.3;
}
.wa-widget-card h2 {
  margin: 0;
  color: #19332a;
  font-size: clamp(22px, 4vw, 28px);
  letter-spacing: -.025em;
  line-height: 1.08;
}
.wa-widget-intro {
  max-width: 355px;
  margin: 11px 0 20px;
  color: #42574f;
  font-size: 14px;
  line-height: 1.55;
}
.wa-widget-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #19332a;
  cursor: pointer;
  font: 300 28px/1 Arial, sans-serif;
}
.wa-widget-open,
.wa-widget-quote,
.wa-widget-copy {
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .01em;
}
.wa-widget-open {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: 1px solid #e0644c;
  background: #e0644c;
  color: #fff;
  text-decoration: none;
}
.wa-widget-open:hover { background: #c95340; border-color: #c95340; }
.wa-widget-quote {
  display: block;
  width: fit-content;
  margin: 13px auto 0;
  color: #19332a;
  text-decoration: underline;
  text-decoration-color: #e0644c;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.wa-widget-contact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 21px;
  padding-top: 16px;
  border-top: 1px solid #e8e2dc;
}
.wa-widget-phone { color: #19332a; font-size: 13px; font-weight: 700; letter-spacing: .015em; }
.wa-widget-copy {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #aeb9b3;
  background: #fff;
  color: #19332a;
  cursor: pointer;
}
.wa-widget-copy:hover { border-color: #e0644c; color: #a84837; }
.wa-widget-copy-status {
  min-height: 1.25em;
  margin: 7px 0 0;
  color: #4b5f57;
  font-size: 12px;
  line-height: 1.35;
}
.wa-widget-copy-status[data-state="error"] { color: #a84837; }
.wa-widget-copy-status[data-state="success"] { color: #2f6b4e; }
.wa-widget-qr-details {
  margin-top: 12px;
  border-top: 1px solid #e8e2dc;
}
.wa-widget-qr-details summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  color: #19332a;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.wa-widget-qr-details summary::marker { color: #e0644c; }
.wa-widget-qr {
  display: grid;
  width: 210px;
  max-width: 100%;
  margin: 3px auto 0;
  padding: 8px;
  place-items: center;
  border: 1px solid #e1d9d0;
  background: #fff;
}
.wa-widget-qr svg { display: block; width: 100%; height: auto; }
.wa-widget-qr-copy {
  margin: 10px auto 0;
  color: #53645d;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}
.wa-widget-copy-fallback {
  position: fixed;
  top: -1000px;
  left: -1000px;
  opacity: 0;
}
.wa-widget-card :focus-visible {
  outline: 3px solid rgb(224 100 76 / 48%);
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .wa-widget-overlay { align-items: end; padding: 12px; }
  .wa-widget-card { width: 100%; max-width: 480px; padding: 25px 21px 21px; }
  .wa-widget-open { min-height: 50px; font-size: 14px; }
  .wa-widget-quote { margin-top: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .wa-widget-card { animation: wa-widget-enter 140ms ease-out; }
  @keyframes wa-widget-enter { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
}
