#cookie-consent-acf-backdrop {

  position: fixed;

  z-index: 9998;

  top: 0;

  left: 0;

  right: 0;

  bottom: 0;

  background: rgba(0, 0, 0, 0.5);

  display: block;

}

#cookie-consent-acf-modal {

  position: fixed;

  z-index: 9999;

  bottom: 1.3vw;

  inset-inline-end: 0.73vw;

  display: block;

  border-radius: 1.25vw;

  background: #fff;

  padding: 1.25vw;

  width: 100%;

  max-width: 29.06vw;

}

.cookie-consent-acf-content {

  display: flex;

  flex-direction: column;

}

.cookie-message {

  font-size: 0.83vw;

}

.cookie-message * {

  font-size: 0.83vw;

  line-height: 160%;

}

.cookie-message a {

  color: var(--cookie-link-color, #0073aa);

  text-decoration: underline;

  font-weight: 500;

}

#cookie-consent-acf-accept {

  margin-top: 0.83vw;

  padding: 0.68vw 1.25vw;

  border: none;

  border-radius: 100px;

  color: #fff;

  font-weight: 500;

  font-size: 0.94vw;

  cursor: pointer;

  transition: background 0.2s;

  max-width: fit-content;

}

@media screen and (max-width: 768px) {

  #cookie-consent-acf-modal {

    bottom: max(env(safe-area-inset-bottom, 0), 2.05vw);

    inset-inline-end: 2.05vw;

    inset-inline-start: 2.05vw;

    max-width: 95.9vw;

    border-radius: 6.15vw;

    padding: 5.13vw;

  }

  .cookie-message {

    font-size: 4.1vw;

  }

  .cookie-message * {

    font-size: 4.1vw;

  }

  #cookie-consent-acf-accept {

    margin-top: 4.1vw;

    font-size: 4.62vw;

    padding: 3.33vw 6.15vw;

  }

}


/* Close (X): hides the banner for this visit without giving consent. 2026-10-14 */
#cookie-consent-acf-modal .cookie-consent-acf-close {
  position: absolute;
  top: 0.6vw;
  inset-inline-end: 0.6vw;
  width: 1.6vw;
  height: 1.6vw;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #182e54;
  font-size: 1.25vw;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
#cookie-consent-acf-modal .cookie-consent-acf-close:hover,
#cookie-consent-acf-modal .cookie-consent-acf-close:focus-visible {
  background: rgba(24, 46, 84, 0.08);
}
#cookie-consent-acf-modal .cookie-consent-acf-close:focus-visible,
#cookie-consent-acf-accept:focus-visible {
  outline: 2px solid #182e54;
  outline-offset: 2px;
}
#cookie-consent-acf-modal .cookie-message {
  padding-inline-end: 1.6vw;
}

/* Mobile: a low, full-width strip at the bottom instead of a half-screen card,
   and no dark overlay - the site stays usable while the banner is open. 2026-10-14 */
@media screen and (max-width: 768px) {
  #cookie-consent-acf-backdrop {
    display: none !important;
  }
  #cookie-consent-acf-modal {
    left: 0;
    right: 0;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    max-height: 45vh;
    overflow-y: auto;
    border-radius: 4.1vw 4.1vw 0 0;
    padding: 3.1vw 4.1vw calc(3.1vw + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -0.5vw 4vw rgba(0, 0, 0, 0.18);
  }
  .cookie-consent-acf-content {
    flex-direction: row;
    align-items: flex-end;
    gap: 3.1vw;
  }
  #cookie-consent-acf-modal .cookie-message {
    flex: 1 1 auto;
    padding-inline-end: 6.2vw;
  }
  .cookie-message,
  .cookie-message * {
    font-size: 3.2vw;
    line-height: 145%;
  }
  .cookie-message p {
    margin: 0;
  }
  #cookie-consent-acf-accept {
    flex: 0 0 auto;
    margin-top: 0;
    font-size: 3.6vw;
    padding: 2.3vw 5.1vw;
    white-space: nowrap;
  }
  #cookie-consent-acf-modal .cookie-consent-acf-close {
    top: 1.5vw;
    inset-inline-end: 1.5vw;
    width: 7.2vw;
    height: 7.2vw;
    font-size: 4.6vw;
  }
}

/* Mobile: while the strip is open, lift the site's floating buttons (WhatsApp,
   donate, accessibility) above it instead of letting them cover it. Uses the
   standalone `translate` property so their own transforms are untouched. */
@media screen and (max-width: 768px) {
  body.ccacf-open .btn_whatsapp,
  body.ccacf-open .btn_mobile,
  body.ccacf-open #enable-toolbar-trigger {
    translate: 0 calc(-1 * var(--ccacf-h, 0px));
    transition: translate 0.2s ease;
  }
}

/* Desktop: the same idea as mobile - a slim full-width strip along the bottom
   (text beside the button) instead of a card over a dark overlay. 2026-10-14 */
#cookie-consent-acf-backdrop {
  display: none !important;
}
@media screen and (min-width: 769px) {
  #cookie-consent-acf-modal {
    left: 0;
    right: 0;
    bottom: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    border-radius: 0;
    padding: 0.85vw 4.2vw;
    box-shadow: 0 -0.2vw 1.5vw rgba(0, 0, 0, 0.15);
  }
  .cookie-consent-acf-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2.1vw;
    max-width: 78vw;
    margin-inline: auto;
  }
  #cookie-consent-acf-modal .cookie-message {
    flex: 1 1 auto;
    padding-inline-end: 0;
  }
  .cookie-message p {
    margin: 0;
  }
  #cookie-consent-acf-accept {
    flex: 0 0 auto;
    margin-top: 0;
    white-space: nowrap;
  }
  #cookie-consent-acf-modal .cookie-consent-acf-close {
    top: 50%;
    inset-inline-end: 1.2vw;
    transform: translateY(-50%);
  }
  body.ccacf-open .btn_whatsapp,
  body.ccacf-open .btn_mobile,
  body.ccacf-open #enable-toolbar-trigger {
    translate: 0 calc(-1 * var(--ccacf-h, 0px));
    transition: translate 0.2s ease;
  }
}

/* SML: dark strip in the site's palette (dark grey, white text, yellow
   accent) and the site font. The side panel (.fixed-panel) sits at the top,
   so it needs no lift. */
#cookie-consent-acf-modal {
  background: #2b2b2b;
  color: #fff;
  font-family: inherit;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -0.3vw 2vw rgba(0, 0, 0, 0.45);
}
#cookie-consent-acf-modal .cookie-message,
#cookie-consent-acf-modal .cookie-message * {
  color: #fff;
  font-family: inherit;
}
#cookie-consent-acf-modal .cookie-message a {
  color: var(--cookie-link-color, #f3d253);
}
#cookie-consent-acf-accept {
  font-family: inherit;
  font-weight: 700;
}
#cookie-consent-acf-accept:hover {
  filter: brightness(1.08);
}
#cookie-consent-acf-modal .cookie-consent-acf-close {
  color: #fff;
}
#cookie-consent-acf-modal .cookie-consent-acf-close:hover,
#cookie-consent-acf-modal .cookie-consent-acf-close:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}
#cookie-consent-acf-modal .cookie-consent-acf-close:focus-visible,
#cookie-consent-acf-accept:focus-visible {
  outline-color: #f3d253;
}

/* SML: keep the text readable on small laptops (vw sizes alone get too small). */
@media screen and (min-width: 769px) {
  #cookie-consent-acf-modal .cookie-message,
  #cookie-consent-acf-modal .cookie-message * {
    font-size: max(0.83vw, 15px);
  }
  #cookie-consent-acf-accept {
    font-size: max(0.94vw, 15px);
    padding: max(0.6vw, 9px) max(1.6vw, 24px);
  }
  #cookie-consent-acf-modal {
    padding-block: max(0.85vw, 12px);
  }
}
@media screen and (max-width: 768px) {
  #cookie-consent-acf-modal .cookie-message,
  #cookie-consent-acf-modal .cookie-message * {
    font-size: max(3.2vw, 13px);
  }
  #cookie-consent-acf-accept {
    font-size: max(3.6vw, 14px);
  }
}
