/* Pulsium · the pay pages' own pieces: the order rows, the section
   headings, the country select, the acceptance row, the payment mount, the
   confirmation stack. Shared by /pay (the agreement) and /start (self-serve
   Essentials, 18 October 2026); everything else on both pages is book.css.

   Colours ride the marketing tokens, not hand-picked hex: these pages sit
   inside a .bk-card, so their ink is the SAME ink as the heading above
   (--ink, the warm near-black) and their rules the same hairline
   (--line). */
/* Page-local pieces only: the order summary rows and the payment
   mount. Everything else is book.css.

   Colours ride the marketing tokens, not hand-picked hex: this page
   sits under the site nav and inside a .bk-card, so its ink has to be
   the SAME ink as the heading above it (--ink, the warm near-black) and
   its rules the same hairline (--line). It carried #111 and #6B6770
   before, which are the email system's neutrals — a second black and a
   second grey on a page that already had one of each. */
.pay-brand {
  position: absolute; top: var(--nav-top); left: 50%; transform: translateX(-50%);
  height: var(--nav-h); display: flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
  text-decoration: none; transition: color .3s ease;
}
.pay-brand:hover { color: #1A73E8; }
.pay-brand img { display: block; }
.pay-lines { margin: 0 0 8px 0; }
.pay-line {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.pay-line:last-child { border-bottom: 0; }
.pay-line .l { color: var(--ink); min-width: 0; }
/* What the agent does, under its name — the muted furniture under the
   data. The catalog authors that line; this only renders it. */
.pay-line .l small {
  display: block; color: rgba(14, 10, 7, .6); font-size: 12px; margin-top: 2px;
}
/* Right aligned, so a figure with a note under it (the monthly
   charge and when it starts) keeps the figure on the money edge
   rather than at the left of its own box. */
.pay-line .r {
  color: var(--ink); font-weight: 600; white-space: nowrap;
  text-align: right; flex: none;
}
/* The standard price beside an agreed lower one — muted, struck. */
.pay-line .r s { color: rgba(14, 10, 7, .45); margin-right: 4px; font-weight: 400; }
/* The renewal date under the monthly figure — same muted furniture as
   the description under an agent name, on the value side. */
.pay-line .r small {
  display: block; color: rgba(14, 10, 7, .6); font-size: 12px;
  margin-top: 2px; font-weight: 400; white-space: normal;
  /* On a phone the note wraps; balanced, so it never leaves one
     word on a line of its own under the figure. */
  text-wrap: balance;
}
/* The small heading over each block: team, money, billing, payment.
   One flat run of rows is where "am I paying the onboarding fee every
   month?" comes from, so the blocks are labelled. */
.pay-sec {
  margin: 28px 0 8px 0; font-size: 16px; font-weight: 700;
  letter-spacing: -0.01em; line-height: 1.25; color: var(--ink);
}
.pay-sec:first-child { margin-top: 0; }
.pay-sechint {
  margin: 0 0 12px 0; font-size: 13px; line-height: 1.5;
  color: rgba(14, 10, 7, .6);
}
.pay-vat { font-size: 12px; color: rgba(14, 10, 7, .6); margin: 12px 0 0 0; }
/* A full-width country select wearing the phone field's chevron. */
.pay-select {
  /* The chevron, drawn once per colour: ink at rest, brand blue with
     the border on hover, focus and while open. */
  --pay-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E0A07' stroke-opacity='.55' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --pay-chevron-blue: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A73E8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  height: 46px; padding: 0 34px 0 14px; width: 100%;
  background: #FFFFFF; border: 1px solid rgba(14, 10, 7, .12);
  border-radius: 12px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  cursor: pointer; transition: border-color .18s ease;
  appearance: none; -webkit-appearance: none;
  background-image: var(--pay-chevron);
  background-repeat: no-repeat; background-position: right 12px center;
  background-size: 12px;
}
/* Hover and focus colour the whole control at once: the border turns
   blue and so does the chevron, which is the same glyph redrawn in
   the brand blue (a background image cannot inherit a colour). */
.pay-select:hover, .pay-select:focus {
  border-color: var(--blue-2); outline: none; box-shadow: none;
  background-image: var(--pay-chevron-blue);
}
/* While the list is open the control stays in its blue state. Its own
   rule, because an engine that does not know :open would otherwise
   throw the hover rule away with it. */
.pay-select:open {
  border-color: var(--blue-2);
  background-image: var(--pay-chevron-blue);
}
/* The open list, where the browser lets a page draw it (Chrome and
   Edge 135 and later; Safari and Firefox keep their native list,
   which is the fallback by design): the house glass panel, rows in
   the page's own type, blue text on the row under the pointer and on
   the chosen country, no fills and no shadow. Every rule here is
   ignored by an engine without base-select, so nothing changes for
   it. */
@supports (appearance: base-select) {
  .pay-select, .pay-select::picker(select) { appearance: base-select; }
  /* base-select lays the control out as a box of its own, so the
     chosen name has to be centred in the 46px height by hand. */
  .pay-select { display: flex; align-items: center; }
  .pay-select::picker-icon { display: none; }
  .pay-select::picker(select) {
    position-area: block-end span-inline-end;
    /* See .bk-code in book.css: 8px under the field, never taller
       than the room beneath it. */
    position-try-fallbacks: none;
    margin: 8px 0; padding: 6px;
    max-height: min(320px, calc(100% - 16px));
    background: rgba(254, 254, 254, .96);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    backdrop-filter: blur(20px) saturate(1.6);
    border: 1px solid rgba(14, 10, 7, .08); border-radius: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    font-family: var(--font-body);
  }
  .pay-select option {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 10px;
    font-size: 15px; font-weight: 400; color: var(--ink);
    background: transparent; cursor: pointer;
    transition: color .18s ease;
  }
  .pay-select option::checkmark { display: none; }
  .pay-select option:hover, .pay-select option:focus-visible {
    color: var(--blue-2); background: transparent; outline: none;
  }
  .pay-select option:checked { color: var(--blue-2); font-weight: 600; }
}
.pay-opt { font-weight: 400; color: rgba(14, 10, 7, .6); }
/* The one thing read immediately before authorising a recurring
   charge, so it sits against the button, not buried up the page. */
.pay-accept {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 16px 0 16px 0; font-size: 14px; line-height: 1.5;
  color: var(--ink); cursor: pointer;
}
/* The tick box is drawn, not the browser's: the native control renders
   differently on every platform and reads cheap beside the fields. The
   real input stays in the page for the keyboard and the label, visually
   hidden; .pay-check is what shows. 18px against a 14px line at 1.5
   (21px): 2px down centres it on the first line of the sentence. */
.pay-accept { position: relative; }
.pay-accept input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
  pointer-events: none;
}
.pay-check {
  flex: none; width: 18px; height: 18px; margin: 2px 0 0 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 1px solid rgba(14, 10, 7, .2);
  border-radius: 5px;
  transition: border-color .18s ease, background-color .18s ease;
}
.pay-check::after {
  content: ""; width: 11px; height: 11px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0; transform: scale(.6);
  transition: opacity .15s ease, transform .15s ease;
}
.pay-accept:hover .pay-check,
.pay-accept input:focus-visible + .pay-check { border-color: var(--blue-2); }
.pay-accept input:checked + .pay-check { background: var(--blue-2); border-color: var(--blue-2); }
.pay-accept input:checked + .pay-check::after { opacity: 1; transform: scale(1); }
.pay-accept a { color: var(--blue-2); font-weight: 600; text-decoration: none; }
.pay-accept a:hover { color: var(--blue); }
.pay-mount { margin: 0 0 16px 0; min-height: 120px; }
/* /start's card step: Stripe's three fields under our own labels, each
   in a box that is .bk-field input's twin (46px, 12px radius, the same
   hairline, blue on hover and while the field inside has focus). */
.pay-card { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
.pay-card .bk-field { margin: 0; }
.pay-cardbox {
  height: 46px; padding: 0 14px; display: flex; align-items: center;
  background: #FFFFFF; border: 1px solid rgba(14, 10, 7, .12);
  border-radius: 12px; transition: border-color .18s ease;
}
.pay-cardbox:hover, .pay-cardbox.is-focus { border-color: var(--blue-2); }
.pay-cardbox > div { width: 100%; }
/* The confirmation stack, grouped by proximity. The status line is
   what the reader came for, so it takes ink and weight one notch
   under the tagline; the two paragraphs under it are one group and
   sit tight, and the single larger step falls before the ticks. */
.pay-donestatus {
  margin: 16px 0 0; font-size: 15px; font-weight: 600; color: var(--ink);
}
/* text-wrap: pretty, because at this measure the second paragraph
   otherwise drops "live." onto a line of its own. */
#payDone .bk-donesub { margin: 12px auto 0; text-wrap: pretty; }
/* The one step onward falls a clear step under the paragraphs. */
#payDone .pay-donecta { margin-top: 28px; }
/* Microcopy hugs the button it explains. Body alpha, not --muted-2,
   which misses AA at this size. */
.pay-donenote {
  margin: 16px auto 0; max-width: 44ch;
  font-size: 13px; line-height: 1.6; color: rgba(14, 10, 7, .6);
  text-wrap: pretty;
}
/* A disabled Pay button has to LOOK disabled. It ships disabled and
   needs both the Payment Element's ready event and the acceptance
   checkbox before it lights, so a page where the
   form never mounts (no publishable key, Stripe blocked) would
   otherwise show a full-strength blue call to action that does
   nothing, directly under a line saying payments are not set up.
   Same treatment as #mgConfirmMove on the manage page; the booking
   form's own :disabled rule deliberately keeps its colour because
   there the veil is the loading state, and this is not that. */
#payButton:disabled { opacity: .4; cursor: default; }
#payButton:disabled:hover { background: var(--blue-2); }
/* ...but a button held against a double submit is a DIFFERENT kind of
   disabled, and that one never greys out: the house rule is that the
   button keeps its resting appearance and the full-page orbit is the
   loading treatment. pay.js stamps data-loading for exactly that
   window, so the dimming above stays where it belongs, on a form
   that is never going to mount. */
/* The one primary on /start: greyed while it cannot be pressed (the
   terms unticked, the card form not up), brand blue the moment it can;
   being busy is not "cannot" (the data-loading pin below). House rule for
   a primary that is not yet available, 18 October 2026. */
#stPayButton:disabled:not([data-loading]),
#stPayButton:disabled:not([data-loading]):hover {
  background: #F1F1F4; color: rgba(14, 10, 7, .45); cursor: default;
}
#stPayButton[data-loading]:disabled,
#stPayButton[data-loading]:disabled:hover { background: var(--blue-2); color: #FFFFFF; cursor: default; }
#payButton[data-loading]:disabled,
#payButton[data-loading]:disabled:hover {
  opacity: 1; background: var(--blue-2); color: #FFFFFF;
}
/* The microcopy hugs the button it belongs to; the error takes the
   group step above it. It used to sit at 0, which painted the red
   line flush against the top of the blue pill. */
.pay-note { font-size: 12px; color: rgba(14, 10, 7, .6); margin: 8px 0 0 0; }
/* The fallback card's only status line; the order side of the page
   has none, because the orbit takeover says everything a "loading"
   string would have. */
.pay-status { font-size: 14px; color: rgba(14, 10, 7, .6); margin: 8px 0 0 0; }
#payMain #payError { margin: 0 0 12px 0; }

/* The country select is the one field on this page book.css doesn't
   own, so it needs the touch rule spelled out again: under 16px iOS
   Safari zooms the viewport in on focus and stays there, which on a
   ten field billing form happens ten times. See the block in
   book.css for the whole reasoning. */
@media (max-width: 900px), (pointer: coarse) {
  .pay-select { font-size: 16px; }
}
/* On a phone the one action on the page takes the full width of the
   card, the way /book's Confirm Booking already does (.bk-submit).
   A content width button reads as one option among several when it
   is the only thing left to do, and it is the hardest shape to hit
   one handed. */
@media (max-width: 560px) {
  #payButton { width: 100%; }
}
