/* ==========================================================================
   Placeholders shown in place of a blocked third-party embed.
   Paired with js/consent-embeds.js. Namespaced so nothing collides with the
   legacy Blocs all.css.
   ========================================================================== */

.consent-embed {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.consent-embed-ui {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px;
  border: 1px dashed #c8d0dd;
  border-radius: 14px;
  background: #f6f8fb;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #10151f;
  text-align: left;
}

.consent-embed-ui * { box-sizing: border-box; }

.consent-embed-kind {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
}

.consent-embed-why {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: #5b6577;
  max-width: 46em;
}

.consent-embed-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: #01367a;
  color: #fff;
  font: 700 14.5px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding: 12px 20px;
  border-radius: 999px;
  transition: background .16s cubic-bezier(.22, 1, .36, 1);
}
.consent-embed-btn:hover,
.consent-embed-btn:focus-visible { background: #012a60; }
.consent-embed-btn:focus-visible { outline: 3px solid #ad031e; outline-offset: 2px; }

.consent-embed-note {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #6b7486;
}

/* Reserve roughly the embed's own height so accepting consent does not shove
   the rest of the page around. Set per embed with --consent-embed-h. */
.consent-embed-ui { min-height: var(--consent-embed-h, auto); justify-content: center; }

/* Once loaded, let the real embed size itself. */
.consent-embed[data-consent-state="loaded"] { min-height: 0; }
.consent-embed[data-consent-state="loaded"] iframe { max-width: 100%; }

@media (max-width: 575px) {
  .consent-embed-ui { padding: 18px; }
  .consent-embed-btn { width: 100%; text-align: center; }
}

/* --------------------------------------------------------------------------
   Same legacy override as nav-footer.css: all.css forces every <p> to bold
   and to one navy via an !important colour, which made the placeholder copy
   read as a wall of bold navy text.
   -------------------------------------------------------------------------- */
.consent-embed-ui { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.consent-embed .consent-embed-kind { color: #10151f !important; font-weight: 700; }
.consent-embed .consent-embed-why  { color: #5b6577 !important; font-weight: 400; }
.consent-embed .consent-embed-note { color: #6b7486 !important; font-weight: 400; }
.consent-embed .consent-embed-btn  { color: #fff !important; font-weight: 700; }
