/* Keep the consent controls compact and give Accept and Reject equal visual weight. */
#cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-bottom-right {
  --rwp-cookie-ink: var(--wp--preset--color--deep-green, #183b32);
  --rwp-cookie-border: #b8c8bb;
  box-sizing: border-box;
  width: min(490px, calc(100% - 24px));
  min-width: 0;
  max-width: none;
  max-height: calc(100dvh - 24px);
  right: 12px;
  bottom: 12px;
  padding: 12px 16px;
  gap: 6px;
  border: 1px solid var(--rwp-cookie-border);
  border-radius: 12px;
  background: #fffdf8;
  color: var(--rwp-cookie-ink);
  box-shadow: 0 12px 36px #183b3226;
  font-family: var(--wp--preset--font-family--body, Inter, system-ui, sans-serif);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header {
  grid-template-columns: auto 1fr auto;
  gap: 8px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title {
  display: block;
  justify-self: start;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--rwp-cookie-ink);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--rwp-cookie-ink);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-close svg { width: 13px; height: 13px; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-divider { display: none; }

#cmplz-cookiebanner-container .cmplz-cookiebanner :is(.cmplz-body, .cmplz-message, .cmplz-categories) {
  width: 100%;
  min-width: 0;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message {
  margin: 0;
  color: #3b5046;
  font-size: .8125rem;
  line-height: 1.45;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-btn {
  box-sizing: border-box;
  min-width: 0;
  width: auto;
  min-height: 44px;
  padding: 8px 10px;
  margin: 0;
  border-radius: 8px;
  font: 650 .8125rem/1.3 var(--wp--preset--font-family--body, Inter, system-ui, sans-serif);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner :is(.cmplz-accept, .cmplz-deny, .cmplz-save-preferences) {
  flex: 1 1 115px;
  color: var(--rwp-cookie-ink);
  background: #edf3ed;
  border: 1px solid #aebfb1;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner :is(.cmplz-accept, .cmplz-deny, .cmplz-save-preferences):hover {
  background: #dfebe1;
  border-color: var(--rwp-cookie-ink);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-view-preferences {
  color: var(--rwp-cookie-ink);
  background: transparent;
  border: 1px solid transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents {
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-documents a { color: var(--rwp-cookie-ink); }
#cmplz-cookiebanner-container .cmplz-cookiebanner :is(a, button, [role="button"]):focus-visible {
  outline: 2px solid #9a472f;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  #cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-bottom-right {
    left: 8px;
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    width: auto;
    padding: 10px 12px;
  }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-view-preferences {
    flex: 0 0 100%;
    min-height: 30px;
    padding: 4px 8px;
    text-align: left;
  }
}

@media (max-height: 400px) {
  #cmplz-cookiebanner-container .cmplz-cookiebanner.cmplz-bottom-right {
    height: auto;
    zoom: 1;
    overflow-y: auto;
  }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header { max-height: none; margin-bottom: 0 !important; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-body { margin-top: 0 !important; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner :is(.cmplz-close, .cmplz-buttons .cmplz-btn, .cmplz-documents) { zoom: 1 !important; }
  #cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn { height: auto !important; min-height: 40px !important; padding: 6px 10px !important; font-size: .8125rem !important; line-height: 1.3 !important; }
}

/* Shared design for the buying routes, contextual actions and enquiry forms. */
.rwp-journey-choice,
.rwp-journey-callout {
  --rwp-journey-ink: var(--wp--preset--color--deep-green, #0f2f2b);
  --rwp-journey-border: #d7e0d5;
  box-sizing: border-box;
  width: min(1200px, calc(100% - 2 * var(--wp--preset--spacing--40, 24px)));
  margin-inline: auto !important;
  color: var(--rwp-journey-ink);
}

.rwp-journey-choice {
  padding-block: clamp(32px, 5vw, 72px);
  scroll-margin-top: 104px;
}
.rwp-journey-choice h2 {
  margin: 8px 0 24px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.13;
  letter-spacing: normal;
}
.rwp-journey-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.rwp-journey-choice-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(18px, 3vw, 32px);
  border-radius: 12px;
  border: 1px solid var(--rwp-journey-border);
  background: var(--wp--preset--color--canvas, #fbf8f3);
}
.rwp-journey-choice-card h3 {
  margin: 0;
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.25;
}
.rwp-journey-choice-card p { margin: 8px 0 0; line-height: 1.55; }
.rwp-journey-choice-card .rwp-journey-choice-price {
  font-weight: 700;
  color: var(--rwp-journey-ink);
}

.rwp-journey-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: fit-content;
  min-height: 44px;
  padding: 9px 15px;
  border-radius: 9px;
  font: 750 .925rem/1.35 var(--wp--preset--font-family--ui, Inter, system-ui, sans-serif);
  text-align: center;
  text-decoration: none !important;
}
.rwp-journey-button--outline,
.rwp-journey-button--outline:visited {
  border: 1px solid #8da095;
  background: #fffdf9;
  color: var(--wp--preset--color--deep-green, #0f2f2b);
}
.rwp-journey-button--outline:hover {
  border-color: #315647;
  background: #edf3ed;
  color: var(--wp--preset--color--deep-green, #0f2f2b);
}
.rwp-journey-button:focus-visible,
.rwp-enquiry-optional summary:focus-visible {
  outline: 2px solid #9a472f;
  outline-offset: 3px;
}
.rwp-journey-choice-card .rwp-journey-button { margin-top: auto; }
.rwp-journey-choice-card p:last-of-type { margin-bottom: 20px; }

.rwp-journey-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  margin-block: 22px !important;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--rwp-journey-border);
  border-radius: 12px;
  background: var(--wp--preset--color--canvas, #fbf8f3);
}
.rwp-journey-callout p { margin: 0; line-height: 1.55; }
.rwp-journey-callout-title { margin-bottom: 4px !important; }
.rwp-journey-callout .rwp-journey-button { flex: 0 0 auto; }
.rwp-journey-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.rwp-journey-card-story { margin-bottom: 0; }
.rwp-calc-next { margin: 10px 0 0; }
.rwp-enquiry-optional {
  display: grid;
  padding: 10px 14px;
  border: 1px solid #d7e0d5;
  border-radius: 10px;
  background: #fbfaf6;
}
.rwp-enquiry-optional summary {
  color: #244c40;
  cursor: pointer;
  font-size: .925rem;
  font-weight: 700;
}
.rwp-enquiry-optional summary span { font-weight: 400; }
.rwp-enquiry-optional[open] > :is(label, div) { margin-top: 12px; }
.rwp-enquiry-next { color: #40564a; line-height: 1.55; }
.rwp-project-form button[type="submit"] { width: fit-content; min-height: 48px; }

.rwl-launch-hero .rwl-launch-button,
.rwl-launch-hero .rwl-launch-button:visited { background: #ff936f; color: #132a22; }
.rwl-launch-hero .rwl-launch-button:hover { background: #ffad91; }
.rwl-launch-hero .rwl-launch-secondary { border-radius: 9px; }
.rwl-launch-hero .rwl-launch-cost { row-gap: 2px; }
.rwl-design-footer .rwp-journey-button { text-decoration: none; }
.rwl-design-footer .rwp-journey-button--primary,
.rwl-design-footer .rwp-journey-button--primary:visited {
  background: #ff936f;
  border: 1px solid #ff936f;
  color: #132a22;
}
.rwl-design-footer .rwp-journey-button--primary:hover { background: #ffad91; }
.rwl-design-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.rwp-licence-hero { padding-block: clamp(24px, 4vw, 58px) !important; }
.rwp-licence-hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.35rem) !important; line-height: 1.1; }
.rwp-licence-hero .rwp-eyebrow { margin-bottom: 10px; }
.rwp-licence-hero .wp-block-buttons { margin-top: 16px; }
.rwp-licence-choice { padding-block: clamp(24px, 4vw, 50px) !important; }
.rwp-licence-choice .rwp-home-price-grid { margin-top: 24px !important; }
.rwp-licence-choice .rwp-price-card { padding: clamp(18px, 3vw, 32px) !important; }
.rwp-licence-choice .rwp-licence-shared { margin: 24px auto 0; text-align: center; }
.rwp-licence-choice .rwp-licence-shared p { margin: 7px 0; }
#project-enquiry { scroll-margin-top: 96px; }

@media (max-width: 780px) {
  .rwp-journey-choice-grid { grid-template-columns: 1fr; }
  .rwp-journey-callout { flex-direction: column; align-items: flex-start; }
  .rwp-home-hero.rwp-home-hero--launch { padding-block: 28px 34px !important; }
  .rwp-home-hero--launch .rwp-eyebrow { margin-bottom: 10px; }
  .rwp-home-hero--launch h1 { font-size: clamp(2.38rem, 9vw, 3.4rem); margin-bottom: 13px; }
  .rwp-home-hero.rwp-home-hero--launch .rwp-launch-copy > p.rwp-launch-description { font-size: 1rem !important; line-height: 1.55 !important; margin-bottom: 13px; }
  .rwp-home-hero--launch .rwp-managed-choice { margin: 12px 0 14px; }
  .rwp-home-hero--launch .rwp-launch-actions { gap: 8px; }
  .rwp-home-hero--launch .rwp-launch-actions .wp-block-button__link { min-height: 46px; padding: 10px 14px; }
  .rwp-service-hero { padding-block: 30px 24px !important; }
  .rwp-licence-hero .rwp-eyebrow { margin-top: 0; }
}

@media (max-width: 780px) {
  .rwp-home-hero.rwp-home-hero--launch .rwp-launch-copy h1 {
    font-size: clamp(2rem, 8.55vw, 3.4rem) !important;
  }
  .rwp-home-hero--launch .rwp-launch-actions .wp-block-button {
    flex: 0 1 auto;
    width: auto;
  }
}
