button.abt-dot[data-status="current"] { background-image: var(--grad-accent); }

/* Shared contact controls and direct access to the donation choices. */
/* Preserve the approved solid-color contrast fixes and original mobile gradient. */
.footer-section .ft-btn--orange { background-color: #c44f21; }
.footer-section .ft-btn--white { color: #c44f21; }
.footer-section .ft-btn--white svg { stroke: currentColor; }

.ft-social {
  --ft-icons-half: calc((var(--ft-social) * 4 + var(--ft-social-space) * 3) / 2);
}

.ft-contact a[href^="tel:"] {
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.ft-contact a[href^="tel:"],
.ft-contact a[href^="mailto:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.ft-col a:focus-visible,
.ft-social a:focus-visible {
  outline: 2px solid var(--orange, #f16a2c);
  outline-offset: 4px;
  border-radius: 4px;
}

.whatsapp-float {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: var(--z-floating-contact, 900);
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(7, 94, 84, .12);
  border-radius: 50%;
  background: #fff;
  color: #431f10;
  box-shadow: 0 4px 20px rgba(25, 53, 37, .17);
  font-family: 'Afek', 'Assistant', Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: var(--button-transition, transform .2s ease, box-shadow .2s ease);
}

.whatsapp-float img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 24px rgba(25, 53, 37, .23);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #075e54;
  outline-offset: 4px;
}

.wa-launcher-hint {
  position: absolute;
  left: calc(100% + 10px);
  padding: 8px 13px;
  border: 1px solid #e9e2db;
  border-radius: 12px;
  background: #fffdf9;
  box-shadow: 0 3px 14px #431f1010;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity .15s ease;
}

.whatsapp-float[aria-expanded="true"] .wa-launcher-hint { opacity: 0; }

.wa-chat,
.wa-chat * { box-sizing: border-box; }

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

.wa-chat {
  position: fixed;
  left: max(20px, env(safe-area-inset-left));
  bottom: calc(max(20px, env(safe-area-inset-bottom)) + 72px);
  z-index: var(--z-floating-dialog, 901);
  display: flex;
  flex-direction: column;
  width: min(368px, calc(100vw - 40px));
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - max(20px, env(safe-area-inset-bottom)) - max(20px, env(safe-area-inset-top)) - 72px);
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #e8ded2;
  border-radius: 24px;
  background: #faf7f2;
  box-shadow: 0 18px 60px #431f1029, 0 2px 10px #431f1010;
  color: #431f10;
  font-family: 'Afek', 'Assistant', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-align: right;
  animation: wa-chat-enter .22s ease-out;
  transform-origin: bottom left;
}

.wa-chat p, .wa-chat h2 { margin: 0; }
.wa-chat button, .wa-chat textarea, .wa-chat a { font: inherit; }

.wa-chat-header {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 18px 18px 16px;
  border-bottom: 1px solid #e8ded2;
  background: #fffdf9;
}

.wa-chat-logo { flex: none; width: 48px; height: 48px; object-fit: contain; }
.wa-chat-heading { flex: 1; min-width: 0; }
.wa-chat-heading h2 { color: #431f10; font-size: 23px; font-weight: 700; line-height: 1.2; }
.wa-chat-heading p { margin-top: 4px; color: #776459; font-size: 14px; }

.wa-chat-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #e8ded2;
  border-radius: 50%;
  background: transparent;
  color: #695347;
  cursor: pointer;
}

.wa-chat-close:hover { background: #f0e9df; }
.wa-chat-body { padding: 20px; overflow-y: auto; overscroll-behavior: contain; }
.wa-chat-bubble {
  position: relative;
  padding: 16px 18px;
  border: 1px solid #eee4d9;
  border-radius: 18px 4px 18px 18px;
  background: #fff;
  box-shadow: 0 2px 4px #431f1005;
  line-height: 1.55;
}
.wa-chat-bubble .wa-chat-hello { margin-bottom: 6px; font-size: 18px; font-weight: 700; }
.wa-chat-topics { margin-top: 18px; }
.wa-chat-topics > p, .wa-chat-compose label { display: block; margin-bottom: 8px; color: #735e51; font-size: 14px; }
.wa-chat-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.wa-chat-chips button {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d6c6b7;
  border-radius: 20px;
  background: #fffdf9;
  color: #624432;
  font-size: 14px;
  line-height: 1.25;
  cursor: pointer;
}
.wa-chat-chips button:hover { border-color: #9e7760; background: #f6eee5; }
.wa-chat-chips button[aria-pressed="true"] { border-color: #075e54; background: #e4f3eb; color: #075e54; }
.wa-chat-compose { margin-top: 18px; }
.wa-chat-compose textarea {
  display: block;
  width: 100%;
  min-height: 78px;
  max-height: 150px;
  padding: 11px 13px;
  resize: vertical;
  border: 1px solid #d6c6b7;
  border-radius: 12px;
  background: #fff;
  color: #431f10;
  font-size: 16px;
  line-height: 1.45;
}
.wa-chat-compose textarea::placeholder { color: #826c5f; opacity: 1; }
.wa-chat-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #25d366;
  color: #063c22;
  font-weight: 700 !important;
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  transition: background .15s ease;
}
.wa-chat-continue:hover { background: #20c65d; color: #063c22; }
.wa-chat-continue svg { flex: none; }
.wa-chat .wa-chat-note { margin-top: 9px; color: #776459; font-size: 12px; text-align: center; }
.wa-chat :is(button, a, textarea):focus-visible { outline: 2px solid #075e54; outline-offset: 3px; }

@keyframes wa-chat-enter {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767px) {
  .whatsapp-float {
    left: max(14px, env(safe-area-inset-left));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
  .whatsapp-float img { width: 33px; height: 33px; }
  .wa-launcher-hint { display: none; }
  .wa-chat {
    left: max(14px, env(safe-area-inset-left));
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 64px);
    width: calc(100vw - max(14px, env(safe-area-inset-left)) - max(14px, env(safe-area-inset-right)));
    max-width: 368px;
    max-height: calc(100vh - 92px);
    max-height: calc(100dvh - max(14px, env(safe-area-inset-bottom)) - max(14px, env(safe-area-inset-top)) - 64px);
    border-radius: 22px;
  }
  .wa-chat-header { padding: 14px; }
  .wa-chat-body { padding: 16px; }
  .wa-chat-bubble { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .wa-launcher-hint, .wa-chat-continue { transition: none; }
  .wa-chat { animation: none; }
}

@media print {
  .whatsapp-float, .wa-chat { display: none !important; }
}

/* Footer labels use the original orange gradient on the white button. */
.footer-section .ft-btn--white .ft-btn-label {
  display: inline-block;
  background: var(--grad-accent);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
/* Keep the restored social artwork visible while its links are being supplied. */
.ft-social .ft-social-placeholder {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ft-social);
  height: var(--ft-social);
  min-block-size: var(--ft-social);
  padding: 0;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}
@media (max-width: 767px) {
  body:not(.desktop-preview) .footer-section .ft-title {
    max-inline-size: 100%;
    line-height: 1.18 !important;
    text-wrap: balance;
  }
  body:not(.desktop-preview) .footer-section .ft-title > span {
    max-inline-size: 100%;
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .ft-social .ft-social-placeholder {
    min-block-size: var(--tap-min, 44px);
    padding-block: var(--space-3xs, 4px);
  }
}
