/* Small, non-blocking, keyboard-accessible analytics consent controls. */
.ics-analytics-consent[hidden], .ics-privacy-choices[hidden] { display: none !important; }
.ics-analytics-consent {
  position: fixed; bottom: 18px; left: 16px; right: 16px;
  z-index: 900; max-width: 470px; box-sizing: border-box;
  color: #f7faff; border: 1px solid rgba(255,255,255,.22);
  border-radius: 18px; background: #0b1943;
  box-shadow: 0 18px 54px rgba(0,13,47,.35);
  font-family: inherit; line-height: 1.45;
}
.ics-consent-body { padding: 20px 21px; }
.ics-consent-body strong { display: block; font-size: 18px; line-height: 1.3; }
.ics-consent-body p { margin: 8px 0 16px; font-size: 14px; color: #e4eaf7; }
.ics-consent-body a { color: #a8daff; text-decoration: underline; text-underline-offset: 3px; }
.ics-consent-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ics-consent-actions button {
  font: inherit; font-size: 14px; font-weight: 700;
  padding: 10px 15px; min-height: 44px; cursor: pointer; border-radius: 9px;
  border: 1px solid #b1c4e9; background: transparent; color: #fff;
}
.ics-consent-actions button[data-ics-consent="accept"] {
  border-color: #237fc1; background: #237fc1; color: #fff;
}
.ics-consent-actions button:hover { filter: brightness(1.18); }
.ics-consent-actions button:focus-visible,
.ics-privacy-choices:focus-visible { outline: 3px solid #9fdcff; outline-offset: 3px; }
.ics-privacy-choices {
  position: fixed; z-index: 800; bottom: 12px; left: 12px;
  padding: 7px 12px; min-height: 36px; border: 1px solid #c7d5e8;
  background: #fff; color: #0b1943; box-shadow: 0 2px 8px #091a3c25;
  border-radius: 9px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600;
}
@media(max-width:600px) {
  .ics-analytics-consent { bottom: 10px; left: 10px; right: 10px; max-width: none; }
  .ics-consent-body { padding: 16px; }
  .ics-consent-body strong { font-size: 16px; }
  .ics-consent-body p { font-size: 13px; }
  .ics-consent-actions button { flex: 1 1 130px; }
}
@media (prefers-reduced-motion: reduce) {
  .ics-consent-actions button { transition: none; }
}
/* Elementor's global button rules must not obscure the consent-settings control. */
#ics-privacy-choices.ics-privacy-choices,
#ics-privacy-choices.ics-privacy-choices:hover,
#ics-privacy-choices.ics-privacy-choices:focus {
  background: #ffffff !important;
  color: #0b1943 !important;
  border-color: #bed0e6 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

/* 2026-10-17: explicitly beat Elementor's global button/link :hover rules.
   Avoid invisible dark text on the navy consent banner or settings button. */
#ics-analytics-consent .ics-consent-body a,
#ics-analytics-consent .ics-consent-body a:link,
#ics-analytics-consent .ics-consent-body a:visited {
  color: #aadfff !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#ics-analytics-consent .ics-consent-body a:hover,
#ics-analytics-consent .ics-consent-body a:focus-visible {
  color: #ffffff !important;
  text-decoration-color: #ffffff !important;
}
#ics-analytics-consent .ics-consent-actions button[data-ics-consent="reject"],
#ics-analytics-consent .ics-consent-actions button[data-ics-consent="reject"]:focus {
  background: transparent !important;
  border-color: #b1c4e9 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}
#ics-analytics-consent .ics-consent-actions button[data-ics-consent="reject"]:hover {
  background: #23355c !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
#ics-analytics-consent .ics-consent-actions button[data-ics-consent="accept"],
#ics-analytics-consent .ics-consent-actions button[data-ics-consent="accept"]:focus {
  background: #237fc1 !important;
  border-color: #237fc1 !important;
  color: #ffffff !important;
  opacity: 1 !important;
}
#ics-analytics-consent .ics-consent-actions button[data-ics-consent="accept"]:hover {
  background: #136ba9 !important;
  border-color: #5dbbfa !important;
  color: #ffffff !important;
}
#ics-privacy-choices.ics-privacy-choices:hover,
#ics-privacy-choices.ics-privacy-choices:focus-visible {
  background: #e7f2ff !important;
  border-color: #72a9dc !important;
  color: #0b1943 !important;
}
#ics-privacy-choices.ics-privacy-choices {
  transition: background-color .18s ease, border-color .18s ease;
}
.ics-consent-actions button {
  transition: background-color .18s ease, border-color .18s ease;
}
/* Footer's actual Elementor menu, not the shared header menu. */
.ics-footer-privacy-item > a.elementor-item,
.ics-footer-privacy-item > a.elementor-item:visited {
  color: #142a52 !important;
  text-decoration: none;
}
.ics-footer-privacy-item > a.elementor-item:hover,
.ics-footer-privacy-item > a.elementor-item:focus-visible {
  color: #125d9e !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #ics-privacy-choices.ics-privacy-choices, .ics-consent-actions button { transition: none; }
}

/* Compact Privacy Choices control — same ICS gradient and hover language as
   the Request a Quote CTA, but scaled for a persistent utility button. */
#ics-privacy-choices.ics-privacy-choices,
#ics-privacy-choices.ics-privacy-choices:link,
#ics-privacy-choices.ics-privacy-choices:visited {
  background: linear-gradient(120deg, #10245e 0%, #185fa4 100%) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700;
  text-shadow: none !important;
  box-shadow: 0 6px 14px rgba(10,27,75,.22), inset 0 1px 0 rgba(255,255,255,.14);
  opacity: 1 !important;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease !important;
}
#ics-privacy-choices.ics-privacy-choices:hover,
#ics-privacy-choices.ics-privacy-choices:focus,
#ics-privacy-choices.ics-privacy-choices:active {
  background: linear-gradient(120deg, #13367c 0%, #0789c9 100%) !important;
  border-color: rgba(255,255,255,.3) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(9,44,102,.25), inset 0 1px 0 rgba(255,255,255,.2);
  text-shadow: none !important;
}
#ics-privacy-choices.ics-privacy-choices:hover { transform: translateY(-1px); }
#ics-privacy-choices.ics-privacy-choices:active { transform: translateY(0); }
#ics-privacy-choices.ics-privacy-choices:focus-visible {
  outline: 3px solid #5ad2ff !important;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  #ics-privacy-choices.ics-privacy-choices { transition: none !important; }
}
