/* K9 Club cookie consent — mirrors nust/client/components/CookieConsent.vue */
body { padding-bottom: var(--k9-consent-height, 0px); }

.k9-cookie-consent[hidden], .k9-cookie-consent [hidden] { display: none !important; }
.k9-cookie-consent {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999; box-sizing: border-box;
  max-height: 65vh; overflow-y: auto;
  padding: 20px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: #fff; color: #222; border-top: 2px solid #710273; box-shadow: 0 -3px 18px rgba(0, 0, 0, .13);
  font: 15px/1.5 sans-serif; text-align: left;
}
.k9-cookie-consent__inner { max-width: none; margin: 0; }
/* Theme heading/text fonts (e.g. Akrobat on headings) are pinned so the banner matches the app. */
.k9-cookie-consent h2#k9-cookie-consent-title {
  margin: 0 0 8px !important; padding: 0 !important; font: bold 20px/1.5 sans-serif !important; color: #222 !important;
  text-transform: none !important; letter-spacing: normal !important; text-align: left !important; border: 0 !important;
}
.k9-cookie-consent p, .k9-cookie-consent label { font-family: sans-serif !important; font-size: 15px !important; line-height: 1.5 !important; color: #222 !important; letter-spacing: normal !important; }
.k9-cookie-consent p { margin: 0 0 12px; }
.k9-cookie-consent p.k9-cookie-consent__error { color: #a00 !important; }
.k9-cookie-consent a, .k9-cookie-consent a:hover, .k9-cookie-consent a:focus, .k9-cookie-consent a:visited {
  color: #710273 !important; font: inherit !important; text-decoration: underline !important; text-decoration-style: solid !important;
  text-decoration-thickness: auto !important; text-underline-offset: auto !important; background: none !important; box-shadow: none !important;
}
.k9-cookie-consent__settings label { display: flex !important; align-items: center; gap: 10px; margin: 0 !important; padding: 0 !important; font-weight: bold !important; cursor: pointer; }
.k9-cookie-consent__settings input[type="checkbox"] { width: 20px !important; height: 20px !important; margin: 0 !important; flex: none; appearance: auto !important; -webkit-appearance: checkbox !important; }
.k9-cookie-consent__error { color: #a00; font-weight: bold; }
.k9-cookie-consent__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Theme/Elementor kit button rules (e.g. Twenty Twenty-One's button:not(:hover):not(:active)…) outrank classes,
   so plugin buttons pin their look with !important in every state. */
.k9-cookie-consent .k9-cookie-consent__actions button,
.k9-cookie-consent .k9-cookie-consent__actions button:not(:hover):not(:active):not(.has-background),
.k9-consent-embed__placeholder button,
.k9-consent-embed__placeholder button:not(:hover):not(:active):not(.has-background) {
  padding: 10px 16px !important; min-height: 44px !important; border: 1px solid #710273 !important; border-radius: 6px !important;
  color: #710273 !important; background: #fff !important; box-shadow: none !important; text-shadow: none !important;
  font: 15px/1.5 sans-serif !important; text-transform: none !important; letter-spacing: normal !important; text-decoration: none !important;
  width: auto !important; cursor: pointer;
}
.k9-cookie-consent .k9-cookie-consent__actions button:hover, .k9-cookie-consent .k9-cookie-consent__actions button:focus-visible,
.k9-cookie-consent .k9-cookie-consent__actions button:active,
.k9-consent-embed__placeholder button:hover, .k9-consent-embed__placeholder button:focus-visible, .k9-consent-embed__placeholder button:active {
  color: #710273 !important; background: #f6edf6 !important; border-color: #710273 !important;
}
/* Twenty Twenty-One draws a dotted outline on every :focus (also on mouse click). Plugin controls show only the
   keyboard focus ring, like the app. */
.k9-cookie-consent button:focus, .k9-cookie-consent input:focus, .k9-cookie-consent a:focus,
.k9-cookie-settings-link:focus, .k9-consent-embed__placeholder button:focus, .k9-consent-embed__placeholder a:focus,
#k9-cookie-consent-trigger:focus, a[data-k9-cookie-settings]:focus {
  outline: none !important;
}
.k9-cookie-consent button:focus-visible, .k9-cookie-consent input:focus-visible, .k9-cookie-consent a:focus-visible,
.k9-cookie-settings-link:focus-visible, .k9-consent-embed__placeholder button:focus-visible, .k9-consent-embed__placeholder a:focus-visible,
#k9-cookie-consent-trigger:focus-visible, a[data-k9-cookie-settings]:focus-visible {
  outline: 3px solid #0087a5 !important; outline-offset: 3px !important;
}
/* The theme also draws its own tick (input[type=checkbox]:after) on top of the native checkbox. */
.k9-cookie-consent__settings input[type="checkbox"]::before, .k9-cookie-consent__settings input[type="checkbox"]::after {
  content: none !important; display: none !important;
}
.k9-cookie-consent__settings input[type="checkbox"] { position: static !important; border: 0 !important; background: none !important; }
@media (max-width: 600px) { .k9-cookie-consent .k9-cookie-consent__actions button { flex: 1 1 140px; } }

.k9-cookie-footer { padding: 8px 20px max(8px, env(safe-area-inset-bottom)); text-align: center; }
.k9-cookie-settings-link, .k9-cookie-settings-link:not(:hover):not(:active):not(.has-background),
.k9-cookie-settings-link:hover, .k9-cookie-settings-link:focus, .k9-cookie-settings-link:active {
  display: inline-flex !important; align-items: center; min-height: 44px; padding: 8px 0 !important; border: 0 !important;
  background: none !important; box-shadow: none !important; border-radius: 0 !important;
  color: #710273 !important; font: inherit !important; text-decoration: underline !important; text-transform: none !important; cursor: pointer;
}

.k9-consent-embed { display: block; position: relative; }
.k9-consent-embed:not(.is-active) iframe { display: none; }
.k9-consent-embed.is-active .k9-consent-embed__placeholder { display: none; }
.k9-consent-embed__placeholder {
  display: block; box-sizing: border-box; padding: 20px; border: 1px solid #ccc; border-radius: 6px;
  background: #f7f7f7; color: #222; font: 15px/1.5 sans-serif;
}
.k9-consent-embed__placeholder button, .k9-consent-embed__placeholder button:not(:hover):not(:active):not(.has-background) { margin: 10px 10px 0 0 !important; }
.k9-consent-embed__placeholder a { color: #710273; text-decoration: underline; }

/* Corner cookie button — same as the app's .cookie-consent-trigger */
#k9-cookie-consent-trigger[hidden] { display: none !important; }
#k9-cookie-consent-trigger, #k9-cookie-consent-trigger:not(:hover):not(:active):not(.has-background),
#k9-cookie-consent-trigger:hover, #k9-cookie-consent-trigger:focus, #k9-cookie-consent-trigger:active {
  position: fixed !important; bottom: max(12px, env(safe-area-inset-bottom)) !important; right: max(12px, env(safe-area-inset-right)) !important;
  left: auto !important; top: auto !important; z-index: 99998 !important;
  display: flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important;
  width: 44px !important; height: 44px !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  border: 1px solid #710273 !important; border-radius: 50% !important;
  background: #fff !important; color: #222 !important; box-shadow: 0 2px 8px rgba(0, 0, 0, .13) !important; text-shadow: none !important;
  font-size: 22px !important; line-height: 1 !important; cursor: pointer; transform: none;
}
#k9-cookie-consent-trigger:hover { transform: scale(1.06); }
/* Icon comes from CSS, not page text, so WordPress's emoji script cannot swap it for a Twemoji image. */
#k9-cookie-consent-trigger .k9-cookie-consent-trigger__icon { display: block; font-size: 22px; line-height: 1; }
#k9-cookie-consent-trigger .k9-cookie-consent-trigger__icon::before {
  content: "\1F36A";
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Segoe UI Symbol", sans-serif;
}
