/* ==========================================================================================================
   AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
   The ONE file the preview Worker serves and the CDN receives as pubwebpay-pay.css: the main page, then the card frame.
   It is built by `pnpm build:css` (scripts/build-figma-css.js) from the source files below, in this order, and any
   edit made here is overwritten the next time it runs (`pnpm dev`, both deploy commands and `pnpm copy:cdn` run it).
   Edit the source files in site/Content/pay/ instead, then run `pnpm build:css`. See site/Content/CLAUDE.md.
     main-page/theme/light.css
     main-page/layout/page.css
     main-page/layout/panels-and-field-order.css
     main-page/layout/desktop-grid.css
     main-page/payment/methods/order-and-spacing.css
     main-page/payment/methods/row-and-radio.css
     main-page/payment/methods/logos-and-labels.css
     main-page/payment/methods/card-brand-logo-tile.css
     main-page/payment/methods/apple-pay-and-google-pay.css
     main-page/layout/spacing-resets.css
     main-page/payment/methods/card-expanded.css
     main-page/payment/fields.css
     main-page/payment/methods/payto-expanded.css
     main-page/header/guest-menu.css
     main-page/header/merchant-logo-and-heading.css
     main-page/payment/amount.css
     main-page/footer/secure-payment.css
     main-page/payment/methods/hide-card-logo-strip.css
     main-page/review/page.css
     main-page/confirmation/success.css
     main-page/confirmation/failure.css
     main-page/payment/methods/unionpay.css
     main-page/header/hide-top-bar.css
     main-page/review/alipay-dialog.css
     main-page/theme/dark.css
     main-page/dialogs/loading.css
     main-page/dialogs/tooltip.css
     main-page/payment/methods/hide-card-brand-icons.css
     card-frame/theme/light.css
     card-frame/accessibility/reduced-motion.css
     card-frame/layout/page-and-form.css
     card-frame/fields/inputs-and-labels.css
     card-frame/fields/card-number-brand-icon.css
     card-frame/validation/errors-and-summary.css
     card-frame/buttons/validate.css
     card-frame/theme/dark.css
     unionpay-frame/layout/page-and-form.css
     unionpay-frame/fields/inputs-and-labels.css
     unionpay-frame/buttons/validate.css
   ========================================================================================================== */

/* main-page/theme/light.css — the light colour and size variables of the payment page and its Review step (the main document, which holds the card frame). The other files in main-page/ use them. The hosted card inputs use card-frame/theme/light.css inside their iframe. Light by default; dark requires data-theme="dark" (main-page/theme/dark.css). */

:root {
  --f-bg: #fff;
  --f-surface: #fff;
  --f-ink: #1f2a56;
  --f-navy: #27346e;
  --f-navy-hover: #1d2858;
  --f-on-navy: #fff;
  --f-label: #2e3a66;
  --f-muted: #5f6880;
  --f-placeholder: #737a8f;
  --f-line: #dde1ea;
  --f-line-strong: #b4bccc;
  --f-field: #fff;
  --f-soft: #f5f7fb;
  --f-chip: #e4e8f1;
  --f-ring: rgba(39, 52, 110, .18);
  --f-logo-tile: #111827;
  --f-selected: #08a35c; /* the Figma's green radio dot (#00d072), darkened to reach 3:1 against white */
  --f-green: #08804a; /* Review's PAY NOW: the Figma's #00d072 reaches only 2:1 with white text, darkened to 5:1 */
  --f-green-hover: #066b3e;
  --f-on-green: #fff;
  --f-danger: #d92d20;
  --f-danger-bg: #fef3f2;
  --f-danger-line: #fecdca;
  --f-radius: 8px;
  --f-radius-row: 10px;
  --f-radius-card: 20px;
  --f-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --f-drop-shadow: drop-shadow(0 1px 2px rgba(16, 24, 40, .04)) drop-shadow(0 2px 8px rgba(16, 24, 40, .05)); /* --f-shadow as a filter, for the card drawn from many grid items */
  --f-btn-h: 52px;
  --f-font: "Open Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

/* the page itself: body type and theme background, the container width (two 590px cards with a 30px gap), the Ace page-content resets. */
body {
  font-family: var(--f-font);
  -webkit-font-smoothing: antialiased;
  background: var(--f-bg);
  color: var(--f-ink);
  font-size: 14px;
  line-height: 1.5;
}
.container {
  max-width: 1240px; /* two cards of about 590px with a 30px gap, as in the Figma's 1440px frame */
  width: 100%;
  padding: 0 24px 56px;
}
.page-content.layout-page-content {
  background: transparent;
  border: 0;
  padding: 0;
}
.page-content > .row { margin: 0; }
.page-content > .row > .col-lg-12 { padding: 0; }
.page-content > .row > .col-lg-12 > .row { margin: 0; } /* header row: logo + title */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 { padding: 0; }

@media (max-width: 767px) {
  .container { padding: 0 12px 40px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- the two cards: one under the other, side by side from 992px ---------- */
form.payment-form {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
}
form.payment-form::after { content: ""; display: table; clear: both; }
form.payment-form > .row,
form.payment-form > .col-lg-12 { margin-left: 0; margin-right: 0; }
form.payment-form > .row:first-of-type { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
form.payment-form > .row:first-of-type::before,
form.payment-form > .row:first-of-type::after { display: none; } /* Bootstrap's clearfix pseudo-elements would become grid items */
form.payment-form > .row:first-of-type > .col-lg-12 { grid-column: 1 / -1; grid-row: 1; float: none; width: auto; padding: 0; } /* the validation strip sits above both cards */
form.payment-form > .row:first-of-type > .col-lg-6 {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0 0 20px;
  padding: 28px 28px 18px;
  background: var(--f-surface);
  border-radius: var(--f-radius-card);
  box-shadow: var(--f-shadow);
}

/* card title: "Your Details"; the right card has none in the Figma (it opens on the payment methods) */
form.payment-form .align-center.padding-10 {
  text-align: left !important;
  padding: 0;
  margin-bottom: 20px;
}
form.payment-form .align-center.padding-10 > span {
  display: block;
  margin: 0; /* the page gives the span class "h4": Bootstrap's 10px top and bottom margins would add 20px round the title */
  text-align: left !important;
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--f-ink); /* .text-muted */
}
/* the Figma's order in "Your Details": the customer's name, email and contact number first, then the business name and ABN, then the references and
   anything else (the page writes Company Name and ABN first). Order only moves fields the page has; a merchant without one simply skips it. */
form.payment-form > .row:first-of-type > .col-lg-6 > * { order: 7; }
form.payment-form > .row:first-of-type > .col-lg-6 > .align-center.padding-10 { order: 1; }
form.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#CustomerName) { order: 2; }
form.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#CustomerEmail) { order: 3; }
form.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#ContactNumber) { order: 4; }
form.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#CompanyName) { order: 5; }
form.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#AustralianBusinessNumber) { order: 6; }
@media (max-width: 991px) {
  form.payment-form > .row:first-of-type > .col-lg-6:has(+ .col-lg-6) { display: flex; flex-direction: column; } /* order needs a flex column below 992px (from 992px the form's grid applies it) */
}

@media (max-width: 767px) {
  form.payment-form > .row:first-of-type > .col-lg-6 { padding: 22px 16px 18px; border-radius: 16px; }
}

/* From 992px the Figma's grouping: Customer Reference and Additional Reference (and b2bpay's Departure Date and References 1 and 2) join the customer's
   details in the left card, and the right card holds only the payment methods. Those fields are children of the right-hand column, so both columns are
   dissolved (display: contents) and every child is placed in the form's grid: fields in the left track, methods in the right, each with the card's
   side padding (the right column's hidden title is moved after the fields, and its ::before and ::after are the method card's title and bottom spacing); the
   white, rounded cards behind them are drawn by the row's own ::before and ::after (end of this block). The rows are fine-grained so the two cards do not share heights: a
   field spans three rows and a method two, which settles every row at about 32px, a field at about 96px and a method at its own 64px, so the methods keep
   an even spacing whatever the fields beside them measure. "dense" fills each track from the top on its own. */
@media (min-width: 992px) {
  form.payment-form > .row:first-of-type { grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr); grid-auto-flow: row dense; align-items: stretch; }
  form.payment-form > .row:first-of-type > .col-lg-6 { display: contents; }
  form.payment-form > .row:first-of-type { filter: var(--f-drop-shadow); } /* the cards are strips of white items, so no box-shadow can wrap them: one shadow around the whole grid's outline gives each card its shadow */
  form.payment-form > .row:first-of-type > .col-lg-6 > *,
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6::after { grid-column: 1; grid-row-end: span 3; margin: 0; padding: 0 30px 18px; }
  form.payment-form > .row:first-of-type > .col-lg-6 > .align-center.padding-10 { grid-row-end: span 1; padding-top: 15px; padding-bottom: 15px; } /* one row; the right card's own title ("Payment Details") sits level with "Your Details" */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .align-center.padding-10 { grid-column: 3; order: -1; }
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > :is(#CardDetail, .apple-div, .payto-div, .alipay-plus-div, .wechat-div, .slicepay-div, .latpay-div) { grid-column: 3; margin: 0; padding: 0 30px 12px; }
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > :where(#CardDetail, .apple-div, .payto-div, .alipay-plus-div, .wechat-div, .slicepay-div, .latpay-div) { grid-row-end: span 2; } /* :where() keeps the id out of the specificity, so the spans below can override */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .wechat-div { grid-row-end: span 3; } /* the row carries a text snippet under it */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .latpay-div { grid-row-end: span 10; text-align: center; } /* b2bpay's TravelPay Later text (about 260px): after the methods (order, below), spread thin enough not to stretch the fields beside it */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > #CardDetail:has(#AuthoriseCard) { grid-row-end: span 12; } /* the open Card row with the card frame */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .payto-div:has(input:not([type="hidden"])) { grid-row-end: span 10; } /* Pay with Bank, expanded: account fields and Validate Bank */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6::after { content: ""; display: block; grid-column: 3; order: 99; grid-row-end: span 1; min-height: 18px; padding: 0; }
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6::before { content: ""; display: block; grid-column: 3; order: 50; grid-row-end: span 1; min-height: 12px; margin: 0; padding: 0; } /* spacing after the fields, before the methods' bottom */
  /* the two white cards themselves: one box per column from the first card row to the bottom of the grid, so they are always as tall as the taller column.
     Absolutely positioned (inside the grid they would push the strips below them, as grid items cannot overlap); each needs both column lines, because
     an auto end line means the container's edge; behind the strips (z-index in the row's own stacking context, which the filter above creates). */
  form.payment-form > .row:first-of-type::before,
  form.payment-form > .row:first-of-type::after { content: ""; display: block; position: absolute; inset: 0; grid-row: 2; z-index: -1; background: var(--f-surface); border-radius: var(--f-radius-card); }
  form.payment-form > .row:first-of-type::before { grid-column: 1 / 2; }
  form.payment-form > .row:first-of-type::after { grid-column: 3 / 4; }
}

/* Keep fields from both HTML columns inside the details card when the cards stack. Empty rows collapse for fields a merchant does not show. */
@media (width < 992px) {
  form#InitiatePayment.payment-form > .row:first-of-type { grid-template-rows: auto repeat(12, auto) 20px repeat(11, auto); align-items: stretch; filter: var(--f-drop-shadow); --stacked-panel-padding: 28px; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 { display: contents; }
  form#InitiatePayment.payment-form .form-group:has(> .input-group > #PaymentAmount) { top: -128px; } /* The filtered row starts below the form's 136px amount space, as on desktop. */
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > :not(.form-group:has(#PaymentAmount), #payment-amount-threshold-warning) { grid-column: 1; margin: 0; padding: 0 var(--stacked-panel-padding) 18px; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .align-center.padding-10 { grid-row: 2; padding-top: 28px; padding-bottom: 20px; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#CustomerName) { grid-row: 3; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#CustomerEmail) { grid-row: 4; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#ContactNumber) { grid-row: 5; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#CompanyName) { grid-row: 6; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#AustralianBusinessNumber) { grid-row: 7; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#CustomerReference) { grid-row: 8; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#AdditionalReference) { grid-row: 9; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#Reference1) { grid-row: 10; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#DepartureDate) { grid-row: 11; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .form-group:has(#Reference2) { grid-row: 12; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .align-center.padding-10 { grid-row: 15; margin: 0; padding-top: 28px; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .apple-div:has(apple-pay-button) { grid-row: 16; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .apple-div:has(#google-pay-div) { grid-row: 17; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > #CardDetail { grid-row: 18; }
  form#InitiatePayment.payment-form #CardDetail:not(:has(#AuthoriseCard)) [data-paymentmethod="Card"] { grid-column: 1; grid-row: 18; width: auto; margin: 0 var(--stacked-panel-padding) 10px; }
  form#InitiatePayment.payment-form #CardDetail:not(:has(#AuthoriseCard)) [data-paymentmethod="UnionPay"] { grid-column: 1; grid-row: 19; width: auto !important; margin: 0 var(--stacked-panel-padding) 10px !important; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .payto-div { grid-row: 20; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .alipay-plus-div { grid-row: 21; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .wechat-div { grid-row: 22; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .slicepay-div { grid-row: 23; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .latpay-div { grid-row: 24; margin: 0; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6::after { content: ""; display: block; grid-column: 1; grid-row: 13; min-height: 18px; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6::after { grid-row: 25; }
  form#InitiatePayment.payment-form > .row:first-of-type::before,
  form#InitiatePayment.payment-form > .row:first-of-type::after { content: ""; display: block; position: absolute; inset: 0; grid-column: 1; grid-row: 2 / 14; z-index: -1; background: var(--f-surface); border-radius: var(--f-radius-card); }
  form#InitiatePayment.payment-form > .row:first-of-type::after { grid-row: 15 / 26; }
}
@media (width < 768px) {
  form#InitiatePayment.payment-form > .row:first-of-type { --stacked-panel-padding: 16px; }
  form#InitiatePayment.payment-form > .row:first-of-type > .col-lg-6 > .align-center.padding-10 { padding-top: 22px; }
  form#InitiatePayment.payment-form > .row:first-of-type::before,
  form#InitiatePayment.payment-form > .row:first-of-type::after { border-radius: 16px; }
}

/* ---------- payment methods: a list of white rows in the Payment Details card ---------- */
/* The methods are siblings of the payment fields inside the right-hand card. The card becomes a column so the methods can be put in the Figma's order
   (Apple Pay, Google Pay, Card, bank, Alipay+, WeChat) under the fields, whatever order the page writes them in. */
@media (max-width: 991px) {
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 { display: flex; flex-direction: column; } /* from 992px the column is dissolved into the form's grid instead (above) */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > #CardDetail { margin-top: 8px; }
}
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > #CardDetail { order: 12; }
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .apple-div:has(apple-pay-button) { order: 10; }
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .apple-div:has(#google-pay-div) { order: 11; }
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .payto-div { order: 13; }
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .alipay-plus-div { order: 14; }
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .wechat-div { order: 15; }
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .slicepay-div { order: 16; }
form.payment-form :is(#CardDetail, .apple-div, .payto-div, .alipay-plus-div, .wechat-div, .slicepay-div) { margin-bottom: 10px; padding-top: 0; }
/* b2bpay's TravelPay Later (Latitude) promotion: after the methods; below 992px a soft panel between the fields and the method list */
form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .latpay-div { order: 17; }
@media (max-width: 991px) {
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .latpay-div { order: 8; margin: 8px 0 8px; padding: 14px 16px; background: var(--f-soft); border-radius: 12px; }
  /* The Initiate form overrides this with its shared stacked grid; other payment forms keep their fields before the methods title. */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .align-center.padding-10 { order: 9; margin: 12px 0 16px; padding: 0; }
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .align-center.padding-10 > span { margin: 0; font-size: 22px; } /* Bootstrap's .h4 margins would add 20px */
}
form.payment-form :is(#CardDetail, .apple-div, .payto-div, .alipay-plus-div, .wechat-div, .slicepay-div)::after { content: ""; display: table; clear: both; }

/* the list has no "OR" lines */
form.payment-form .separator { display: none; }

/* nested columns double the padding around each method: flatten */
form.payment-form :is(.apple-div, .payto-div, .slicepay-div, .alipay-plus-div, .wechat-div, #CardDetail) .col-xs-12 { float: none; width: 100%; padding-left: 0; padding-right: 0; }
form.payment-form :is(.apple-div, .payto-div, .alipay-plus-div, .wechat-div, #CardDetail) .form-group.text-center { margin-bottom: 0; } /* the button wrappers; Pay with Bank's account fields keep their spacing */
form.payment-form .clearfix { display: none; }

/* "Pay with PayTo" repeats the Bank row's own label (the sandbox's stylesheet also moves it under the row): not needed */
form.payment-form .payto-div > .col-xs-12 > .col-xs-12:has(> p:only-child) { display: none; }
/* the WeChat text snippet above its row: small muted text, left-aligned */
form.payment-form .wechat-div > .col-xs-12 > .col-xs-12 { margin: 0 0 6px; font-size: 12px; color: var(--f-muted); text-align: left !important; } /* inline text-align:center */
form.payment-form .wechat-div > .col-xs-12 > .col-xs-12:empty { display: none; }

/* a row: white, bordered, the label left-aligned after a radio ring */
form.payment-form .btn-recaptcha {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: none;
  height: var(--f-btn-h);
  margin: 0;
  padding: 0 16px 0 46px !important; /* inline padding:0 on the Card button */
  background: var(--f-surface) !important;
  color: var(--f-ink) !important;
  border: 1px solid var(--f-line) !important;
  outline: 0 !important; /* .btn-black draws a 1px grey outline */
  border-radius: var(--f-radius-row) !important;
  font-family: var(--f-font);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: box-shadow .12s ease;
}
form.payment-form .btn-recaptcha::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 1.5px solid var(--f-line-strong);
  border-radius: 50%;
  background: var(--f-field);
  transition: border-color .12s ease, box-shadow .12s ease;
}
form.payment-form .btn-recaptcha:hover:not(:disabled) { background: var(--f-surface) !important; box-shadow: 0 0 0 3px var(--f-ring); }
form.payment-form .btn-recaptcha:active::before { border-color: var(--f-navy); box-shadow: inset 0 0 0 4px var(--f-surface), inset 0 0 0 9px var(--f-navy); }
form.payment-form .btn-recaptcha:focus-visible { box-shadow: 0 0 0 3px var(--f-ring); border-color: var(--f-navy) !important; }

@media (max-width: 767px) {
  form.payment-form .btn-recaptcha { padding: 0 10px 0 40px !important; gap: 6px; }
  form.payment-form .btn-recaptcha::before { left: 12px; }
}

/* the method logos: the logos are white artwork for a black button, so each sits on a small dark tile, as the Figma's logo tiles do. The Card button's original brand icons are hidden separately and replaced by a card icon tile in card-brand-logo-tile.css. */
form.payment-form .btn-recaptcha img {
  box-sizing: border-box;
  height: 30px !important; /* inline sizes */
  width: 92px !important; /* one size for every logo tile: each logo sets its own width inline (the PayTo mark is narrow, Alipay+ and WeChat wide), and object-fit centres it in the tile */
  margin: 0 4px 0 0 !important; /* inline offsets */
  padding: 4px 8px;
  object-fit: contain;
  background: var(--f-logo-tile);
  border-radius: 6px;
}
form.payment-form .btn-recaptcha:is([data-paymentmethod="PayTo"], [data-paymentmethod="UnionPay"], [data-paymentmethod="AliPayPlus"]) img { padding: 2px 8px; }
/* the Figma's brand-coloured tiles where the brand has one (the logos are white artwork, so they read on their brand colour) */
form.payment-form .btn-recaptcha[data-paymentmethod="AliPayPlus"] img { background: #1677ff; }
form.payment-form .btn-recaptcha[data-paymentmethod="WeChat"] img { background: #07c160; }
/* The real pages serve a different set (/Content/Images/PaymentMethodLogos/): UnionPay, PayTo and Alipay+ are 1500 x 1500 squares with an opaque white background
   (measured: the mark is only 51%, 37% and 20% of the height), and WeChat Pay is a transparent green and grey wordmark. On a dark or brand-colour tile that reads as a small
   white box inside a frame, or green on green, so these four sit on a plain white tile with a hairline border and the white squares melt into it. Matched by the files'
   folder, so the sandbox's own white artwork above is untouched. */
form.payment-form .btn-recaptcha[data-paymentmethod] img[src*="/PaymentMethodLogos/"] { padding: 3px 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--f-line); }
form.payment-form .btn-recaptcha:is([data-paymentmethod="PayTo"], [data-paymentmethod="UnionPay"], [data-paymentmethod="AliPayPlus"]) img[src*="/PaymentMethodLogos/"] { padding: 2px 6px; }
/* Where the browser supports object-view-box (Chrome and Edge; limited elsewhere), each square is cropped to its mark so the mark fills the tile; the other browsers keep the
   whole square, which is smaller but just as clean on the white tile. The insets leave a little white round each mark. */
@supports (object-view-box: inset(0)) {
  form.payment-form .btn-recaptcha img[src$="/PaymentMethodLogos/AliPay.svg"] { object-view-box: inset(38% 6% 38% 6%); }
  form.payment-form .btn-recaptcha img[src$="/PaymentMethodLogos/PayTo.svg"] { object-view-box: inset(30% 8% 30% 8%); }
  form.payment-form .btn-recaptcha img[src$="/PaymentMethodLogos/UnionPay.svg"] { object-view-box: inset(23% 6% 23% 6%); }
}
/* Firefox and Safari have no object-view-box, and the whole square drawn in the tile left the marks a few pixels tall (Alipay+ barely readable). There: Alipay+, a thin wide mark, is shown with
   object-fit: cover, which crops the white square to the band the mark sits in; PayTo and UnionPay, too tall for that, are swapped (content: url()) for the same artwork cut to its mark
   and inlined (the PayTo wordmark as a 107 x 52 PNG, the UnionPay mark as a cropped SVG, as on the registration page: the page's PayTo file is a 185KB embedded photo). A swap is only
   made in browsers that cannot crop, so Chrome and Edge keep the page's own files. */
@supports not (object-view-box: inset(0)) {
  form.payment-form .btn-recaptcha img[src$="/PaymentMethodLogos/AliPay.svg"] { object-fit: cover !important; } /* !important: the page writes object-fit: contain inline on this image */
  form.payment-form .btn-recaptcha img[src$="/PaymentMethodLogos/PayTo.svg"] { content: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA0CAMAAAC6uTYcAAAAXVBMVEX///8VERL+/f7FxMQmIiMYExX8/PwjHyAkICEdGRorJyiHhYU2MjPAv7+Zl5cPCwxFQkOioKHZ2Njl5eX39/dUUFHv7++ysbFeW1yQjY7My8tpZmd0cXKrqqt7eXno/jJUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAFMElEQVRYw7WY24KiMAyG29JTyvkkCML7P+YmLSgw6jLjTC52R0G+JvmTpjD2iQktfuGWsyRRD9EbG2rxKzSh2aVsHag3BklbXtjHMCFYl3AF9q2B4klH937IijlIa81bs1aCitlnLMHi/H+gFZd/BtNsUvIUimCq+wAm2CWBkyiEQXL5OUyzjEtz2iQv8Sc/9qtV9jzLqvbHfglWO/gOC1z9U5hmw3dQBBuIJR72DVak5PdY0cGv051ry7LyhPYXVnNZrCGlnKNtWFbl+et42j3rKpPF2rE8mcEHy8KYZf1LTcLSWhZWnBuAcIFzl51K24MleYfLzV8lL4Hg2sri0iIFDaSEc61rZVnpFLG4k2Q2NNuHwZRxD3uwoIjRbgWgyyo9AVtYuEaVTxQaRWulvEnj/wym8pJNFuSG5fjNP19MEmMyBtbbGggsC0WWXSvGhmtGVo7GcNnO2d38xQSzuWM1Gg2DgT5qEj/pMfxL/2n9KAv6MrCk6jcxECxKAObqsETN6hbDdfTLP4Faskfoxhf6/Ulf/dqxBEsNT6IvCcBBoT+wNIasYWlgMR3FfVG0Y9dQO8rKbGqWn3b4oXrEsKRPdAdaopKKNeySlneji1XBDzFEFn4YlVQFY1GLAwsAzgot3hxxxVVoZ9hycw7Vc20Y6BDVFYs48jznqI3UqSfa0NUNrOQx61D9SmG5oVKSmrEenJpp/6HN2KmRJqivmncYUc1KBUH+rm3bRHWTArnXfDL2fV9YhYMIPrwuOPRlmsYJuHzGuIXIkuM9Ot4x/ayWLaQYTTAy9CY7MFZyKqNjLdMoh04Z7iJcXNWm/smVMwRpCvRzIsXU+EXRPPzasPw+z8Z1t5YcF1k5dehReBnAZ4fLsSKIaBYJzehp5WNEksMIYbxj/P4ZC7fezRBiqXZwkdYcWDidovVzWXlx40NZU0XdVPYg8SZyx0hSBDZZS6t5wpKYRwrE/eEJLvg+KHyprzDMUsdIb4UjP0NhaHbDe67+UaGknrJ6tpkMAqt4ykLN66VNsMuI2cNuBstNWGIUkwZD6PP2lOWDJu5B8+htSA/1tdS/6ElWfdalA9Ybsbz+UGatMmHQO7Iw5dY4zEC27i4kVxbBYa/cxZAek1ICI5+VObA0yZ7PtbTc19mONZFftKdglHXT5lhbVtr8Rj+/z5CvWJkXW6MbLdrVL1QUbjy4zOHRORdWTHnExmGoNCn+XCkOM04UlTT2BGv29VWu2vA7AJ5wVCsOLMoj5nPs4wJQiZjy9Nb384ALbDbj6ssYUluNqyqazcrys+dmVN7NNhk5HlrKLNZRGotr3Ix1Kwtb3G27N5A2sF05w6GwPob07Y3aS7LMPluWMROVCbHQ72rZadlQbCfI+2wD+bjb8+oW9Y7lBddrrvI0sAZya13Tbj40MKZ1HZHcpbLjVNV1NfUA8ut8mMbXeHc8QiV0Y1EUt4hFeG11BZsipE9YdLxSzimvb2twg3AO9xpj38+9j5MwqldvdmXqwzK03WczNmZ1HQSNpO5qjifOhbX2i92srZc3CuEa9hQvoesj84ezw+7ZT462y9nh1clb7M9AOFW66t42/+xMJOpLPSrHx61av3/WE2fOdU2R0NCwDcO3z7DZqTOsjx9mfDd9/9HZHCUIOVfuulMQjjncnn/nMJ3MFrtMWdYdcyvYnMu/epdyKAwU6kzviP5LksDj8+djP9CLJxU/JdQf3hoeW5Lp43df/p1ehu/03pprs194pxfCqushfWNDrT936ifvYP8BTohshw3lgXsAAAAASUVORK5CYII="); }
  form.payment-form .btn-recaptcha img[src$="/PaymentMethodLogos/UnionPay.svg"] { content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='120 350 1260 800'%3E%3Cdefs%3E%3CclipPath id='7e34e23fa9'%3E%3Cpath d='M 130 363.1 L 744 363.1 L 744 1137 L 130 1137 Z M 130 363.1 ' clip-rule='nonzero'/%3E%3C/clipPath%3E%3CclipPath id='807ac706ec'%3E%3Cpath d='M 413 363.1 L 1038 363.1 L 1038 1137 L 413 1137 Z M 413 363.1 ' clip-rule='nonzero'/%3E%3C/clipPath%3E%3CclipPath id='567c2dcf78'%3E%3Cpath d='M 754 363.1 L 1367 363.1 L 1367 1137 L 754 1137 Z M 754 363.1 ' clip-rule='nonzero'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg clip-path='url(%237e34e23fa9)'%3E%3Cpath fill='%23e21836' d='M 372.9 363.1 L 681.3 363.1 C 724.4 363.1 751.1 398.2 741.1 441.4 L 597.5 1058.1 C 587.4 1101.2 544.3 1136.3 501.2 1136.3 L 192.9 1136.3 C 149.9 1136.3 123.1 1101.2 133.1 1058.1 L 276.7 441.4 C 286.8 398.2 329.8 363.1 372.9 363.1 ' fill-opacity='1' fill-rule='nonzero'/%3E%3C/g%3E%3Cg clip-path='url(%23807ac706ec)'%3E%3Cpath fill='%2300447c' d='M 655.7 363.1 L 1010.3 363.1 C 1053.3 363.1 1033.9 398.2 1023.8 441.4 L 880.2 1058.1 C 870.2 1101.2 873.3 1136.3 830.2 1136.3 L 475.6 1136.3 C 432.4 1136.3 405.7 1101.2 415.9 1058.1 L 559.4 441.4 C 569.6 398.2 612.6 363.1 655.7 363.1 ' fill-opacity='1' fill-rule='nonzero'/%3E%3C/g%3E%3Cg clip-path='url(%23567c2dcf78)'%3E%3Cpath fill='%23007b84' d='M 996.2 363.1 L 1304.6 363.1 C 1347.7 363.1 1374.5 398.2 1364.4 441.4 L 1220.8 1058.1 C 1210.7 1101.2 1167.5 1136.3 1124.4 1136.3 L 816.2 1136.3 C 773.1 1136.3 746.3 1101.2 756.4 1058.1 L 900 441.4 C 910 398.2 953.1 363.1 996.2 363.1 ' fill-opacity='1' fill-rule='nonzero'/%3E%3C/g%3E%3Cpath fill='%23fefefe' d='M 453.5 560.8 C 421.8 561.1 412.4 560.8 409.4 560.1 C 408.3 565.5 386.9 664.3 386.8 664.4 C 382.2 684.3 378.8 698.6 367.5 707.8 C 361 713.1 353.4 715.7 344.7 715.7 C 330.6 715.7 322.4 708.7 321.1 695.5 L 320.8 690.9 C 320.8 690.9 325.1 664.2 325.1 664 C 325.1 664 347.5 574 351.6 562.1 C 351.8 561.4 351.8 561.1 351.9 560.8 C 308.2 561.1 300.4 560.8 299.9 560.1 C 299.6 561 298.5 566.6 298.5 566.6 L 275.6 668 L 273.6 676.6 L 269.8 704.8 C 269.8 713.1 271.4 719.9 274.7 725.7 C 285.2 744 315 746.7 331.8 746.7 C 353.5 746.7 373.9 742.1 387.7 733.7 C 411.6 719.5 417.8 697.4 423.4 677.8 L 426 667.7 C 426 667.7 449.1 574.3 453.1 562.1 C 453.2 561.4 453.3 561.1 453.5 560.8 Z M 532.2 636.2 C 526.6 636.2 516.4 637.5 507.3 642 C 504 643.7 500.8 645.7 497.5 647.6 L 500.5 636.8 L 498.8 635 C 479.4 639 475.1 639.5 457.2 642 L 455.7 643 C 453.6 660.3 451.7 673.3 444 707.2 C 441.1 719.7 438 732.4 435 744.9 L 435.8 746.4 C 454.2 745.5 459.7 745.5 475.7 745.7 L 477 744.3 C 479 733.9 479.3 731.5 483.8 710.4 C 485.9 700.4 490.3 678.5 492.5 670.7 C 496.5 668.8 500.4 667 504.2 667 C 513.1 667 512 674.8 511.7 677.9 C 511.3 683.2 508 700.2 504.7 714.9 L 502.5 724.4 C 500.9 731.3 499.2 738.1 497.6 745.1 L 498.3 746.4 C 516.4 745.5 522 745.5 537.4 745.7 L 539.2 744.3 C 542 728.1 542.9 723.7 547.8 700.1 L 550.3 689.2 C 555.2 668 557.6 657.2 553.9 648.4 C 550.1 638.5 540.7 636.2 532.2 636.2 Z M 620.1 658.4 C 610.5 660.3 604.4 661.5 598.3 662.3 C 592.2 663.3 586.3 664.2 577 665.5 L 576.3 666.1 L 575.6 666.7 C 574.6 673.6 573.9 679.6 572.7 686.6 C 571.6 693.9 569.9 702.2 567.2 714.1 C 565.1 723.2 564 726.4 562.8 729.6 C 561.6 732.8 560.3 735.9 557.9 744.9 L 558.5 745.7 L 558.9 746.4 C 567.6 746 573.3 745.7 579.2 745.7 C 585 745.5 591.1 745.7 600.4 745.7 L 601.3 745.1 L 602.1 744.3 C 603.5 736.2 603.7 734.1 604.5 730.1 C 605.3 725.9 606.8 720.1 610.2 704.4 C 611.9 697.1 613.7 689.8 615.4 682.3 C 617.1 674.8 619 667.5 620.8 660.1 L 620.5 659.2 Z M 620.3 628.4 C 611.6 623.2 596.2 624.9 585.9 632 C 575.6 639 574.4 648.9 583.1 654.2 C 591.7 659.2 607.2 657.7 617.4 650.5 C 627.7 643.4 629 633.5 620.3 628.4 Z M 673.3 748.1 C 691 748.1 709.1 743.2 722.8 728.7 C 733.3 716.9 738.1 699.5 739.8 692.3 C 745.2 668.4 741 657.3 735.6 650.5 C 727.6 640.2 713.3 636.8 698.5 636.8 C 689.6 636.8 668.4 637.7 651.8 653 C 640 664 634.5 679 631.1 693.3 C 627.8 707.9 624 734.2 648.1 744 C 655.6 747.2 666.3 748.1 673.3 748.1 Z M 671.9 694.4 C 675.9 676.3 680.8 661.2 693.1 661.2 C 702.7 661.2 703.4 672.4 699.1 690.6 C 698.4 694.6 694.8 709.5 690.1 715.9 C 686.8 720.6 682.8 723.5 678.5 723.5 C 677.2 723.5 669.5 723.5 669.4 712 C 669.3 706.4 670.5 700.6 671.9 694.4 Z M 784 745.7 L 785.4 744.3 C 787.3 733.9 787.7 731.5 792 710.4 C 794.2 700.4 798.7 678.5 800.8 670.7 C 804.8 668.8 808.7 667 812.5 667 C 821.4 667 820.3 674.8 820 677.9 C 819.7 683.2 816.4 700.2 813 714.9 L 810.9 724.3 C 809.3 731.3 807.5 738.1 806 745.1 L 806.6 746.4 C 824.8 745.5 830.1 745.5 845.7 745.7 L 847.6 744.3 C 850.3 728.1 851 723.7 856.1 700.1 L 858.6 689.2 C 863.4 667.9 865.9 657.2 862.3 648.4 C 858.3 638.5 848.9 636.2 840.5 636.2 C 834.9 636.2 824.7 637.5 815.6 642 C 812.3 643.7 809.1 645.7 805.9 647.7 L 808.7 636.8 L 807.2 635 C 787.8 639 783.3 639.5 765.4 642 L 764 643 C 761.9 660.3 760.1 673.3 752.4 707.2 C 749.4 719.7 746.4 732.4 743.3 744.9 L 744.2 746.4 C 762.6 745.5 768.1 745.5 784 745.7 Z M 917.5 746.4 C 918.7 740.9 925.5 707.8 925.5 707.8 C 925.5 707.8 931.3 683.5 931.7 682.6 C 931.7 682.6 933.5 680.1 935.3 679.1 L 938 679.1 C 963.2 679.1 991.7 679.1 1014.1 662.7 C 1029.3 651.4 1039.7 634.7 1044.3 614.5 C 1045.5 609.5 1046.4 603.6 1046.4 597.7 C 1046.4 590 1044.8 582.3 1040.4 576.3 C 1029 560.3 1006.3 560.1 980.1 559.9 C 980 559.9 967.2 560.1 967.2 560.1 C 933.6 560.5 920.2 560.3 914.7 559.7 C 914.2 562.1 913.3 566.5 913.3 566.5 C 913.3 566.5 901.3 622.2 901.3 622.2 C 901.3 622.2 872.6 740.7 871.2 746.2 C 900.5 745.9 912.5 745.9 917.5 746.4 Z M 939.8 647.5 C 939.8 647.5 952.6 591.9 952.5 592.1 L 952.9 589.3 L 953.1 587.1 L 958.2 587.6 C 958.2 587.6 984.5 589.9 985.2 590 C 995.5 594 999.8 604.4 996.8 617.9 C 994.1 630.3 986.1 640.7 975.8 645.7 C 967.3 649.9 956.9 650.3 946.2 650.3 L 939.3 650.3 Z M 1019.3 695.4 C 1015.9 709.8 1012 736.1 1036.1 745.5 C 1043.8 748.7 1050.6 749.7 1057.6 749.4 C 1065 749 1071.8 745.3 1078.1 739.9 C 1077.6 742.1 1077 744.3 1076.4 746.5 L 1077.5 747.9 C 1094.8 747.2 1100.2 747.2 1118.9 747.3 L 1120.6 746 C 1123.4 729.9 1125.9 714.3 1133 683.5 C 1136.5 668.8 1140 654.2 1143.5 639.5 L 1143 637.9 C 1123.6 641.5 1118.4 642.2 1099.8 644.9 L 1098.4 646 C 1098.2 647.5 1098 648.9 1097.9 650.4 C 1095 645.7 1090.8 641.7 1084.3 639.2 C 1076 636 1056.6 640.2 1039.9 655.4 C 1028.1 666.2 1022.5 681.1 1019.3 695.4 Z M 1059.9 696.3 C 1064.1 678.6 1068.8 663.5 1081.2 663.5 C 1089 663.5 1093.1 670.7 1092.2 683 C 1091.6 686.1 1090.9 689.3 1090 692.9 C 1088.8 698.2 1087.4 703.4 1086.1 708.7 C 1084.8 712.3 1083.3 715.6 1081.6 717.9 C 1078.4 722.4 1070.9 725.2 1066.5 725.2 C 1065.3 725.2 1057.7 725.2 1057.4 714 C 1057.4 708.4 1058.5 702.6 1059.9 696.3 Z M 1272.1 637.7 L 1270.6 636 C 1251.5 639.9 1248 640.5 1230.4 642.9 L 1229.1 644.2 C 1229.1 644.4 1229 644.7 1228.9 645 L 1228.9 644.7 C 1215.8 674.9 1216.2 668.4 1205.5 692.2 C 1205.4 691.1 1205.4 690.5 1205.4 689.3 L 1202.7 637.7 L 1201 636 C 1181 639.9 1180.5 640.5 1162 642.9 L 1160.6 644.2 C 1160.4 644.8 1160.4 645.5 1160.2 646.2 L 1160.4 646.5 C 1162.7 658.3 1162.1 655.7 1164.4 674.4 C 1165.5 683.5 1167 692.7 1168 701.8 C 1169.9 716.9 1170.9 724.4 1173.1 747.5 C 1160.6 768.2 1157.7 776 1145.6 794.1 L 1145.7 794.3 L 1137.2 807.7 C 1136.2 809.1 1135.4 810.1 1134.1 810.5 C 1132.8 811.2 1131 811.3 1128.6 811.3 L 1123.9 811.3 L 1116.9 834.5 L 1140.9 835 C 1154.9 834.9 1163.8 828.3 1168.5 819.5 L 1183.6 793.6 L 1183.3 793.6 L 1184.9 791.8 C 1195.1 770 1272.1 637.7 1272.1 637.7 Z M 1019.3 942.9 L 1009.1 942.9 L 1046.8 818.4 L 1059.2 818.4 L 1063.2 805.6 L 1063.6 819.9 C 1063.1 828.7 1070 836.5 1088.2 835.2 L 1109.3 835.2 L 1116.5 811.2 L 1108.6 811.2 C 1104.1 811.2 1102 810.1 1102.2 807.6 L 1101.8 793.1 L 1062.8 793.1 L 1062.8 793.2 C 1050.2 793.5 1012.6 794.4 1005 796.4 C 995.8 798.8 986 805.8 986 805.8 L 989.9 793 L 953.4 793 L 945.8 818.4 L 907.7 944.8 L 900.3 944.8 L 893 968.6 L 965.7 968.6 L 963.2 976.5 L 999 976.5 L 1001.4 968.6 L 1011.4 968.6 Z M 989.5 843.7 C 983.7 845.3 972.8 850.3 972.8 850.3 L 982.5 818.4 L 1011.4 818.4 L 1004.4 841.6 C 1004.4 841.6 995.5 842.1 989.5 843.7 Z M 990.1 889.2 C 990.1 889.2 981 890.3 975 891.7 C 969.1 893.5 958 899.1 958 899.1 L 968 866 L 997.1 866 Z M 973.8 943.2 L 944.8 943.2 L 953.2 915.3 L 982.2 915.3 Z M 1043.8 866 L 1085.7 866 L 1079.7 885.5 L 1037.2 885.5 L 1030.9 906.8 L 1068 906.8 L 1039.9 946.5 C 1037.9 949.4 1036.1 950.4 1034.2 951.2 C 1032.2 952.2 1029.6 953.4 1026.6 953.4 L 1016.3 953.4 L 1009.3 976.8 L 1036.2 976.8 C 1050.2 976.8 1058.5 970.4 1064.6 962 L 1083.9 935.6 L 1088 962.4 C 1088.9 967.4 1092.5 970.4 1095 971.5 C 1097.7 972.9 1100.5 975.2 1104.4 975.5 C 1108.6 975.7 1111.7 975.9 1113.7 975.9 L 1126.9 975.9 L 1134.9 949.7 L 1129.7 949.7 C 1126.7 949.7 1121.5 949.2 1120.6 948.3 C 1119.7 947.1 1119.7 945.4 1119.3 942.7 L 1115.1 915.8 L 1097.9 915.8 L 1105.4 906.8 L 1147.8 906.8 L 1154.3 885.5 L 1115.1 885.5 L 1121.2 866 L 1160.3 866 L 1167.5 841.9 L 1050.9 841.9 Z M 690 948.6 L 699.7 916.1 L 739.9 916.1 L 747.3 891.9 L 707 891.9 L 713.2 871.8 L 752.5 871.8 L 759.8 848.4 L 661.4 848.4 L 654.3 871.8 L 676.6 871.8 L 670.7 891.9 L 648.3 891.9 L 640.8 916.5 L 663.2 916.5 L 650.1 959.6 C 648.4 965.3 651 967.4 652.6 970.1 C 654.3 972.7 656 974.4 659.8 975.3 C 663.7 976.2 666.4 976.7 670.1 976.7 L 715.4 976.7 L 723.5 949.9 L 703.4 952.7 C 699.5 952.7 688.8 952.2 690 948.6 Z M 694.6 792.8 L 684.4 811.2 C 682.2 815.3 680.2 817.8 678.5 818.9 C 676.9 819.9 673.8 820.3 669.4 820.3 L 664.1 820.3 L 657 843.8 L 674.6 843.8 C 683.1 843.8 689.6 840.7 692.7 839.2 C 696.1 837.4 696.9 838.4 699.5 835.9 L 705.5 830.8 L 760.6 830.8 L 767.9 806.2 L 727.6 806.2 L 734.6 792.8 Z M 775.9 949.1 C 775 947.8 775.7 945.4 777.1 940.4 L 792.2 890.5 L 845.7 890.5 C 853.6 890.4 859.2 890.3 862.9 890.1 C 866.8 889.6 871.1 888.2 875.8 885.7 C 880.6 883.1 883 880.3 885.1 877.1 C 887.4 873.9 891.2 866.9 894.4 856.1 L 913.3 793 L 857.7 793.3 C 857.7 793.3 840.6 795.8 833 798.6 C 825.4 801.7 814.6 810.4 814.6 810.4 L 819.6 793.1 L 785.2 793.1 L 737.1 952.7 C 735.4 958.9 734.3 963.4 734 966.1 C 733.9 969 737.7 971.9 740.1 974 C 743 976.2 747.3 975.9 751.3 976.2 C 755.6 976.5 761.7 976.7 770.2 976.7 L 796.6 976.7 L 804.7 949.4 L 781 951.6 C 778.5 951.6 776.7 950.2 775.9 949.1 Z M 801.9 856.8 L 858.2 856.8 L 854.6 868.1 C 854.1 868.3 852.9 867.5 847.2 868.2 L 798.4 868.2 Z M 813.2 819.2 L 869.9 819.2 L 865.8 832.7 C 865.8 832.7 839.1 832.5 834.8 833.2 C 815.9 836.5 804.9 846.6 804.9 846.6 Z M 855.8 905.6 C 855.4 907.3 854.6 908.3 853.6 909.1 C 852.5 909.8 850.6 910.1 847.9 910.1 L 839.8 910.1 L 840.3 896.4 L 807 896.4 L 805.6 963.2 C 805.6 968.1 806 970.8 809.5 973.1 C 813.1 975.9 823.9 976.2 838.6 976.2 L 859.5 976.2 L 867 951.2 L 848.8 952.2 L 842.8 952.6 C 841.9 952.2 841.1 951.9 840.3 951 C 839.5 950.2 838.2 950.7 838.4 945.9 L 838.6 928.8 L 857.6 928 C 867.9 928 872.3 924.6 876.1 921.4 C 879.7 918.4 880.9 914.9 882.2 910.1 L 885.4 894.9 L 859.2 894.9 Z M 855.8 905.6 ' fill-opacity='1' fill-rule='nonzero'/%3E%3C/svg%3E"); }
}

/* the Figma's row labels: the method's name after its logo ("Card", "PayTo", "Alipay+", "WeChat Pay", "UnionPay") instead of the page's "Pay with … |". The page's
   words are hidden (font-size 0; screen readers still read them) and the name drawn as ::after; the logos and icons keep their own px sizes. On the
   Card row the logo tile precedes the name. */
form.payment-form .btn-recaptcha:is([data-paymentmethod="Card"], [data-paymentmethod="PayTo"], [data-paymentmethod="AliPayPlus"], [data-paymentmethod="WeChat"], [data-paymentmethod="UnionPay"]) { font-size: 0; gap: 10px; }
form.payment-form .btn-recaptcha:is([data-paymentmethod="Card"], [data-paymentmethod="PayTo"], [data-paymentmethod="AliPayPlus"], [data-paymentmethod="WeChat"], [data-paymentmethod="UnionPay"])::after { font: 600 15px/1 var(--f-font); color: var(--f-ink); white-space: nowrap; }
form.payment-form .btn-recaptcha[data-paymentmethod="Card"]::after { content: "Card"; }
form.payment-form .btn-recaptcha[data-paymentmethod="PayTo"]::after { content: "PayTo"; }
form.payment-form .btn-recaptcha[data-paymentmethod="AliPayPlus"]::after { content: "Alipay+"; }
form.payment-form .btn-recaptcha[data-paymentmethod="WeChat"]::after { content: "WeChat Pay"; }
form.payment-form .btn-recaptcha[data-paymentmethod="UnionPay"]::after { content: "UnionPay"; }

/* the Card row's white 92 x 30 tile with a navy card icon, drawn as the row's ::after (56 x 30 on a phone); the row has no brand logos on the right. */
form.payment-form .btn-recaptcha[data-paymentmethod="Card"]::after {
  order: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 30px;
  padding-left: 106px;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2292%22%20height%3D%2230%22%20viewBox%3D%220%200%2092%2030%22%3E%3Crect%20x%3D%22.5%22%20y%3D%22.5%22%20width%3D%2291%22%20height%3D%2229%22%20rx%3D%226%22%20fill%3D%22white%22%20stroke%3D%22%23dde1ea%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%231f2a56%22%20stroke-width%3D%221.5%22%3E%3Crect%20x%3D%2237%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M37%2012h18M40%2018h4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
  background-position: left center;
  background-size: 92px 30px;
  background-repeat: no-repeat;
}
@media (max-width: 767px) {
  form.payment-form .btn-recaptcha[data-paymentmethod="Card"]::after {
    padding-left: 66px;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2256%22%20height%3D%2230%22%20viewBox%3D%220%200%2056%2030%22%3E%3Crect%20x%3D%22.5%22%20y%3D%22.5%22%20width%3D%2255%22%20height%3D%2229%22%20rx%3D%226%22%20fill%3D%22white%22%20stroke%3D%22%23dde1ea%22%2F%3E%3Cg%20fill%3D%22none%22%20stroke%3D%22%231f2a56%22%20stroke-width%3D%221.5%22%3E%3Crect%20x%3D%2219%22%20y%3D%228%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M19%2012h18M22%2018h4%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
    background-size: 56px 30px;
  }
}

/* Apple Pay and Google Pay retain their native artwork; sizing and hover follow the rows. */
apple-pay-button {
  display: block;
  width: 100%;
}
/* Apple's script writes its own inline <style> into the page after this stylesheet (apple-pay-button { --apple-pay-button-width: 240px; --apple-pay-button-height: 40px;
   --apple-pay-button-border-radius: 3px }), which beats a bare element selector, so the button stayed 40px high with 3px corners beside Google's 52px and 10px. The form
   in the selector outranks it. The "Pay with" text is Apple's own SVG and scales with the height (about 26px at 52px); its font cannot be set from here. */
form.payment-form apple-pay-button {
  --apple-pay-button-width: 100%;
  --apple-pay-button-height: var(--f-btn-h);
  --apple-pay-button-border-radius: var(--f-radius-row);
  --apple-pay-button-padding: 0;
  --apple-pay-button-box-sizing: border-box;
}
#google-pay-div { width: 100%; }
#google-pay-div button,
#google-pay-div .gpay-card-info-container {
  width: 100% !important; /* Google sets inline sizes */
  height: var(--f-btn-h) !important;
  min-height: var(--f-btn-h) !important;
  border-radius: var(--f-radius-row) !important;
  background-size: contain !important;
}
/* Signed in to Google, Google builds a different button: .gpay-card-info-container holds an iframe (.gpay-card-info-iframe, 240px wide, height: 100%, from pay.google.com) that
   draws the logo and card thumbnails for a 40px button. In our 52px button the iframe became 52px high too, and its picture stays 40px high at the top, which left the empty
   strip underneath. The iframe is held to 40px and centred in the button, so the space is shared above and below. Only a signed-in page has this class; the plain button above
   is unaffected. */
#google-pay-div .gpay-card-info-container { display: flex !important; align-items: center; justify-content: center; }
#google-pay-div .gpay-card-info-iframe { height: 40px; }

/* Wallets share the HCP hover: unchanged artwork and surface, with a soft navy ring. */
apple-pay-button,
#google-pay-div button,
#google-pay-div .gpay-card-info-container { border-radius: var(--f-radius-row); cursor: pointer; transition: box-shadow .12s ease; }
apple-pay-button:hover,
#google-pay-div button:hover:not(:disabled),
#google-pay-div .gpay-card-info-container:hover { box-shadow: 0 0 0 3px var(--f-ring); opacity: 1; }
#google-pay-div .gpay-button.white:hover,
#google-pay-div .gpay-card-info-container.white:hover { background-color: #fff; }
#google-pay-div .gpay-button.black:hover,
#google-pay-div .gpay-card-info-container.black:hover { background-color: #000; }

/* wallet borders in the rows' line colour: Apple draws a black border and Google a dark grey outline (#3c4043), which read much darker than the fields and method rows (--f-line).
   Google's is an outline on its button, so it is overridden (not while the button has focus: its focus ring is the same property and must stay). Apple's is inside its shadow DOM and
   cannot be recoloured, so a border in the row colour is drawn over it on the host's ::after. Checked on UAT in Chrome only; Apple Pay really appears in Safari, where this is
   untested, and Apple's own button guidelines should be checked before it is relied on. */
apple-pay-button { position: relative; }
apple-pay-button::after { content: ""; position: absolute; inset: -1px; z-index: 1; border: 1px solid var(--f-line); border-radius: calc(var(--f-radius-row) + 1px); box-shadow: inset 0 0 0 2px var(--f-surface); pointer-events: none; } /* the inner surface ring covers the anti-aliased black edge without thickening the grey border */
#google-pay-div button:not(.focus):not(:focus-visible) { outline: 1px solid var(--f-line); }

/* hide a wallet block whose button is missing: Apple's SDK not defined or reporting Apple Pay unavailable (it sets hidden on its button, which then has no
   size but its block would still take a row of the grid), or Google's script has not rendered its button (no :empty: the live container holds whitespace) */
.apple-div:has(apple-pay-button:not(:defined)),
.apple-div:has(apple-pay-button[hidden]),
.apple-div:has(#google-pay-div):not(:has(#google-pay-div > *)) { display: none; }

/* stray white "." spacer paragraphs and empty spacer columns */
p:has(> span[style*="#ffffff"]) { display: none; }
.space-12 { height: 0; }
.apple-div > .col-xs-12 > .col-xs-12:not(:has(*)) { display: none; }
.apple-div > .col-xs-12 > .col-xs-12:has(> p:only-child > span[style*="#ffffff"]) { display: none; }

/* ---------- the open Card row and the card frame's height (the UnionPay row is in unionpay.css) ---------- */
/* The hosted card page loads in a frame of fixed height (400 from the markup). The form is about 332px tall, so the frame is cut to 340px; nothing can
   resize a frame in CSS. The spacer paragraph (a white ".") and .space-12 above the frame, and the logo strip's inline top padding, are dead space. */
#AuthoriseCard { display: block; width: 100%; height: 340px; border: 0; } /* no color-scheme here: it inherits the page's (light, or dark under data-theme="dark"), which is the frame document's too. A frame whose scheme differs from its iframe element's is painted on an opaque canvas (white, or near-black in dark) instead of showing the card's own surface */
#CardDetail > div.col-xs-12:not(:has(iframe, button, img)),
#CardDetail .space-12 { display: none; } /* the paragraph ahead of the Card button: a spacer (a white "." on travelpay, two &nbsp; on b2bpay) or a caption repeating the row's own label ("Pay with Credit / Debit Card" on schooleasypay), as "Pay with PayTo" is hidden above */
/* the open Card row: a navy outline round the frame, and the Card button (if the page keeps it) shows the Figma's green dot */
form.payment-form #CardDetail:has(#AuthoriseCard) { padding: 12px; border: 1.5px solid var(--f-navy); border-radius: 12px; background: var(--f-surface); }
/* the open row keeps the Figma's header line, "● Card", with the green dot and a divider under it (the page drops the Card button once the frame shows:
   the line is drawn here; the dot and ring are two radial gradients, the card glyph is Font Awesome's, the word falls back to the page font) */
form.payment-form #CardDetail:has(#AuthoriseCard)::before {
  content: "\f09d\00a0\00a0 Card"; /* the space ends the escape (an escape takes up to six hex digits, and "Ca" are hex) */
  display: block;
  margin: 0 0 12px;
  padding: 2px 0 12px 30px;
  border-bottom: 1px solid var(--f-line);
  font: 700 15px/22px FontAwesome, var(--f-font);
  color: var(--f-ink);
  background:
    radial-gradient(circle at 10px 13px, var(--f-selected) 0 4px, transparent 4.5px),
    radial-gradient(circle at 10px 13px, transparent 0 7px, var(--f-selected) 7.5px 9px, transparent 9.5px);
  background-repeat: no-repeat;
}
@media (min-width: 992px) { /* in the grid the block is a strip of the white card: the outline is drawn inset by the card's padding, so the card's edge stays straight */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > #CardDetail:has(#AuthoriseCard) { position: relative; margin: 0; padding: 12px 42px 24px; border: 0; border-radius: 0; box-shadow: none; }
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > #CardDetail:has(#AuthoriseCard)::after { content: ""; display: block; position: absolute; inset: 0 30px 12px; border: 1.5px solid var(--f-navy); border-radius: 12px; pointer-events: none; }
}
form.payment-form #CardDetail:has(#AuthoriseCard) [data-paymentmethod="Card"]::before { border-color: var(--f-selected); box-shadow: inset 0 0 0 3px var(--f-surface), inset 0 0 0 9px var(--f-selected); }

/* fields: labels, the 52px / 10px inputs and their focus ring, the "$" prefix box, validation states, the iOS zoom rule and the gateway's yellow warnings. */
form.payment-form .form-group { margin-bottom: 16px; }
form.payment-form label.control-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--f-ink);
  text-align: left;
}
form.payment-form .required { color: var(--f-danger) !important; margin-left: 2px; } /* inline colour on some asterisks */

form.payment-form .form-control,
form.payment-form input.form-control {
  height: var(--f-btn-h);
  padding: 10px 14px;
  font-size: 15px;
  color: var(--f-ink);
  background: var(--f-field);
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius-row) !important; /* Ace squares inputs off with !important on input[type=text]; the same 10px radius and 52px height as the method rows and wallet buttons */
  box-shadow: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
form.payment-form input.form-control:hover { border-color: var(--f-line-strong); }
form.payment-form input.form-control:focus {
  border-color: var(--f-navy);
  box-shadow: 0 0 0 3px var(--f-ring) !important; /* !important: Ace forces box-shadow: none !important on .form-control */
  outline: 0;
}
form.payment-form .form-control::placeholder { color: var(--f-placeholder); }

/* amount: "$" joined to the field, the figure larger */
form.payment-form .input-group { width: 100%; }
form.payment-form .input-group-addon {
  background: var(--f-soft);
  color: var(--f-label);
  font-weight: 600;
  border: 1px solid var(--f-line);
  border-right: 0;
  border-radius: var(--f-radius) 0 0 var(--f-radius) !important;
  padding: 0 14px;
}
form.payment-form .input-group input.form-control { border-radius: 0 var(--f-radius) var(--f-radius) 0 !important; }

/* validation */
form.payment-form .input-validation-error,
form.payment-form .has-error input.form-control { border-color: var(--f-danger); background: var(--f-field); }
form.payment-form input.input-validation-error:focus,
form.payment-form .has-error input.form-control:focus { box-shadow: 0 0 0 3px rgba(217, 45, 32, .18) !important; }
form.payment-form .field-validation-error,
form.payment-form .text-danger {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--f-danger);
}
form.payment-form .validation-summary-errors {
  background: var(--f-danger-bg);
  border: 1px solid var(--f-danger-line);
  border-radius: var(--f-radius-row);
  padding: 10px 14px;
  margin-bottom: 20px;
}
form.payment-form .validation-summary-errors ul { margin: 0; padding-left: 18px; }
form.payment-form .validation-summary-valid { display: none; }
form.payment-form .fa-info-circle { color: var(--f-muted); }
@media (max-width: 767px) {
  form.payment-form .form-control,
  form.payment-form input.form-control { font-size: 16px; } /* stops iOS zoom on focus */
}

/* Gateway warnings keep their yellow status colours and join the form's typography. */
form.payment-form #ErrorMessage > .alert-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--f-radius-row);
  font-family: var(--f-font);
  font-size: 14px;
  line-height: 1.5;
}
form.payment-form #ErrorMessage > .alert-warning > .fa {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.5;
}
form.payment-form #ErrorMessage > .alert-warning > .page-title {
  flex: 1;
  min-width: 0;
  font-family: var(--f-font) !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: var(--f-ink) !important;
  overflow-wrap: anywhere;
}
form.payment-form #ErrorMessage > .alert-warning > .page-title span {
  font-family: inherit !important;
  font-size: inherit !important;
  color: inherit !important;
}

/* ---------- Pay with Bank, expanded: the account fields, then the Validate Bank button under them ---------- */
/* the sandbox's own stylesheet orders this block with the button first (order 0, fields 1, info text 2); once the fields are showing the button belongs last, in the page colour (Ace paints .btn-success green with !important) */
.payto-div > .col-xs-12 > .nextBtn {
  order: 3; float: none; display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--f-btn-h); margin: 6px 0 0; padding: 0 20px;
  background: var(--f-navy) !important; border: 0 !important; border-radius: var(--f-radius-row) !important;
  color: var(--f-on-navy) !important; font-size: 15px; font-weight: 700; box-shadow: none;
}
.payto-div > .col-xs-12 > .nextBtn:hover, .payto-div > .col-xs-12 > .nextBtn:focus, .payto-div > .col-xs-12 > .nextBtn:active { background: var(--f-navy-hover) !important; }
/* the same button where the page validates PayTo itself (UAT): Account Name, BSB and Account Number, then a small green Ace "Validate" floated right in a .text-right group with
   an inline margin; it takes the full-width navy button of the Validate on the card, and its error alert (#payto-validation-error, shown after a failed validation) the form's error look */
form.payment-form .payto-div .form-group:has(> .validatePayToBtn) { margin: 6px 0 0 !important; text-align: left; } /* inline margin-top:10px */
form.payment-form .payto-div .validatePayToBtn {
  float: none !important; /* .pull-right */
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--f-btn-h); margin: 0; padding: 0 20px;
  background: var(--f-navy) !important; border: 0 !important; border-radius: var(--f-radius-row) !important; /* Ace paints .btn-success green with !important */
  color: var(--f-on-navy) !important; font-size: 15px; font-weight: 700; box-shadow: none;
  transition: background-color .12s ease, transform .08s ease;
}
form.payment-form .payto-div .validatePayToBtn:hover, form.payment-form .payto-div .validatePayToBtn:focus, form.payment-form .payto-div .validatePayToBtn:active { background: var(--f-navy-hover) !important; }
form.payment-form .payto-div .validatePayToBtn:active { transform: translateY(1px); }
form.payment-form .payto-div .validatePayToBtn:focus-visible { box-shadow: 0 0 0 3px var(--f-ring); }
form.payment-form .payto-div .validatePayToBtn .fa { color: inherit; }
form.payment-form .payto-div #payto-validation-error { background: var(--f-danger-bg); border: 1px solid var(--f-danger-line); border-radius: var(--f-radius-row); color: var(--f-ink); padding: 10px 14px; font-size: 13px; }

/* ---------- the open PayTo block, drawn like the open Card row: a navy outline round it and a "● PayTo" header ---------- */
/* The page swaps the PayTo row for its account fields: no row, logo or name is left, so the fields read as part of the UnionPay row above. The block is "open" when its fields are there
   (#PayToAccountName, or any visible input); the id also lifts these rules above the desktop grid's generic padding for the method blocks, as the open Card row's ids do. */
form.payment-form .payto-div:has(input:not([type="hidden"]), #PayToAccountName) { padding: 12px; border: 1.5px solid var(--f-navy); border-radius: 12px; background: var(--f-surface); }
/* the header line, only where the page has dropped the PayTo button itself (a page that keeps it shows its own row): the bank glyph is Font Awesome's, the dot and ring are two radial gradients */
form.payment-form .payto-div:has(input:not([type="hidden"]), #PayToAccountName):not(:has([data-paymentmethod="PayTo"]))::before {
  content: "\f19c\00a0\00a0 PayTo";
  display: block;
  margin: 0 0 12px;
  padding: 2px 0 12px 30px;
  border-bottom: 1px solid var(--f-line);
  font: 700 15px/22px FontAwesome, var(--f-font);
  color: var(--f-ink);
  background:
    radial-gradient(circle at 10px 13px, var(--f-selected) 0 4px, transparent 4.5px),
    radial-gradient(circle at 10px 13px, transparent 0 7px, var(--f-selected) 7.5px 9px, transparent 9.5px);
  background-repeat: no-repeat;
}
@media (min-width: 992px) { /* in the grid the block is a strip of the white card: the outline is drawn inset by the card's padding, so the card's edge stays straight */
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .payto-div:has(input:not([type="hidden"]), #PayToAccountName) { position: relative; margin: 0; padding: 12px 42px 24px; border: 0; border-radius: 0; box-shadow: none; }
  form.payment-form > .row:first-of-type > .col-lg-6 ~ .col-lg-6 > .payto-div:has(input:not([type="hidden"]), #PayToAccountName)::after { content: ""; display: block; position: absolute; inset: 0 30px 12px; border: 1.5px solid var(--f-navy); border-radius: 12px; pointer-events: none; }
}

/* ---------- top bar: the guest menu as a soft pill beside the round preview buttons ---------- */
#navbar {
  float: none !important; /* inline float:right */
  width: auto;
  text-align: right;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-height: 0;
  margin: 8px 12px 0 0;
}
#navbar .navbar-container { padding: 0; }
#navbar .navbar-buttons,
#navbar .ace-nav,
#navbar .ace-nav > li { background: transparent; float: none; display: inline-block; width: auto; margin: 0; }
#navbar .navbar-buttons,
#navbar .ace-nav { height: auto; border: 0; box-shadow: none; }
#navbar .ace-nav > li::before,
#navbar .ace-nav > li::after { display: none; }
/* Ace makes every item 45px tall with a 45px line; the menu then opens 45px down, well below a shorter link. Items are as tall as their content, top-aligned. */
#navbar .ace-nav > li { height: auto; line-height: normal; vertical-align: top; border: 0; } /* Ace draws vertical dividers between nav items */
/* the link: a 34px pill 5px down, the same size and offset as the round preview buttons (webpay-theme-toggle.css), so all sit on one centre line */
#navbar .ace-nav > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  margin-top: 5px;
  padding: 0 12px;
  background: transparent !important; /* Ace paints coloured nav items with !important */
  color: var(--f-muted) !important;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 13px;
  line-height: 1;
  box-shadow: none;
  transition: background-color .12s ease, border-color .12s ease;
}
#navbar .ace-nav > li > a:hover,
#navbar .ace-nav > li.open > a { color: var(--f-ink) !important; background: var(--f-chip) !important; }
#navbar .nav-user-photo { display: none; }
#navbar .user-info { position: static; top: auto; display: inline; white-space: nowrap; max-width: none; padding: 0; font-size: inherit; line-height: 1; color: var(--f-ink); font-weight: 600; }
#navbar .user-info small { display: inline; font-size: inherit; font-weight: 400; color: var(--f-muted); } /* Bootstrap draws <small> at 85%: one size for "Welcome," and "Guest" */
#navbar .ace-nav > li > a > .ace-icon { color: var(--f-muted); width: auto; font-size: inherit; line-height: 1; margin: 0; }
/* the menu opens 6px under the pill, its right edge level with the pill's */
#navbar .ace-nav > li > .dropdown-menu { top: 100%; margin-top: 6px; left: auto; right: 0; }
/* Ace forces border-radius: 0 !important on .dropdown-menu and gives its items a yellow hover: the Welcome, Guest menu follows this theme's shape and colours instead */
.ace-nav > li > .dropdown-menu { border-radius: var(--f-radius-row) !important; padding: 4px; }
.ace-nav > li > .dropdown-menu > li > a { border-radius: 6px; margin: 0; padding: 8px 12px; }
.ace-nav > li > .dropdown-menu > li > a:hover,
.ace-nav > li > .dropdown-menu > li > a:focus,
.ace-nav > li > .dropdown-menu > li > a:active { background: var(--f-soft); color: var(--f-ink); }
.ace-nav > li > .dropdown-menu {
  background: var(--f-surface);
  border: 1px solid var(--f-line);
  box-shadow: 0 4px 12px rgba(16, 24, 40, .08);
  overflow: hidden;
}
.ace-nav > li > .dropdown-menu > li > a { color: var(--f-ink); }
.ace-nav > li > .dropdown-menu .divider { background: var(--f-line); }
/* the columns and grid preview buttons switch layouts this variant does not have (its fields and methods are always one to a row) */
#navbar .ace-nav > li.webpay-theme-li:has(#webpayFieldsToggle, #webpayColsToggle) { display: none; } /* outranks the inline-block rule above */

/* ---------- heading: proportionate logo, "Payment to", merchant name, then the amount (moved up from the form, below) ---------- */
/* The page writes logo, merchant name, then "Make a one-off card payment."; the Figma puts a small "Payment to" label above the name, so the row becomes a
   centred column, the sentence moves up, and its text is hidden with that label drawn in its place. The Review step has the same header row with its own
   sentence ("Confirm your payment details…"), so the move and the label are limited to the payment page (body:has(form.payment-form)). */
.page-content > .row > .col-lg-12 > .row { display: flex; flex-direction: column; align-items: center; }
.page-content > .row > .col-lg-12 > .row::before,
.page-content > .row > .col-lg-12 > .row::after { display: none; } /* Bootstrap's clearfix pseudo-elements would become flex items */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 { float: none; width: 100%; }
body:has(form.payment-form) .page-content > .row > .col-lg-12 > .row > .col-lg-12:has(> .align-center > :is(h3, p)) { order: 1; } /* travelpay writes the sentence as an h3, b2bpay as a p */
body:has(form.payment-form) .page-content > .row > .col-lg-12 > .row > .col-lg-12:has(> .align-center > span) { order: 2; }
.page-content .row > .col-lg-12 > img.img-responsive,
.page-content .row > .col-lg-12 > .align-center > img.img-responsive { /* the Review step wraps its logo in .align-center */
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: min(280px, 100%) !important; /* inline max-width 300px */
  max-height: 88px !important; /* inline max-height 150px */
  margin: 20px auto 0 !important; /* inline margins */
  padding: 10px 12px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--f-line);
  box-shadow: none;
}
.page-content .row > .col-lg-12 > .align-center { text-align: center; }
body:has(form.payment-form) .page-content .row > .col-lg-12 > img.img-responsive { border: 0; }
/* the page's sentence ("Make a one-off card payment.", "Make a one off payment.": it differs by brand) is hidden and the Figma's "Payment to" label drawn in its place, above the name */
body:has(form.payment-form) .page-content > .row > .col-lg-12 > .row > .col-lg-12 > .align-center > :is(h3, p) { margin: 14px 0 4px; font-size: 0; line-height: 0; }
body:has(form.payment-form) .page-content > .row > .col-lg-12 > .row > .col-lg-12 > .align-center > h3 > span { font-size: 0 !important; } /* inline size */
body:has(form.payment-form) .page-content > .row > .col-lg-12 > .row > .col-lg-12 > .align-center > :is(h3, p)::before {
  content: "Payment to";
  display: block;
  font: 600 16px/1.4 var(--f-font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--f-muted);
}
.page-content .row > .col-lg-12 > .align-center > span {
  display: block;
  margin: 0 !important; /* inline margin-top:15px */
  font-family: var(--f-font) !important;
  font-size: 34px !important; /* inline 25px */
  font-weight: 700 !important;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--f-ink) !important;
}
body:has(form.payment-form) .page-content .row > .col-lg-12 > .align-center > span { font-size: 29px !important; }
@media (max-width: 767px) {
  .page-content .row > .col-lg-12 > img.img-responsive { max-width: min(220px, 100%) !important; max-height: 72px !important; }
  .page-content .row > .col-lg-12 > .align-center > span { font-size: 24px !important; }
  body:has(form.payment-form) .page-content .row > .col-lg-12 > .align-center > span { font-size: 24px !important; } /* the payment page's 29px above is more specific than the rule before, so on a phone the name stayed 29px */
}

/* The existing amount label stays visible; its pencil also focuses the input. */
form.payment-form { position: relative; padding-top: 136px; }
form.payment-form > .row:first-of-type,
form.payment-form > .row:first-of-type > .col-lg-6 { position: static; }
form.payment-form .form-group:has(> .input-group > #PaymentAmount) {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: min(340px, 100%);
  margin: 0 auto;
  padding: 0;
  background: transparent;
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > label.control-label {
  display: block;
  height: 24px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  text-align: center;
  color: var(--f-muted);
  background: transparent;
  cursor: pointer;
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > label.control-label::before { content: none; }
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > label.control-label::after {
  content: "\f040";
  position: absolute;
  top: 32px;
  z-index: 1;
  right: 0;
  display: grid;
  place-items: center;
  width: 48px;
  height: 64px;
  border-left: 1px solid var(--f-line);
  font: 18px/1 FontAwesome;
  color: var(--f-navy);
}
/* hover (the pencil is part of the label, and the label focuses the input): the chip fills softly and the pencil darkens, as the method rows do */
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > label.control-label::after {
  border-radius: 0 var(--f-radius) var(--f-radius) 0;
  transition: background-color .12s ease, color .12s ease;
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > label.control-label:hover::after {
  background: var(--f-soft);
  color: var(--f-navy-hover);
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > .input-group {
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  height: 64px;
  padding: 0 52px 0 16px;
  background: var(--f-field);
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius);
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > .input-group:focus-within {
  border-color: var(--f-navy);
  box-shadow: 0 0 0 3px var(--f-ring);
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) .input-group-addon {
  display: block;
  width: auto;
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--f-ink);
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) input#PaymentAmount {
  flex: 1;
  width: 0;
  min-width: 0;
  height: 100%;
  padding: 0 4px;
  background: transparent;
  border: 0;
  border-radius: var(--f-radius) !important;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--f-ink);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
form.payment-form .form-group:has(> .input-group > #PaymentAmount) input#PaymentAmount:focus { box-shadow: none !important; } /* The containing field draws the focus ring. */
form.payment-form .form-group:has(> .input-group > #PaymentAmount) > [data-valmsg-for="PaymentAmount"] { margin: 0; text-align: center; }
@media (max-width: 767px) {
  form.payment-form .form-group:has(> .input-group > #PaymentAmount) .input-group-addon,
  form.payment-form .form-group:has(> .input-group > #PaymentAmount) input#PaymentAmount { font-size: 32px; }
}
@media (min-width: 992px) {
  form.payment-form .form-group:has(> .input-group > #PaymentAmount) { top: -128px; } /* The filtered row starts below the form's 136px top padding. */
}

/* The page's script alone decides visibility; the warning occupies the row below the amount. */
form.payment-form > .row:first-of-type > .col-lg-6 > #payment-amount-threshold-warning {
  grid-column: 1 / -1;
  grid-row: 1;
  order: 0;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: var(--f-radius-row);
  font-family: var(--f-font);
  font-size: 14px;
  line-height: 1.5;
}
form.payment-form #payment-amount-threshold-warning > p {
  margin: 0;
  color: var(--f-ink);
  overflow-wrap: anywhere;
}

/* ---------- footer (CMS blob in the second-to-last .row): centred under the cards ---------- */
form.payment-form > .row:last-of-type { display: none; }
form.payment-form > .row:nth-last-of-type(2) { margin-top: 32px; }
form.payment-form > .row:nth-last-of-type(2),
form.payment-form > .row:nth-last-of-type(2) > p,
form.payment-form > .row:nth-last-of-type(2) > div,
form.payment-form > .row:nth-last-of-type(2) span { text-align: center !important; } /* inline text-align:left */
form.payment-form > .row:nth-last-of-type(2) > div { padding: 0; text-wrap: balance; }
form.payment-form > .row:nth-last-of-type(2) br { display: none; }
form.payment-form > .row:nth-last-of-type(2) a { display: inline-block; margin: 0 4px; vertical-align: middle; }
form.payment-form > .row:nth-last-of-type(2) img { max-height: 22px; width: auto; vertical-align: middle; }
form.payment-form > .row:nth-last-of-type(2) span { color: var(--f-muted) !important; font-size: 12px !important; font-family: var(--f-font) !important; } /* inline colours/sizes from the CMS */

/* The page's own strip of card brand logos above the card frame (#DisplayCardLogos, filled by the page) is hidden, always, with no script and no setting. */
#DisplayCardLogos { display: none; }

/* =====================================================================================================================================================
   REVIEW STEP: /Pay/<code>/Review ("Confirm your payment details and press Pay Now"). Its markup differs from the payment page: form#ReviewPayment (no
   .payment-form), read-only card and amount fields, no card frame or wallet buttons, Back and #payNowBtn. The page, top bar and logo rules above already
   apply; everything here is scoped to that form or to body:has(#ReviewPayment). Two white cards as on the payment page, the read-only values in the soft
   tint of the Figma's summary box, BACK outlined, PAY NOW in the same navy as the card frame's Validate button.
   ===================================================================================================================================================== */
/* the layout buttons in the top bar do nothing on this page */
body:has(#ReviewPayment) #navbar .ace-nav > li.webpay-theme-li:has(#webpayMethodsToggle) { display: none; }
/* heading: the merchant name has no label above it here, then the instruction line under it */
body:has(#ReviewPayment) .page-content .row > .col-lg-12 > .align-center > span { margin-top: 18px !important; } /* inline margin-top:15px */
body:has(#ReviewPayment) .page-content .row > .col-lg-12 > .align-center > p { margin: 4px 0 28px; font-size: 14px; color: var(--f-muted); }
/* the sandbox highlights "Pay Now" in the instruction line with an inline green background */
body:has(#ReviewPayment) .page-content .row > .col-lg-12 > .row:first-child .align-center > p span { background: transparent !important; color: var(--f-ink) !important; font-weight: 700; }

/* the two cards: one under the other, side by side from 992px */
form#ReviewPayment {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
form#ReviewPayment::after { content: ""; display: table; clear: both; }
form#ReviewPayment > .row,
form#ReviewPayment > .col-lg-12 { margin-left: 0; margin-right: 0; }
form#ReviewPayment > .row:first-of-type { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; } /* side by side, both cards take the taller one's height */
form#ReviewPayment > .row:first-of-type::before,
form#ReviewPayment > .row:first-of-type::after { display: none; } /* Bootstrap's clearfix pseudo-elements would become grid items */
form#ReviewPayment > .row:first-of-type > :not(.col-lg-6) { grid-column: 1 / -1; float: none; width: auto; } /* the validation strip, the buttons and the footer each take a full row */
form#ReviewPayment > .row:first-of-type > .col-lg-12 { padding: 0; }
form#ReviewPayment > .row:first-of-type > .col-lg-6 {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0 0 20px;
  padding: 28px 28px 12px;
  background: var(--f-surface);
  border-radius: var(--f-radius-card);
  box-shadow: var(--f-shadow);
}
@media (min-width: 992px) {
  form#ReviewPayment > .row:first-of-type { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; }
}
form#ReviewPayment .align-center.padding-10 { text-align: left !important; padding: 0; margin-bottom: 20px; }
form#ReviewPayment .align-center.padding-10 > span { display: block; text-align: left !important; font-size: 24px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; color: var(--f-ink); } /* .text-muted */

/* fields: all read-only here */
form#ReviewPayment .form-group { margin-bottom: 16px; }
form#ReviewPayment label.control-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 400; color: var(--f-ink); text-align: left; }
form#ReviewPayment .required { color: var(--f-danger) !important; margin-left: 2px; }
form#ReviewPayment .form-control,
form#ReviewPayment input.form-control {
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--f-ink);
  background: var(--f-field);
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius) !important; /* Ace squares inputs off with !important on input[type=text] */
  box-shadow: none;
}
form#ReviewPayment input.form-control:focus {
  border-color: var(--f-navy);
  box-shadow: 0 0 0 3px var(--f-ring) !important; /* !important: Ace forces box-shadow: none !important on .form-control */
  outline: 0;
}
form#ReviewPayment input.form-control[readonly] { background-color: var(--f-soft) !important; font-weight: 600; } /* Ace paints [readonly] grey with !important */
form#ReviewPayment .input-group { width: 100%; }
form#ReviewPayment .input-group-addon {
  background: var(--f-soft);
  color: var(--f-label);
  font-weight: 600;
  border: 1px solid var(--f-line);
  border-right: 0;
  border-radius: var(--f-radius) 0 0 var(--f-radius) !important;
  padding: 0 14px;
}
form#ReviewPayment .input-group input.form-control { border-radius: 0 var(--f-radius) var(--f-radius) 0 !important; }
form#ReviewPayment #PaymentAmount { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* Card holder spans the row; number, expiry and brand share the next row. */
form#ReviewPayment .row:has(> div > #cardLogo) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, .5fr) 72px; align-items: end; }
form#ReviewPayment .row:has(> div > #cardLogo)::before,
form#ReviewPayment .row:has(> div > #cardLogo)::after { display: none; }
form#ReviewPayment .row:has(> div > #cardLogo) > div[class] { float: none; width: auto; min-width: 0; }
form#ReviewPayment .row:has(> div > #cardLogo) > div:has(#CardHolderName) { grid-column: 1 / -1; }
form#ReviewPayment .row:has(> div > #cardLogo) > div:has(> #cardLogo) { padding-left: 0; margin-bottom: 16px; }
form#ReviewPayment #LastDigits, form#ReviewPayment #Expiry { padding-left: 12px; padding-right: 8px; font-size: 15px; letter-spacing: 0; }
form#ReviewPayment #cardLogo { display: flex; align-items: center; justify-content: flex-end; height: 46px; margin: 0; padding: 0 !important; /* inline padding-top:10px */ }
form#ReviewPayment #cardLogo img { width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; }
/* PayTo's inline logo margins assume the original field heights; align its cell like the Card brand. */
form#ReviewPayment .row:has(> div > img[src$="PayTo_symbol-Black-WEB.svg"]) { display: grid; grid-template-columns: minmax(80px, .5fr) minmax(0, 1fr) 72px; align-items: end; }
form#ReviewPayment .row:has(> div > img[src$="PayTo_symbol-Black-WEB.svg"])::before,
form#ReviewPayment .row:has(> div > img[src$="PayTo_symbol-Black-WEB.svg"])::after { display: none; }
form#ReviewPayment .row:has(> div > img[src$="PayTo_symbol-Black-WEB.svg"]) > div[class] { float: none; width: auto; min-width: 0; }
form#ReviewPayment .row:has(> div > img[src$="PayTo_symbol-Black-WEB.svg"]) > div:has(#PayToAccountName) { grid-column: 1 / -1; }
form#ReviewPayment .row > div:has(> img[src$="PayTo_symbol-Black-WEB.svg"]) { display: flex; align-items: center; justify-content: flex-end; height: 46px; margin-bottom: 16px; padding-left: 0; }
form#ReviewPayment img[src$="PayTo_symbol-Black-WEB.svg"] { margin: 0 !important; height: 30px; width: auto; max-width: 100%; object-fit: contain; }

/* Review after Google Pay or Apple Pay: the card is one read-only box (#googlePayDisplay, "Test Card: Visa •••• 1111") and the row holds only it and the brand cell, not the card row's
   number, expiry and brand, so the three columns above left the box one column wide. Two columns here; the brand cell's img has no src (nothing to show), so the cell is dropped
   and the box takes the row. If the page ever gives the img a src, the cell comes back beside the box. */
form#ReviewPayment .row:has(> div > #cardLogo):has(#googlePayDisplay) { grid-template-columns: minmax(0, 1fr) auto; }
form#ReviewPayment .row:has(#googlePayDisplay) > div:has(> #cardLogo img:not([src])) { display: none; }
@media (max-width: 479px) {
  form#ReviewPayment .row:has(> div > #cardLogo) { grid-template-columns: minmax(0, 1fr) 72px; }
  form#ReviewPayment .row:has(> div > #cardLogo) > div:has(#LastDigits) { grid-column: 1 / -1; }
  form#ReviewPayment .row:has(> div > img[src$="PayTo_symbol-Black-WEB.svg"]) { grid-template-columns: minmax(0, 1fr) 72px; }
  form#ReviewPayment .row:has(> div > img[src$="PayTo_symbol-Black-WEB.svg"]) > div:has(#PayToBsb) { grid-column: 1 / -1; }
}
/* validation */
form#ReviewPayment .field-validation-error,
form#ReviewPayment .text-danger { display: block; margin-top: 4px; font-size: 12px; color: var(--f-danger); }
form#ReviewPayment .validation-summary-errors { background: var(--f-danger-bg); border: 1px solid var(--f-danger-line); border-radius: var(--f-radius-row); padding: 10px 14px; margin-bottom: 20px; }
form#ReviewPayment .validation-summary-errors ul { margin: 0; padding-left: 18px; }
form#ReviewPayment .validation-summary-valid { display: none; }
form#ReviewPayment .fa-info-circle { color: var(--f-muted); }

/* terms: the page draws the tick box on the label; keep the real input focusable */
form#ReviewPayment .form-group:has(> #TermsandConditionsAgreement) {
  position: relative;
  padding: 12px;
  background: var(--f-soft);
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius-row);
}
form#ReviewPayment label[for="TermsandConditionsAgreement"] {
  position: relative;
  display: block;
  margin: 0;
  padding: 0 0 0 30px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--f-ink);
  cursor: pointer;
}
form#ReviewPayment #TermsandConditionsAgreement {
  position: absolute;
  display: block;
  top: 12px;
  left: 12px;
  width: 20px;
  height: 20px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
form#ReviewPayment #TermsandConditionsAgreement + label::before {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--f-line-strong);
  border-radius: 4px;
  background: var(--f-field);
  color: transparent;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
}
form#ReviewPayment #TermsandConditionsAgreement:checked + label::before { background: var(--f-navy); border-color: var(--f-navy); color: var(--f-on-navy); }
form#ReviewPayment #TermsandConditionsAgreement:focus-visible + label::before { outline: 2px solid var(--f-navy); outline-offset: 2px; }
form#ReviewPayment label[for="TermsandConditionsAgreement"] .btn-link { display: inline; padding: 0 !important; margin: 0 !important; font-size: inherit; vertical-align: baseline; color: var(--f-navy); text-decoration: underline; } /* inline style: margin-top -3px !important */

/* buttons: BACK outlined, PAY NOW navy */
form#ReviewPayment .col-xs-12:has(> .col-xs-6 > #payNowBtn) { display: flex; gap: 12px; padding: 0; margin-top: 4px; }
form#ReviewPayment .col-xs-12:has(> .col-xs-6 > #payNowBtn) > .col-xs-6 { float: none; width: auto; flex: 1 1 0; padding: 0; }
form#ReviewPayment #payNowBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: var(--f-btn-h);
  margin: 0;
  padding: 0 16px !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: var(--f-radius-row) !important;
  font-family: var(--f-font);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: none;
  transition: background-color .12s ease, box-shadow .12s ease, transform .08s ease;
}
/* Ace paints .btn-success (and its hover, active and disabled states) green with !important, so this colour needs !important too; it stays disabled until the terms are ticked */
form#ReviewPayment #payNowBtn, form#ReviewPayment #payNowBtn:focus, form#ReviewPayment #payNowBtn:active { background: var(--f-navy) !important; color: var(--f-on-navy) !important; }
form#ReviewPayment #payNowBtn:hover { background: var(--f-navy-hover) !important; }
form#ReviewPayment #payNowBtn:active { transform: translateY(1px); }
form#ReviewPayment #payNowBtn:focus-visible { box-shadow: 0 0 0 3px var(--f-ring); }
form#ReviewPayment #payNowBtn[disabled] { background: var(--f-navy) !important; opacity: .45; cursor: not-allowed; box-shadow: none !important; }
form#ReviewPayment #payNowBtn .fa { color: inherit; }
form#ReviewPayment a.btn-default {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: var(--f-btn-h); margin: 0; padding: 0 20px;
  background: var(--f-surface) !important; color: var(--f-ink) !important; /* Ace paints .btn-default with !important */
  border: 1px solid var(--f-line-strong) !important; border-radius: var(--f-radius-row) !important;
  font-size: 15px; font-weight: 700; box-shadow: none;
}
form#ReviewPayment a.btn-default:hover { border-color: var(--f-navy) !important; background: var(--f-soft) !important; }

/* footer: centred under the cards (the floated columns above must be cleared first) */
form#ReviewPayment .row > .row { clear: both; margin-left: 0; margin-right: 0; width: 100%; }
form#ReviewPayment .row > .row.col-lg-12 { float: none; width: 100%; margin: 28px 0 0; padding: 0; text-align: center; }
form#ReviewPayment .row > .row.col-lg-12 p { text-align: center; margin: 0 0 6px; }
form#ReviewPayment .row > .row.col-lg-12 br { display: none; }
form#ReviewPayment .row > .row.col-lg-12 img { max-height: 26px; width: auto; vertical-align: middle; margin: 0 6px; }
form#ReviewPayment .row > .row.col-lg-12 span { font-size: 12px; color: var(--f-muted) !important; } /* the CMS text carries an inline dark colour that vanishes on a dark page */

@media (max-width: 767px) {
  form#ReviewPayment > .row:first-of-type > .col-lg-6 { padding: 22px 16px 8px; border-radius: 16px; }
  body:has(#ReviewPayment) .page-content .row > .col-lg-12 > .align-center > img.img-responsive { max-width: min(220px, 100%) !important; max-height: 72px !important; }
  body:has(#ReviewPayment) .page-content .row > .col-lg-12 > .align-center > span { font-size: 24px !important; }
  form#ReviewPayment .form-control,
  form#ReviewPayment input.form-control { font-size: 16px; } /* stops iOS zoom on focus */
}

/* ---------- confirmation page, payment successful: the green-tick card ---------- */
/* The page writes a green .alert-success box holding its heading ("PAYMENT SUCCESSFUL"), the authorisation code, an email field and the blue "Email Payment
   Confirmation" button in a centred middle column. The box becomes the Figma's white card with a green tick circle and a full-width green button; every word stays
   the page's own (no text is written here). The Figma's details table (reference, date, payer, method, amounts, fee) and "Receipt sent to…" line are not on the page,
   so they cannot be drawn. Colours come from variables, so the dark theme needs no rules of its own. */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center {
  max-width: 560px;
  margin: 28px auto 0;
  padding: 44px 32px 36px;
  background: var(--f-surface);
  border: 0;
  border-radius: var(--f-radius-card);
  box-shadow: var(--f-shadow);
  color: var(--f-ink);
  text-align: center;
}
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center::after { display: none; } /* Bootstrap's clearfix pseudo-element */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center > .col-lg-4:empty { display: none; } /* the empty spacer column */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center > .col-lg-4 { float: none; width: 100%; padding: 0; }
/* the tick circle: a glyph, first in the box; the heading below keeps the page's own words in the Figma's heading style (sentence case: the page writes capitals) */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center::before {
  content: "\f00c"; /* Font Awesome's check */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--f-green);
  color: var(--f-on-green);
  font: 28px/1 FontAwesome;
}
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center h3 { margin: 0; font: 700 24px/1.3 var(--f-font); letter-spacing: -.01em; color: var(--f-ink); text-transform: lowercase; }
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center h3::first-letter { text-transform: uppercase; }
/* the authorisation code line: small and muted instead of bold */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center .row[style*="bold"] { margin: 10px 0 0; font-size: 14px; font-weight: 400 !important; color: var(--f-muted); word-break: break-all; } /* inline bold */
/* the email field and its button */
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center #customer-email {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 46px;
  margin: 20px 0 0;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--f-ink);
  background: var(--f-field);
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius) !important; /* Ace squares inputs off with !important */
  box-shadow: none;
}
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: var(--f-btn-h);
  margin: 16px 0 0 !important; /* inline margin-left:5px, which would push the full-width button 5px past the box */
  text-decoration: none;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--f-radius-row) !important;
  background: var(--f-green) !important; /* Ace paints .btn-info with !important */
  color: var(--f-on-green) !important;
  font-size: 15px;
  font-weight: 700;
  box-shadow: none;
}
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center .btn:hover { background: var(--f-green-hover) !important; }
.page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center .btn:focus-visible { box-shadow: 0 0 0 3px rgba(8, 128, 74, .3); }
/* the details list under the box (the page's own `.payment-info`: floated dt labels and dd values, with inline widths and a 30% left margin) joins the box as the lower
   half of one white card, one row per pair: the label left, the value right, a divider between rows and the last pair (the total) bold. Scoped to the page that
   holds the success box. */
.page-content:has(.alert.alert-success.align-center) .align-center:has(> .payment-info) { margin-top: 0 !important; } /* the list's own wrapper carries inline margins of 10px, which would leave a gap under the box */
.page-content:has(.alert.alert-success.align-center) .payment-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 0; /* the dividers run unbroken: the labels carry the space */
  box-sizing: border-box;
  max-width: 560px;
  margin: 0 auto; /* directly under the box, which has no bottom margin: the two read as one card */
  padding: 8px 32px;
  background: var(--f-surface);
  border-top: 1px solid var(--f-line); /* the divider between the box and the list */
  border-radius: 0 0 var(--f-radius-card) var(--f-radius-card);
  box-shadow: var(--f-shadow);
}
.page-content:has(.payment-info) > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center { border-bottom-left-radius: 0; border-bottom-right-radius: 0; } /* squared where the list joins it (the list is painted over the box's bottom shadow) */
.page-content:has(.alert.alert-success.align-center) .payment-info > :is(dt, dd) {
  float: none;
  width: auto;
  margin: 0;
  padding: 11px 0;
  overflow: visible;
  border-bottom: 1px solid var(--f-line);
  font-size: 15px;
  line-height: 1.4;
  white-space: normal;
  color: var(--f-ink);
}
.page-content:has(.alert.alert-success.align-center) .payment-info > dt { padding-right: 16px; text-align: left; font-weight: 400; color: var(--f-muted); }
.page-content:has(.alert.alert-success.align-center) .payment-info > dd { text-align: right; font-weight: 600; }
.page-content:has(.alert.alert-success.align-center) .payment-info > :is(dt, dd):last-of-type { border-bottom: 0; font-weight: 700; color: var(--f-ink); }
/* the sentence under the list ("This payment will appear on your card statement as …"): merchant-written text in <p><span style="font-family: helvetica; font-size: 10pt">, with a nested span
   in 13.33px; it takes the page's font, small and muted, under the card. */
.page-content:has(.payment-info) .align-center > p:has(> span[style*="helvetica"]) { max-width: 560px; margin: 16px auto 0; font: 400 13px/1.5 var(--f-font); color: var(--f-muted); }
.page-content:has(.payment-info) .align-center > p:has(> span[style*="helvetica"]) span { font: inherit !important; } /* inline font-family and sizes */
@media (max-width: 767px) {
  .page-content > .row > .col-lg-12 > .row > .col-lg-12 > .alert.alert-success.align-center { padding: 32px 20px 28px; }
  .page-content:has(.alert.alert-success.align-center) .payment-info { padding: 4px 20px; }
}

/* ---------- confirmation page, payment failed: the red-cross card ---------- */
/* The page writes a bare .alert holding its heading ("PAYMENT FAILED / ERRORED") and a pink .alert-danger box with the gateway's sentence, then, in a sibling block, the
   Retry Payment link. The column that holds all three becomes the Figma's white card, the heading keeps the page's own words in the Figma's heading style (no text is
   written here), the pink box becomes plain grey text, and the retry link becomes a full-width green button with its own arrow and words. Only a box that holds the red
   error message gets the red cross circle; another outcome in the same box keeps just the card and its own heading. The Figma's details table (error code, method,
   amounts) is not on the page, so it cannot be drawn. Colours come from variables, so the dark theme needs no rules of its own. */
.page-content > .row > .col-lg-12 > .row > .col-sm-12:has(> .alert.align-center > h3) {
  float: none;
  width: 100%;
  max-width: 560px;
  margin: 28px auto 0;
  padding: 44px 32px 36px;
  background: var(--f-surface);
  border-radius: var(--f-radius-card);
  box-shadow: var(--f-shadow);
  color: var(--f-ink);
  text-align: center;
}
.page-content > .row > .col-lg-12 > .row > .col-sm-12 > .alert.align-center:has(> h3) { margin: 0; padding: 0; background: transparent; border: 0; color: inherit; }
/* the cross circle: a glyph, on the box when it holds the red error message */
.page-content > .row > .col-lg-12 > .row > .col-sm-12 > .alert.align-center:has(> h3 + div > .alert.alert-danger)::before {
  content: "\f00d"; /* Font Awesome's times */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--f-danger-bg);
  color: var(--f-danger);
  font: 28px/1 FontAwesome;
}
/* heading: the page's own words, in sentence case (the page writes capitals) */
.page-content > .row > .col-lg-12 > .row > .col-sm-12 > .alert.align-center > h3 { margin: 0; font: 700 24px/1.3 var(--f-font); letter-spacing: -.01em; color: var(--f-ink); text-transform: lowercase; }
.page-content > .row > .col-lg-12 > .row > .col-sm-12 > .alert.align-center > h3::first-letter { text-transform: uppercase; }
/* the gateway's sentence: plain grey text instead of a pink box */
.page-content > .row > .col-lg-12 > .row > .col-sm-12 > .alert.align-center > h3 + div > .alert.alert-danger { margin: 12px 0 0; padding: 0; background: transparent; border: 0; color: var(--f-muted); font-size: 14px; line-height: 1.6; }
.page-content > .row > .col-lg-12 > .row > .col-sm-12 > .alert.align-center > h3 + div > .alert.alert-danger > p { margin: 0; }
/* the retry block under the box: the page's link is a.btn.btn-default holding an arrow icon, "Retry Payment" and an inline margin-left:5px; it becomes the Figma's
   full-width green button, keeping the page's arrow and words */
.page-content > .row > .col-lg-12 > .row > .col-sm-12:has(> .alert.align-center > h3) > .align-center:not(.alert) { margin-top: 28px !important; } /* inline margin-top:50px */
.page-content > .row > .col-lg-12 > .row > .col-sm-12:has(> .alert.align-center > h3) > .align-center:not(.alert) > a.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  width: 100%;
  height: var(--f-btn-h);
  margin: 0 !important; /* inline margin-left:5px */
  text-decoration: none;
  padding: 0 16px !important;
  border: 0 !important;
  border-radius: var(--f-radius-row) !important;
  background: var(--f-green) !important; /* Ace paints its buttons with !important */
  color: var(--f-on-green) !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}
.page-content > .row > .col-lg-12 > .row > .col-sm-12:has(> .alert.align-center > h3) > .align-center:not(.alert) > a.btn:hover { background: var(--f-green-hover) !important; }
@media (max-width: 767px) {
  .page-content > .row > .col-lg-12 > .row > .col-sm-12:has(> .alert.align-center > h3) { padding: 32px 20px 28px; }
}

/* UnionPay as a full row under Google Pay, like PayTo, Alipay+ and WeChat Pay (the button holds only the UnionPay logo; the name "UnionPay" beside it is drawn in logos-and-labels.css). Always on, no script
   and no setting. It is the same button, so it keeps the page's own click. It only exists before Card is chosen: the sandbox's card step carries no UnionPay button,
   so there is nothing to restyle there. The page's inline styles (absolute position, width, margin-left) are overridden here. */
form.payment-form [data-paymentmethod="UnionPay"] { position: relative !important; flex: 0 0 auto; width: 100% !important; min-width: 0 !important; padding: 0 16px 0 46px !important; justify-content: flex-start; font-size: 0; gap: 10px; } /* inline position:absolute and width */
form.payment-form [data-paymentmethod="UnionPay"] img { position: static !important; margin: 0 4px 0 10px !important; } /* inline absolute offsets; the logo's 4px right margin as on the other rows; the other rows hold the page's "Pay with … |" text: hidden at font-size 0, but still a flex item, so the gap pushes their logo 10px further in */
@media (max-width: 767px) { form.payment-form [data-paymentmethod="UnionPay"] { padding: 0 10px 0 40px !important; } } /* the phone padding of the other rows */
/* The UnionPay button lives inside the Card block (#CardDetail). The block and the two wrappers round the buttons are
   dissolved (display: contents), which makes Card and UnionPay items of the methods' own column or grid, each with its own order: Apple Pay, Google Pay,
   Card, then UnionPay before PayTo. The block's strip look comes from the card's own
   backdrop now, so the buttons take its side margins. Only before Card is chosen: once the frame is in, #CardDetail is back to being a block. */
form.payment-form #CardDetail:not(:has(#AuthoriseCard)),
form.payment-form #CardDetail:not(:has(#AuthoriseCard)) > .form-group,
form.payment-form #CardDetail:not(:has(#AuthoriseCard)) > .form-group > div { display: contents; }
form.payment-form #CardDetail:not(:has(#AuthoriseCard))::after,
form.payment-form #CardDetail:not(:has(#AuthoriseCard)) > .clearfix { display: none; } /* an empty box would still take a cell */
form.payment-form #CardDetail:not(:has(#AuthoriseCard)) [data-paymentmethod="Card"] { order: 12; margin: 8px 0 10px; }
form.payment-form #CardDetail:not(:has(#AuthoriseCard)) [data-paymentmethod="UnionPay"] { order: 12; margin: 0 0 10px !important; } /* inline margin-left */
@media (min-width: 992px) {
  form.payment-form #CardDetail:not(:has(#AuthoriseCard)) :is([data-paymentmethod="Card"], [data-paymentmethod="UnionPay"]) { grid-column: 3; grid-row-end: span 2; width: auto !important; margin-left: 30px !important; margin-right: 30px !important; } /* the grid cell, less the strip's side padding; the width is otherwise 100% of the cell plus the margins */
}

/* The top bar (Welcome, Guest, and the preview's layout buttons) is hidden on the payment page, its Review step and the confirmation page: always, with no script and no console
   setting, so it is hidden on the real pages too. The registration page hides it the same way in setup-style-figma.css. */
#navbar { display: none; }

/* ---------- Review step: the Alipay+ wallet selection dialog (#alipay-plus-modal, opened by PROCEED) ----------
   The dialog's frame is ours: a rounded card, an Open Sans title and a navy backdrop. Its content is an iframe of the gateway's own hosted page (another site: the
   red bars and the wallet list inside it cannot be styled from here). Everything is scoped to the dialog, and the backdrop only while that dialog is open. */
body:has(#ReviewPayment) #alipay-plus-modal { font-family: var(--f-font); }
body:has(#alipay-plus-modal.in) > .modal-backdrop { background: #0f1634; } /* Bootstrap's own .in opacity (.5) stays */
body:has(#ReviewPayment) #alipay-plus-modal .modal-dialog { width: min(1100px, calc(100% - 24px)) !important; margin: 32px auto; } /* the site's .modal-lg-x sets width: 1300px !important; the gateway's QR step is a two-column page (QR code beside the order summary) about 1100px wide, which a narrower dialog clips behind a sideways scrollbar */
body:has(#ReviewPayment) #alipay-plus-modal .modal-content {
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius-card);
  background: var(--f-surface);
  box-shadow: 0 16px 48px rgba(15, 22, 52, .28);
  overflow: hidden; /* the iframe's square corners follow the card's radius */
}
body:has(#ReviewPayment) #alipay-plus-modal .modal-header { padding: 18px 22px 14px; border-bottom: 1px solid var(--f-line); background: var(--f-surface); }
body:has(#ReviewPayment) #alipay-plus-modal .modal-title { font: 600 18px/1.3 var(--f-font); color: var(--f-ink); } /* the page's own title, in the Figma's style; no text is written here */
body:has(#ReviewPayment) #alipay-plus-modal .modal-body { padding: 0; background: var(--f-surface); }
body:has(#ReviewPayment) #alipay-plus-modal .modal-body > .row { margin-left: 0; margin-right: 0; }
body:has(#ReviewPayment) #alipay-plus-modal .modal-body > .row > .col-xs-12 { padding: 0; }
body:has(#ReviewPayment) #alipay-plus-modal #alipay-plus-iframe { display: block; width: 100%; height: clamp(420px, calc(100vh - 150px), 640px); border: 0; background: transparent; } /* the markup's 700px made the dialog taller than short screens, so it scrolled twice */
@media (max-width: 767px) {
  body:has(#ReviewPayment) #alipay-plus-modal .modal-dialog { width: calc(100% - 16px) !important; margin: 8px auto; }
  body:has(#ReviewPayment) #alipay-plus-modal .modal-header { padding: 14px 16px 12px; }
  body:has(#ReviewPayment) #alipay-plus-modal #alipay-plus-iframe { height: clamp(420px, calc(100vh - 96px), 700px); }
}

/* ---------- dark theme: deep navy ---------- */
/* Light by default; dark colours require an explicit data-theme="dark". */

  :root[data-theme="dark"] {
    --f-bg: #0b1020;
    --f-surface: #141b30;
    --f-ink: #e7eaf3;
    --f-navy: #8ea0f4;
    --f-navy-hover: #a8b6f7;
    --f-on-navy: #0b1020;
    --f-label: #c5cbe0;
    --f-muted: #9aa2ba;
    --f-placeholder: #7f88a3;
    --f-line: #2b3452;
    --f-line-strong: #46517a;
    --f-field: #0f1527;
    --f-soft: #1a2240;
    --f-chip: #222b4a;
    --f-green: #00d072; /* the Figma's own green: dark text on it reads at 9:1 */
    --f-green-hover: #2ee08e;
    --f-on-green: #04140c;
    --f-selected: #22c55e;
    --f-ring: rgba(142, 160, 244, .3);
    --f-logo-tile: #050810;
    --f-danger: #f97066;
    --f-danger-bg: rgba(249, 112, 102, .08);
    --f-danger-line: rgba(249, 112, 102, .3);
    --f-shadow: 0 0 0 1px #1f2843;
    --f-drop-shadow: drop-shadow(0 0 .6px #2a3558) drop-shadow(0 0 .6px #2a3558); /* a filter has no spread, so the 1px ring is two tight blurs */
    color-scheme: dark;
  }
  :root[data-theme="dark"] form.payment-form > .row:nth-last-of-type(2) img { background: #fff !important; padding: 3px 6px; border-radius: 6px; } /* footer logos are dark-on-transparent */
  :root[data-theme="dark"] form.payment-form .input-validation-error,:root[data-theme="dark"] form.payment-form .has-error input.form-control { background: var(--f-danger-bg); }
  /* Apple's and Google's black buttons vanish on the dark card: hairline ring */
  :root[data-theme="dark"] apple-pay-button,:root[data-theme="dark"] #google-pay-div button,:root[data-theme="dark"] #google-pay-div .gpay-card-info-container { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); border-radius: var(--f-radius-row); }
  :root[data-theme="dark"] apple-pay-button:hover,:root[data-theme="dark"] #google-pay-div button:hover,:root[data-theme="dark"] #google-pay-div .gpay-card-info-container:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 3px var(--f-ring); }
/* dark: footer logos are dark-on-transparent */
  :root[data-theme="dark"] form#ReviewPayment .row > .row.col-lg-12 img { background: #fff !important; padding: 3px 6px; border-radius: 6px; }

/* Status dialogs only; merged after the host and card sources. SweetAlert owns the messages and state.
   The card frame's Validate also shows a plain "please wait" message with no spinner (icon swal2-info, no
   .swal2-loading class, the buttons hidden) while it waits on the sandbox; the card chrome and type below
   covers both that and the spinner state so every status dialog matches, not only the loading one. */
.swal2-container:has(.swal2-modal).swal2-shown {
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
}
.swal2-modal {
  width: 360px !important; /* SweetAlert sets width, padding and background inline. */
  padding: 32px 28px !important;
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius-card);
  background: var(--f-surface) !important; /* inline background: rgb(255, 255, 255) would stay white in dark mode, under light text */
  font-family: var(--f-font);
  box-shadow: 0 24px 72px rgba(15, 23, 42, .22);
}
.swal2-modal .swal2-title {
  margin: 0 0 10px;
  color: var(--f-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}
.swal2-modal .swal2-content {
  color: var(--f-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
}
.swal2-modal .swal2-icon.swal2-info { border-color: var(--f-navy) !important; color: var(--f-navy) !important; } /* the plain "please wait" message's icon (no spinner); SweetAlert sets its colour inline */
.swal2-modal.swal2-loading .swal2-icon { display: none !important; } /* the loading state hides every icon in favour of the spinner below */
.swal2-modal.swal2-loading .swal2-buttonswrapper { margin-top: 20px; }
.swal2-modal.swal2-loading .swal2-buttonswrapper.swal2-loading .swal2-confirm.swal2-styled {
  width: 32px;
  height: 32px;
  margin: 0;
  border-width: 3px;
  border-color: var(--f-line) !important; /* SweetAlert sets spinner colours inline. */
  border-top-color: var(--f-navy) !important;
  animation-duration: .85s;
}
@media (prefers-reduced-motion: reduce) {
  .swal2-container:has(.swal2-modal) { transition: none; }
  .swal2-modal.swal2-loading .swal2-buttonswrapper.swal2-loading .swal2-confirm.swal2-styled { animation: none; }
}

/* Shared by the payment and setup builds. Bootstrap 3 appends the info icons' hover tips to <body> (not inside the form), so the
   rules target .tooltip rather than a form. The words come from the icons and remain the page's own.
   The navy / on-navy pair gives a navy tip with white text in light and a light tip with dark text in dark. */
.tooltip { font-family: var(--f-font); line-height: 1.4; }
.tooltip .tooltip-inner { font-size: 13px; } /* Bootstrap's own .tooltip-inner size outranks one set on .tooltip */
.tooltip.in { opacity: 1; } /* Bootstrap's .9 */
.tooltip-inner {
  max-width: 240px;
  padding: 8px 12px;
  border-radius: var(--f-radius);
  background: var(--f-navy);
  color: var(--f-on-navy);
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(15, 23, 42, .22);
}
.tooltip.top .tooltip-arrow { border-top-color: var(--f-navy); }
.tooltip.right .tooltip-arrow { border-right-color: var(--f-navy); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--f-navy); }
.tooltip.left .tooltip-arrow { border-left-color: var(--f-navy); }
@media (max-width: 767px) {
  /* Setup fixes PayTo's tip to the right of its icon; put it on the left on phones so it stays on screen. */
  body:has(form#register-form) .tooltip.right { left: auto !important; right: 72px; padding: 0 5px 0 0; } /* Bootstrap writes left inline; reserve the panel padding and info icon on the right. */
  body:has(form#register-form) .tooltip.right .tooltip-arrow { left: auto; right: 0; border-width: 5px 0 5px 5px; border-left-color: var(--f-navy); }
}

/* the Card button's own Font Awesome brand icons (Visa, Mastercard, Amex, Discover, JCB) are hidden; the icon tile replaces them. */
form.payment-form .btn-recaptcha[data-paymentmethod="Card"] > .fa:is(
  .fa-cc-visa,
  .fa-cc-mastercard,
  .fa-cc-amex,
  .fa-cc-discover,
  .fa-cc-jcb
) {
  display: none;
}

/* card-frame/theme/light.css — the light colour variables of the hosted card document. Load after Bootstrap / Ace inside the iframe; the main page uses main-page/theme/light.css. Shared variables are defined here because CSS does not inherit across documents. Light by default; dark requires data-theme="dark" (card-frame/theme/dark.css). */

:root {
  --f-bg: #fff;
  --f-surface: #fff;
  --f-ink: #1f2a56;
  --f-navy: #27346e;
  --f-navy-hover: #1d2858;
  --f-on-navy: #fff;
  --f-label: #2e3a66;
  --f-muted: #5f6880;
  --f-placeholder: #737a8f;
  --f-line: #dde1ea;
  --f-line-strong: #b4bccc;
  --f-field: #fff;
  --f-soft: #f5f7fb;
  --f-chip: #e4e8f1;
  --f-ring: rgba(39, 52, 110, .18);
  --f-logo-tile: #111827;
  --f-selected: #08a35c; /* the Figma's green radio dot (#00d072), darkened to reach 3:1 against white */
  --f-green: #08804a; /* Review's PAY NOW: the Figma's #00d072 reaches only 2:1 with white text, darkened to 5:1 */
  --f-green-hover: #066b3e;
  --f-on-green: #fff;
  --f-danger: #d92d20;
  --f-danger-bg: #fef3f2;
  --f-danger-line: #fecdca;
  --f-radius: 8px;
  --f-radius-row: 10px;
  --f-radius-card: 20px;
  --f-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --f-btn-h: 52px;
  --f-font: "Open Sans", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

/* the hosted card form's transitions are off under prefers-reduced-motion. */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* the frame's page: Ace's body paint removed, the form widened to the whole frame, expiry and CVV side by side. */
html:has(> body.no-skin.page-content),
body.no-skin.page-content { background: transparent !important; } /* Ace's skin paints the body */
body.no-skin.page-content {
  font-family: var(--f-font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--f-ink);
  padding: 4px 0 0 !important; /* the page sets padding: 2px !important inline */
  -webkit-font-smoothing: antialiased;
}
/* the page squeezes the form into col-sm-8 of col-sm-10: use the whole frame */
#payment_form > .row { margin: 0; }
#payment_form > .row > .col-sm-10,
#payment_form #cc-div { width: 100%; float: none; padding-left: 0; padding-right: 0; }
/* expiry and CVV side by side, equal width (the page offsets CVV with col-*-offset-*) */
#cc-div .row { display: flex; gap: 14px; margin: 0; }
#cc-div .row::before,
#cc-div .row::after { display: none; } /* Bootstrap's clearfix pseudo-elements would become flex items and add gap */
#cc-div .row > [class*="col-"] { float: none; width: auto; flex: 1 1 0; margin-left: 0; padding: 0; }
@media (max-width: 420px) {
  #cc-div .row { gap: 10px; }
}

/* fields: labels, the frame's own 44px / 8px inputs and their focus ring. */
#payment_form .form-group { margin-bottom: 18px; }
#payment_form label.control-label { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 400; color: var(--f-ink); }
#payment_form .required { color: var(--f-danger); margin-left: 2px; }
#payment_form input.form-control {
  height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  color: var(--f-ink);
  background: var(--f-field);
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius) !important; /* Ace squares inputs off with !important */
  box-shadow: none;
  transition: border-color .12s ease, box-shadow .12s ease;
}
#payment_form input.form-control:hover { border-color: var(--f-line-strong); }
#payment_form input.form-control:focus {
  border-color: var(--f-navy);
  box-shadow: 0 0 0 3px var(--f-ring) !important; /* !important: Ace forces box-shadow: none !important on .form-control */
  outline: 0;
}
#payment_form input.form-control::placeholder { color: var(--f-placeholder); }

/* card number: brand icon in the addon, joined to the input */
#payment_form .input-group-addon { background: var(--f-soft); color: var(--f-navy); border: 1px solid var(--f-line); border-left: 0; border-radius: 0 var(--f-radius) var(--f-radius) 0 !important; padding: 0 16px; }
#payment_form .input-group input.form-control { border-radius: var(--f-radius) 0 0 var(--f-radius) !important; }
#payment_form .input-group-addon .fa { font-size: 24px; line-height: 1; }

/* validation: messages take no height (the frame cannot grow): a field's message sits on its label line, the summary at the frame's bottom */
#payment_form .input-validation-error,
#payment_form .has-error input.form-control { border-color: var(--f-danger); background: var(--f-danger-bg); }
#payment_form .form-group { position: relative; }
#payment_form .field-validation-error { position: absolute; top: 0; right: 0; margin: 0; font-size: 12px; line-height: 1.6; color: var(--f-danger); }
/* while the summary shows, the form tightens by about 70px to leave it room at the bottom of the fixed frame */
body.no-skin.page-content:has(#vaildationMessage:not(.hide)) #payment_form .form-group { margin-bottom: 8px; }
body.no-skin.page-content:has(#vaildationMessage:not(.hide)) #payment_form label.control-label { margin-bottom: 2px; }
body.no-skin.page-content:has(#vaildationMessage:not(.hide)) #payment_form input.form-control { height: 38px; padding-top: 6px; padding-bottom: 6px; }
body.no-skin.page-content:has(#vaildationMessage:not(.hide)) #payment_form .validate-button { height: 44px; margin-top: 0; }
#payment_form #vaildationMessage.alert-danger {
  position: fixed; /* fixed, not absolute: it sits inside a .form-group, which is positioned above */
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--f-danger-bg);
  border: 1px solid var(--f-danger-line);
  border-radius: 10px;
  color: var(--f-danger);
  padding: 5px 12px;
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
}

/* the Validate button: full-width navy, the Figma's primary button (Ace's .btn-success colours use !important) */
#payment_form .validate-button {
  float: none !important; /* pull-right */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 52px;
  margin-top: 6px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--f-on-navy) !important;
  background: var(--f-navy) !important;
  border: 0 !important;
  border-radius: var(--f-radius-row) !important;
  box-shadow: none;
  transition: background-color .12s ease, transform .08s ease;
}
#payment_form .validate-button:hover { background: var(--f-navy-hover) !important; }
#payment_form .validate-button:active { transform: translateY(1px); }
#payment_form .validate-button:focus-visible { outline: 3px solid var(--f-ring); outline-offset: 2px; }

/* ---------- dark theme: the frame's own deep navy, under an explicit data-theme="dark" only ---------- */
:root[data-theme="dark"] {
  --f-bg: #0b1020;
  --f-surface: #141b30;
  --f-ink: #e7eaf3;
  --f-navy: #8ea0f4;
  --f-navy-hover: #a8b6f7;
  --f-on-navy: #0b1020;
  --f-label: #c5cbe0;
  --f-muted: #9aa2ba;
  --f-placeholder: #7f88a3;
  --f-line: #2b3452;
  --f-line-strong: #46517a;
  --f-field: #0f1527;
  --f-soft: #1a2240;
  --f-chip: #222b4a;
  --f-green: #00d072; /* the Figma's own green: dark text on it reads at 9:1 */
  --f-green-hover: #2ee08e;
  --f-on-green: #04140c;
  --f-selected: #22c55e;
  --f-ring: rgba(142, 160, 244, .3);
  --f-logo-tile: #050810;
  --f-danger: #f97066;
  --f-danger-bg: rgba(249, 112, 102, .08);
  --f-danger-line: rgba(249, 112, 102, .3);
  --f-shadow: 0 0 0 1px #1f2843;
  color-scheme: dark;
}

/* the UnionPay preview form's page: transparent background, frame type and spacing (everything scoped to body[data-unionpay-preview]). */
body[data-unionpay-preview] { background: transparent; font-family: var(--f-font); color: var(--f-ink); }
body[data-unionpay-preview] form { padding: 4px 0 0; }
body[data-unionpay-preview] .resize-container { padding-top: 0; }
body[data-unionpay-preview] form > div:first-child > div { margin-bottom: 18px; }
body[data-unionpay-preview] .grid:has(.card-expiry-field) { margin-bottom: 0; gap: 14px; }

/* the UnionPay preview form's labels and inputs. */
body[data-unionpay-preview] label { font-family: var(--f-font); font-size: 15px; font-weight: 400; color: var(--f-ink); }
body[data-unionpay-preview] input[name^="payment_request["] {
  height: 44px;
  padding: 10px 14px;
  font-family: var(--f-font);
  font-size: 15px;
  color: var(--f-ink);
  background: var(--f-field);
  border: 1px solid var(--f-line);
  border-radius: var(--f-radius);
  box-shadow: none;
}
body[data-unionpay-preview] input::placeholder { color: var(--f-placeholder); }
body[data-unionpay-preview] input:focus { border-color: var(--f-navy); outline: 0; box-shadow: 0 0 0 3px var(--f-ring); }
body[data-unionpay-preview] .field .flex:has(> label) { margin-bottom: 6px; }

/* the UnionPay preview form's Validate button: the same full-width navy button as the other pages. */
body[data-unionpay-preview] .submit-button {
  width: 100%;
  height: 52px;
  padding: 0 20px;
  font-family: var(--f-font);
  font-size: 15px;
  font-weight: 700;
  background: var(--f-navy);
  color: var(--f-on-navy);
  border: 0;
  border-radius: var(--f-radius-row);
}
body[data-unionpay-preview] .submit-button:hover { background: var(--f-navy-hover); }
body[data-unionpay-preview] .submit-button:focus-visible { outline: 3px solid var(--f-ring); outline-offset: 2px; }
body[data-unionpay-preview] .submit-button:disabled { opacity: .45; cursor: not-allowed; }
body[data-unionpay-preview] .submit-button { margin: 6px 0 0; }
