/**
 * The KADABRA banner inside this theme — what it needs from the site, not a
 * change to its design. kadabra-consent.css is KADABRA's file and is left as
 * they sent it; this loads after it (cookie-notice.php makes that file this
 * one's dependency).
 *
 * WHY: the parent theme's reset.css (Hello Elementor) styles every button —
 * [type=button], button — with a pink #c36 border and text, a 3px radius,
 * width:auto, its own padding and font size, and a pink fill with white text on hover
 * and focus. Its [type=button] selector outranks .kc-btn, so the banner's
 * pill buttons rendered as pink squares (measured, 2026-10-12). Every value
 * below is the one kadabra-consent.css already sets, restated with enough
 * specificity to win.
 */

.kc-banner .kc-btn,
.kc-dialog .kc-btn {
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--kc-pill-border);
  border-radius: 999px;
  background: var(--kc-pill);
  color: var(--kc-pill-fg);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}

.kc-banner .kc-btn:hover,
.kc-banner .kc-btn:focus,
.kc-dialog .kc-btn:hover,
.kc-dialog .kc-btn:focus {
  background: var(--kc-pill);
  color: var(--kc-pill-fg);
  border-color: var(--kc-accent);
}

.kc-dialog .kc-close,
.kc-dialog .kc-close:hover,
.kc-dialog .kc-close:focus {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--kc-fg);
  font-size: 20px;
}

.kc-dialog .kc-switch,
.kc-dialog .kc-switch:hover,
.kc-dialog .kc-switch:focus {
  width: 40px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--kc-pill-border);
  border-radius: 999px;
  background: #C7E2FD;
}

.kc-dialog .kc-switch[aria-checked="true"],
.kc-dialog .kc-switch[aria-checked="true"]:hover,
.kc-dialog .kc-switch[aria-checked="true"]:focus {
  background: var(--kc-accent);
  border-color: var(--kc-accent);
}

/* The link in the banner text: reset.css colours links #c36 and #336 on
   hover; KADABRA's file sets navy. */
.kc-banner .kc-text a,
.kc-banner .kc-text a:hover {
  color: var(--kc-link);
}

@media (max-width: 600px) {
  .kc-banner .kc-btn,
  .kc-dialog .kc-btn {
    min-height: 44px;
    padding: 6px 8px;
  }

  .kc-dialog .kc-switch,
  .kc-dialog .kc-switch:hover,
  .kc-dialog .kc-switch:focus {
    width: 44px;
    height: 26px;
  }
}

/* Stacking. KADABRA puts the banner at 9990 and the dialog at 9991, but the
 * site's own fixed layers sit higher: the treatment page's sticky lead form
 * (.dmc-hero-contact-container, position:fixed, z-index 9999) covered the
 * banner's top edge at 1440px (measured, 2026-10-12), and several templates
 * use 99999. The consent layer has to be above all of them, the dialog above
 * the banner, as in KADABRA's own order. */
.kc-banner {
  z-index: 1000000;
}

.kc-overlay {
  z-index: 1000001;
}
