/* Copyright (c) 2026 Web Upp Limited. Licensed under the GPL-2.0-or-later; see LICENSE. */
.wu-cost__panel {
  display: grid;
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--wu-line);
  border-radius: var(--wu-card-radius);
  background: var(--wu-surface);
  box-shadow: var(--wu-card-shadow);
}

@media (min-width: 1025px) {
  .wu-cost__panel {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 64px;
    padding: 48px;
  }
}
.wu-cost__text > * {
  margin: 0;
}

.wu-cost__text > * + * {
  margin-top: 16px;
}

.wu-cost__body {
  color: var(--wu-muted);
  font-size: 17px;
  line-height: 1.6;
}

.wu-cost__text .wu-actions {
  align-items: center;
  margin-top: 28px;
}

.wu-cost__list {
  align-self: center;
  margin: 0;
}

.wu-cost__list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--wu-line);
}

.wu-cost__list > div:last-child {
  border-bottom: 1px solid var(--wu-line);
}

.wu-cost__list dt {
  font-weight: 500;
}

.wu-cost__list dd {
  margin: 0;
  font-family: var(--wu-mono);
  font-size: 15px;
}

/* An alternative row: its word (the "orWord" field, data-or) sits in the
   divider line above it, centred, on the panel ground so it breaks the
   line. The word in the markup is for screen readers only. */
.wu-cost__list > div.wu-cost__or {
  position: relative;
}

.wu-cost__list > div.wu-cost__or[data-or]::before {
  content: attr(data-or);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 0 10px;
  background: var(--wu-surface);
  color: var(--wu-muted);
  font-family: var(--wu-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.wu-cost__orword {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The arrow after a button's or a text link's words (3.13.0, working rule
   12): the slot --wu-button-arrow is its display, inline-block when unset;
   none hides every arrow the parent draws on buttons and text links. In
   each block's own stylesheet, so it holds where a child dequeues the
   parent's sections.css. An icon before the words is not an arrow. From
   3.16.1 every part but the svg is in :where(), so the rule weighs 0,0,1:
   a child's own rule on the arrow, written before 3.13.0 (Canine Sense's
   `.wu-ihero .wu-button svg`, 0,2,1), still wins, as it did when the
   parent set no display there (3.13.0 to 3.16.0 weighed 0,4,1). */
:where(.wu-cost) :where(.wu-button:not(.wu-button--icon, .wu-contact__link), .wu-textlink:not(.wu-textlink--icon)) > svg:where(:last-child) {
  display: var(--wu-button-arrow, inline-block);
}

/* The eyebrow's slots (3.17.0): --wu-label-gap and the rule's
   --wu-label-rule-length, -width (its thickness), -radius, --wu-label-rule
   (its colour) and -opacity. sections.css reads them with the values drawn
   before; here, of no weight and with no fallback, they reach a site that
   dequeues sections.css and draws the eyebrow itself, wherever its own
   rules leave these properties unset (unset, each is as if absent; the
   rule's span is empty, so flex none changes no box). Every block
   stylesheet that draws an eyebrow carries this rule. */
:where(.wu-label) {
  gap: var(--wu-label-gap);
}

:where(.wu-label__rule) {
  flex: none;
  width: var(--wu-label-rule-length);
  height: var(--wu-label-rule-width);
  border-radius: var(--wu-label-rule-radius);
  background: var(--wu-label-rule);
  opacity: var(--wu-label-rule-opacity);
}