/* Scoped consent controls: no changes to Kadence/Elementor global styles. */
.emcc-root,
.emcc-root * { box-sizing: border-box; }
.emcc-root [hidden] { display: none !important; }
.emcc-root { font-family: inherit; color: #16243b; }
.emcc-banner {
  position: fixed;
  z-index: 2147482000;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 46px rgba(15, 23, 42, .20);
  font-size: 14px;
  line-height: 1.55;
}
.emcc-banner__copy { flex: 1 1 55%; min-width: 0; }
.emcc-banner__copy strong { display: block; margin: 0 0 3px; font-size: 15px; }
.emcc-banner p { margin: 0; color: #334155; }
.emcc-root a { color: #075aab; text-decoration: underline; text-underline-offset: 2px; }
.emcc-root a:hover { color: #063f78; }
.emcc-actions { display: flex; flex: 0 1 360px; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.emcc-button {
  appearance: none;
  border: 1px solid transparent;
  padding: 10px 15px;
  min-height: 44px;
  min-width: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  cursor: pointer;
}
.emcc-button:focus-visible,
.emcc-close:focus-visible,
.emcc-root a:focus-visible { outline: 3px solid #ffab40; outline-offset: 2px; }
.emcc-button--primary { color: #fff; background: #1159af; }
.emcc-button--primary:hover { background: #083e81; }
.emcc-button--secondary { color: #0f3159; border-color: #9fb4cb; background: #f1f5f9; }
.emcc-button--secondary:hover { background: #e2e8f0; }
.emcc-button--text { color: #075aab; text-decoration: underline; background: transparent; }
/* Make consent visually primary while keeping rejection visible and touch-accessible. */
.emcc-banner .emcc-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  flex: 0 0 min(100%, 310px);
  gap: 2px 8px;
}
.emcc-banner .emcc-button--primary {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font-size: 14px;
}
.emcc-banner .emcc-button--secondary {
  grid-column: 1;
  grid-row: 2;
  justify-self: start;
}
.emcc-banner .emcc-button--text {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}
.emcc-banner .emcc-button--secondary,
.emcc-banner .emcc-button--text {
  min-height: 44px;
  padding: 8px 5px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #334155;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  touch-action: manipulation;
}
.emcc-banner .emcc-button--secondary:hover,
.emcc-banner .emcc-button--text:hover {
  background: #f1f5f9;
  color: #0f3159;
}
.emcc-root .emcc-button { touch-action: manipulation; }
.emcc-dialog .emcc-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}
.emcc-dialog .emcc-button--primary { grid-row: 1; width: 100%; }
.emcc-dialog .emcc-button--secondary {
  grid-row: 2;
  min-height: 44px;
  border-color: transparent;
  background: transparent;
  color: #334155;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
}
.emcc-dialog .emcc-button--secondary:hover { background: #f1f5f9; }
.emcc-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 16px;
  background: rgba(13, 25, 45, .68);
}
.emcc-dialog {
  position: relative;
  width: min(100%, 580px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  margin: auto;
  padding: 28px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 60px rgba(0, 0, 0, .32);
  font-size: 15px;
  line-height: 1.55;
}
.emcc-dialog h2 { padding-right: 35px; margin: 0 0 12px; font-size: 24px; line-height: 1.25; color: #10233c; }
.emcc-dialog p { color: #334155; margin: 0 0 16px; }
.emcc-close {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  font-size: 26px;
  cursor: pointer;
}
.emcc-category {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 12px 0;
  border-top: 1px solid #e2e8f0;
}
.emcc-category strong { font-size: 15px; }
.emcc-category span { color: #475569; font-size: 14px; }
.emcc-dialog__policy { margin-top: 12px !important; }
@media (max-width: 740px) {
  .emcc-banner {
    /* Keep Kadence mobile header and its menu toggle reachable before consent.
       Unlike the previous top:6px position, the banner starts below the header.
       Account for notches while preserving room for a separately placed floor ad. */
    top: calc(max(8px, env(safe-area-inset-top, 0px)) + 70px);
    bottom: auto;
    left: 8px;
    right: 8px;
    max-height: min(52dvh, 340px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 10px 12px 8px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.35;
  }
  .emcc-banner__copy { flex: none; }
  .emcc-banner__copy strong { font-size: 14px; margin-bottom: 2px; }
  .emcc-banner p { font-size: 12px; line-height: 1.35; }
  .emcc-banner .emcc-actions {
    flex: none;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 8px;
  }
  .emcc-banner .emcc-button--primary { min-height: 44px; padding: 9px 12px; }
  .emcc-dialog { padding: 20px 16px; }
  .emcc-dialog h2 { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .emcc-root * { scroll-behavior: auto !important; transition: none !important; }
}
