/* Site-wide button style (20 Nov 2026). Added to every page by tools/site_fixes.py.
   One primary style (green) for every call-to-action and form submit, one secondary style (white/blue).
   Same font, size, shape, hover and keyboard focus everywhere. Colours meet WCAG 2.2 AA:
   white on #167A0A = 5.5:1, #2B3DAD on white = 8.9:1; focus ring is white + near-black so it shows on any background. */

:root {
  --ebp-green: #167A0A;
  --ebp-green-dark: #0E5606;
  --ebp-blue: #2B3DAD;
  --ebp-blue-tint: #EAF1FF;
}

/* ---- Primary ---- */
a.elementor-button,
.elementor-widget-button .elementor-button,
.pt_plus_button a.button-link-wrap,
.gform_wrapper .gform_button,
.gform_wrapper button[type="submit"],
.gform_wrapper input[type="submit"] {
  background: var(--ebp-green) !important;
  background-image: none !important;
  color: #fff !important;
  fill: #fff !important;
  border: 2px solid var(--ebp-green) !important;
  border-radius: 4px !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-decoration: none !important;
  padding: 12px 24px !important;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15) !important;
  transform: none !important;
  transition: background-color .15s, border-color .15s, box-shadow .15s !important;
}
.gform_wrapper .gform_button.gform-button--width-full,
.gform_wrapper button[type="submit"].gform-button--width-full { display: flex !important; width: 100%; }
a.elementor-button .elementor-button-text,
a.elementor-button .elementor-button-icon,
a.elementor-button svg { color: #fff !important; fill: #fff !important; }

a.elementor-button:hover, a.elementor-button:focus-visible,
.pt_plus_button a.button-link-wrap:hover, .pt_plus_button a.button-link-wrap:focus-visible,
.gform_wrapper .gform_button:hover, .gform_wrapper .gform_button:focus-visible,
.gform_wrapper button[type="submit"]:hover, .gform_wrapper button[type="submit"]:focus-visible {
  background: var(--ebp-green-dark) !important;
  border-color: var(--ebp-green-dark) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25) !important;
}

/* The Plus buttons: remove the gradient layers and hover text-swap so they behave like the rest */
.pt_plus_button a.button-link-wrap::before,
.pt_plus_button a.button-link-wrap::after { display: none !important; content: none !important; }
.pt_plus_button a.button-link-wrap .btn-icon { color: #fff !important; margin: 0 !important; position: static !important; }
.content_hover_effect, .content_hover_effect:hover { box-shadow: none !important; transform: none !important; }

/* ---- Secondary: header "Get a quote", cookie settings, file pickers ---- */
a.ebp-quote-head,
.ebp-cookie-settings,
.gform_wrapper .gform_button_select_files {
  background: #fff !important;
  color: var(--ebp-blue) !important;
  border: 2px solid var(--ebp-blue) !important;
  border-radius: 4px !important;
  font-family: Roboto, Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
  text-transform: none !important;
  text-decoration: none !important;
  padding: 10px 22px !important;
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15) !important;
  transition: background-color .15s, box-shadow .15s !important;
}
a.ebp-quote-head { border-color: #fff !important; }   /* sits on the blue header */
a.ebp-quote-head:hover, a.ebp-quote-head:focus-visible,
.ebp-cookie-settings:hover, .ebp-cookie-settings:focus-visible,
.gform_wrapper .gform_button_select_files:hover, .gform_wrapper .gform_button_select_files:focus-visible {
  background: var(--ebp-blue-tint) !important;
  color: var(--ebp-blue) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25) !important;
}

/* ---- Keyboard focus, all buttons (WCAG 2.4.7 / 2.4.11; visible on light and dark backgrounds) ---- */
a.elementor-button:focus-visible,
.pt_plus_button a.button-link-wrap:focus-visible,
.gform_wrapper .gform_button:focus-visible,
.gform_wrapper button:focus-visible,
.gform_wrapper input[type="submit"]:focus-visible,
a.ebp-quote-head:focus-visible,
.ebp-cookie-settings:focus-visible {
  outline: 3px solid transparent !important;   /* shows in Windows high-contrast mode */
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1a1a1a !important;
}

/* Header pair stays compact on phones */
@media (max-width: 767px) {
  a.ebp-quote-head,
  .ebp-quote-headbox .pt_plus_button a.button-link-wrap { font-size: 14px !important; padding: 8px 12px !important; min-height: 40px; }
}

/* Floating "Get a quote": matches the "Ask us" button opposite (mattbot.css .ebp-chat-launch) — pill, 2px white border,
   same shadow, font and padding — in the site's primary green. Keeps its load-time pulse (ebp-quote.css). */
a.ebp-quote-float {
  background: var(--ebp-green) !important; color: #fff !important;
  border: 2px solid #fff !important; border-radius: 34px !important;
  font: 700 17px/1 Roboto, Arial, sans-serif !important; letter-spacing: 0 !important;
  padding: 15px 22px !important; box-shadow: 0 6px 18px rgba(0,0,0,.30);
  display: inline-flex !important; align-items: center; min-height: 56px;   /* same height as Ask us (its icon makes it taller) */
  transition: transform .2s, background .2s !important;
}
a.ebp-quote-float:hover { background: var(--ebp-green-dark) !important; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.30); }
a.ebp-quote-float:focus-visible { background: var(--ebp-green-dark) !important; outline: 3px solid #1a1a1a !important; outline-offset: 2px; box-shadow: 0 0 0 2px #fff !important; }
@media (max-width: 767px) { a.ebp-quote-float { font-size: 16px !important; padding: 13px 16px !important; min-height: 52px; } }
@media (prefers-reduced-motion: reduce) { a.ebp-quote-float:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  a.elementor-button, .pt_plus_button a.button-link-wrap, .gform_wrapper .gform_button, a.ebp-quote-head { transition: none !important; }
}

/* Privacy page */
.ebp-privacy h2 { margin-top: 1.4em; }
.ebp-thanks ul { margin-bottom: 1em; }

/* ---- Cookie banner (assets/ebp-consent.js; replaced CookieYes 22 Nov 2026) ---- */
.ebp-cb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100000; background: #fff; color: #1a1a1a;
  border-top: 4px solid var(--ebp-blue); box-shadow: 0 -4px 18px rgba(0,0,0,.18); font-family: Roboto, Arial, sans-serif; }
.ebp-cb[hidden] { display: none; }
.ebp-cb-inner { max-width: 1140px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.ebp-cb-title { flex: 0 0 100%; margin: 0; font: 700 18px/1.3 Roboto, Arial, sans-serif; color: #1a1a1a; }
.ebp-cb-title:focus { outline: none; }
.ebp-cb-title:focus-visible { outline: 3px solid #1a1a1a; outline-offset: 2px; }
.ebp-cb-text { flex: 1 1 420px; margin: 0; font-size: 16px; line-height: 1.5; color: #1a1a1a; }
.ebp-cb-text a { color: var(--ebp-blue); text-decoration: underline; }
.ebp-cb-btns { display: flex; flex-wrap: wrap; gap: 12px; }
/* Accept and Reject look the same: equal choice (ICO) */
.ebp-cb-btn { background: var(--ebp-green); color: #fff; border: 2px solid var(--ebp-green); border-radius: 4px; cursor: pointer;
  font: 700 16px/1.25 Roboto, Arial, sans-serif; padding: 12px 20px; min-height: 44px; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ebp-cb-btn:hover { background: var(--ebp-green-dark); border-color: var(--ebp-green-dark); }
.ebp-cb-btn:focus-visible { outline: 3px solid transparent; outline-offset: 2px; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #1a1a1a; }
.ebp-cb-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
@media (max-width: 767px) {
  .ebp-cb-inner { padding: 14px 16px; }
  .ebp-cb-text { font-size: 15px; flex-basis: 100%; }
  .ebp-cb-btns { width: 100%; }
  .ebp-cb-btn { flex: 1 1 140px; }
}
/* floating Get a quote and Ask us sit above the banner while it shows */
html.ebp-cb-open a.ebp-quote-float { bottom: calc(var(--ebp-cb-h, 0px) + 16px) !important; }
html.ebp-cb-open .ebp-chat-launch { bottom: calc(var(--ebp-cb-h, 0px) + 16px) !important; }
html.ebp-cb-open .ebp-chat:not(.ebp-chat--inline) { bottom: calc(var(--ebp-cb-h, 0px) + 84px) !important; }

/* "Cookie settings" in the footer looks like the links next to it */
#footerlinks .ebp-cookie-link { background: none; border: 0; padding: 0; margin: 0; color: inherit; font: inherit; line-height: inherit;
  letter-spacing: inherit; text-align: left; cursor: pointer; text-decoration: inherit; }
#footerlinks .ebp-cookie-link:hover { text-decoration: underline; }
#footerlinks .ebp-cookie-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Form confirmation text (Spanish form; inline thank-yous use .ebp-quote-thanks): centred, body size */
.gform_confirmation_wrapper .gform_confirmation_message { font-size: 16px !important; line-height: 1.5; text-align: center; }

/* Home: "Services for Authors" moved above the accessibility section (22 Nov 2026) — room below its Contact us button */
.elementor-element.elementor-element-3b08743 { padding-bottom: 72px !important; }
.elementor-element-3b08743 .elementor-element-9b34c68 { margin-bottom: 18px !important; }
.elementor-element-3b08743 .elementor-element-9b34c68 p:last-child { margin-bottom: 0; }
