/*
 * Global layout fixes (Lead).
 * - Local cookie-consent banner (inc/marketing.php) previously shipped without CSS.
 * - Footer newsletter submit must never collapse when its label is longer/shorter
 *   (e.g. browser translation), which otherwise wraps the label vertically.
 */

/* ---------------------------------------------------------------- cookie consent */
#ed-cookie-consent.ed-cookie {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid rgb(0 0 0 / 12%);
  box-shadow: 0 -8px 24px rgb(0 0 0 / 6%);
  color: #171a17;
  font-size: 13px;
  line-height: 1.5;
}
#ed-cookie-consent .ed-cookie__text { margin: 0; max-width: 78ch; }
#ed-cookie-consent .ed-cookie__actions { display: flex; flex: none; gap: 10px; }
#ed-cookie-consent .ed-cookie__accept,
#ed-cookie-consent .ed-cookie__decline {
  appearance: none;
  padding: 9px 18px;
  border: 1px solid #171a17;
  border-radius: 999px;
  background: #171a17;
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}
#ed-cookie-consent .ed-cookie__decline { background: #fff; color: #171a17; }
#ed-cookie-consent[hidden] { display: none !important; }
@media (min-width: 1024px) {
  #ed-cookie-consent.ed-cookie { padding: 14px 24px; }
}

/* --------------------------------------------------------------- footer newsletter */
/* Keep the submit control intrinsic: the sibling input is w-full and would otherwise
   squeeze the button to min-content (vertical label after translation). */
[data-ed-newsletter] .flex.items-end > .relative,
[data-ed-newsletter] .flex.items-end > .relative:has(> [data-ed-newsletter-submit]) {
  flex: 0 0 auto;
  width: max-content;
  min-width: max-content;
}
[data-ed-newsletter] [data-ed-newsletter-submit] {
  display: inline-block;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}
