/* ============================================================
   Cloudpedia checkout (#211) — two-column layout matching the VPS
   Configure Product page (cloudpedia_vps_cart.css, "Configure Product").

   Loaded by every Child order-form common.tpl because checkout resolves
   per Default Order Form Template, not per product group. Every rule is
   anchored on #order-standard_cart.cpck, the wrapper that only the forked
   templates/orderforms/cloudpedia_cart/checkout.tpl emits, so configure,
   viewcart and domain pages never match.

   Markup contract: .cpck-layout > .cpck-main (.cpck-card sections) plus
   .cpck-summary (aside, sticky). Parent cloudx_cart / standard_cart / cloudx
   stay untouched; each parent rule that fights this file is out-specified
   with the #order-standard_cart.cpck #frmCheckout prefix.

   iCheck wraps every non-.no-icheck input in div.iradio_square-blue /
   div.icheckbox_square-blue, so radios and checkboxes are styled on the
   wrapper (state via .checked), never on the input itself.
   ============================================================ */

/* 1. Canvas. Paint the page body white when the Cpck wrapper is present. */
#main-body.body-background-cloudx.in_shopping_cart:has(#order-standard_cart.cpck) {
  background-color: #ffffff;
}
#order-standard_cart.cpck {
  background: #ffffff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--cp-gray-900);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0 auto;
  max-width: 1360px;
  padding: 22px 24px 40px;
  width: 100%;
}

/* 2. Full-width content: drop the in-content category sidebars. */
#order-standard_cart.cpck .cart-sidebar,
#order-standard_cart.cpck .sidebar-categories-collapsed {
  display: none;
}
#order-standard_cart.cpck .cart-body {
  margin: 0;
  padding: 0;
  width: 100%;
}

/* 3. Header card. */
#order-standard_cart.cpck .header-lined {
  background: var(--cp-surface);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  margin: 0 0 18px;
  padding: 22px 24px;
}
#order-standard_cart.cpck .header-lined h1 {
  color: var(--cp-gray-900);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}

/* 4. Native checkout error summary: variant B, neutral inset with a danger edge. */
#order-standard_cart.cpck .checkout-error-feedback {
  background: var(--cp-surface-muted);
  border: 1px solid var(--cp-border-neutral);
  border-inline-start: 3px solid var(--cp-danger);
  border-radius: 8px;
  color: var(--cp-gray-900);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 12px 16px;
}
#order-standard_cart.cpck .checkout-error-feedback > p {
  align-items: flex-start;
  color: inherit;
  display: flex;
  font-size: inherit;
  font-weight: 600;
  gap: 9px;
  line-height: inherit;
  margin: 0;
  overflow-wrap: anywhere;
}
#order-standard_cart.cpck .checkout-error-feedback > p::before {
  background-image: linear-gradient(var(--cp-danger), var(--cp-danger)),
    radial-gradient(circle, var(--cp-danger) 0 1px, transparent 1.1px);
  background-position: center 3px, center 10px;
  background-repeat: no-repeat;
  background-size: 1.5px 5px, 3px 3px;
  border: 1.5px solid var(--cp-danger);
  border-radius: 50%;
  box-sizing: border-box;
  content: "";
  flex: 0 0 17px;
  height: 17px;
  margin-top: 1px;
  width: 17px;
}
#order-standard_cart.cpck .checkout-error-feedback > ul {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  list-style: disc outside;
  margin: 8px 0 0 26px;
  margin-inline-start: 26px;
  padding-left: 16px;
  padding-inline-start: 16px;
}
#order-standard_cart.cpck .checkout-error-feedback > ul > li {
  list-style: disc outside;
  overflow-wrap: anywhere;
}

/* 5. Already-registered toggle row. */
#order-standard_cart.cpck .already-registered {
  margin: 0 0 18px;
}
#order-standard_cart.cpck .already-registered p {
  color: var(--cp-gray-600);
  font-size: 14px;
}
#order-standard_cart.cpck .already-registered #btnAlreadyRegistered,
#order-standard_cart.cpck .already-registered #btnNewUserSignup {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  border-radius: 6px;
  color: var(--cp-gray-900);
  font-size: 14px;
  font-weight: 600;
}
#order-standard_cart.cpck .already-registered #btnAlreadyRegistered:hover,
#order-standard_cart.cpck .already-registered #btnNewUserSignup:hover {
  border-color: var(--cp-primary-300);
}
#order-standard_cart.cpck .already-registered #btnAlreadyRegistered:focus,
#order-standard_cart.cpck .already-registered #btnNewUserSignup:focus {
  border-color: var(--cp-primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

/* 5. Two-column grid: fluid main, fixed 352px summary. This deviates from the
   VPS 2fr/1fr grid and its 820px collapse: the app shell already spends about
   285px on the left sidebar, so a 1fr summary falls below the 304px reCAPTCHA
   width at viewports of roughly 820 to 1150px. A fixed 352px column leaves a
   308px content box after the 22px card padding, so the 304px captcha fits
   whole, and the layout collapses at 1199px instead. */
#order-standard_cart.cpck #frmCheckout .cpck-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 352px;
}
#order-standard_cart.cpck #frmCheckout .cpck-main {
  min-width: 0;
}

/* 6. Cards. The same rule serves <section>, the JS-toggled containers and
   .marketing-email-optin, so hiding a container hides its whole card. */
#order-standard_cart.cpck #frmCheckout .cpck-card,
#order-standard_cart.cpck #frmCheckout .hooks-output-checkout {
  background: var(--cp-surface);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  margin: 0 0 24px;
  padding: 20px 22px;
}
#order-standard_cart.cpck #frmCheckout .cpck-card-title {
  color: var(--cp-gray-900);
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px;
}
#order-standard_cart.cpck #frmCheckout .cpck-card-title small {
  color: var(--cp-gray-600);
  font-size: 13px;
  font-weight: 400;
}
/* Signup groups are plain wrappers: the cards inside carry the chrome. */
#order-standard_cart.cpck #frmCheckout div#containerNewUserSignup {
  background: none;
  box-shadow: none;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout div#containerNewUserSecurity,
#order-standard_cart.cpck #frmCheckout div#containerExistingUserSignin {
  background: var(--cp-surface);
  padding: 20px 22px;
}
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container {
  background: none;
  border: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-card .row {
  margin-left: -10px;
  margin-right: -10px;
}
#order-standard_cart.cpck #frmCheckout .cpck-card .row > [class*="col-"] {
  padding-left: 10px;
  padding-right: 10px;
}

/* 7. Choose Account (variant A, user-approved 2026-10-23): full-width outlined
   radio cards. Every native radio, id, value, disabled gate and the native
   ifChecked handler stay untouched; only the section marker, the helper line and
   scoped presentation change. The parent forces a bottom hairline on
   div.account with a priority flag, so the card outline is a positioned ring
   extended 1px past the padding box (inset: 0 0 -1px) to paint over the parent
   border edge instead of leaving a gray stripe under it; pointer-events: none
   keeps the whole card clickable. The native label carries the card padding so
   the whole card is the click target, with a 46px left inset for the radio. */
#order-standard_cart.cpck #frmCheckout .cpck-accounts {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  border-radius: 12px;
  box-shadow: none;
  overflow: visible;
  padding: 16px;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .cpck-card-title {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 6px;
  padding: 0;
}
/* cloudx.css resets h1-h6 to normal weight with a priority flag; the span
   carries the approved 600 weight without touching the heading itself. */
#order-standard_cart.cpck #frmCheckout .cpck-accounts .cpck-accounts-title {
  font-size: inherit;
  font-weight: 600;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts-helper {
  color: var(--cp-gray-600);
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 16px;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .row.account-select-container {
  background: none;
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container > [class*="col-"] {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account {
  background: var(--cp-surface);
  border: 0;
  border-radius: 12px;
  padding: 0;
  position: relative;
  transition: background 0.15s ease;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account::after {
  border: 1px solid var(--cp-border-neutral);
  border-radius: 12px;
  content: "";
  inset: 0 0 -1px;
  pointer-events: none;
  position: absolute;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account:hover::after {
  border-color: var(--cp-border-strong);
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account.active {
  background: var(--cp-primary-50);
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account.active::after {
  border-color: var(--cp-primary-500);
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account:has(input:focus-visible) {
  outline: 2px solid var(--cp-primary-500);
  outline-offset: 2px;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account label {
  color: var(--cp-gray-900);
  cursor: pointer;
  display: block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  /* Full-card target: 12px 16px padding plus a 46px left inset for the 30px
     radio column (16px card edge + 30px). */
  padding: 12px 16px 12px 46px;
  position: relative;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account.active label,
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account.active label strong {
  color: var(--cp-gray-900);
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account label .iradio_square-blue {
  left: 16px;
  margin: 0;
  top: 14px;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account .address {
  align-items: baseline;
  column-gap: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account .address br {
  display: none;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account .address strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account .address .label.label-info {
  background: var(--cp-primary-50);
  border: 1px solid var(--cp-primary-300);
  border-radius: 4px;
  color: var(--cp-primary-500);
  font-size: 11px;
  font-weight: 600;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 2px 8px;
}
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account .address .small,
#order-standard_cart.cpck #frmCheckout .cpck-accounts .account-select-container div.account.active .address .small {
  color: var(--cp-gray-600);
  font-size: 13px;
  font-weight: 400;
  grid-column: 1 / -1;
  line-height: 1.5;
  margin-top: 2px;
  overflow-wrap: anywhere;
}

/* 8. iCheck radios and checkboxes: kill the hue-rotated sprite, draw tokens. */
#order-standard_cart.cpck .iradio_square-blue,
#order-standard_cart.cpck .icheckbox_square-blue {
  background-color: var(--cp-surface);
  background-image: none;
  border: 2px solid var(--cp-gray-600);
  box-sizing: border-box;
  filter: none;
  height: 18px;
  margin: 0;
  position: relative;
  vertical-align: middle;
  width: 18px;
}
#order-standard_cart.cpck .iradio_square-blue {
  border-radius: 50%;
}
#order-standard_cart.cpck .icheckbox_square-blue {
  border-radius: 4px;
}
#order-standard_cart.cpck .iradio_square-blue.hover,
#order-standard_cart.cpck .icheckbox_square-blue.hover {
  border-color: var(--cp-primary-300);
}
#order-standard_cart.cpck .iradio_square-blue.checked,
#order-standard_cart.cpck .icheckbox_square-blue.checked {
  border-color: var(--cp-primary-500);
}
#order-standard_cart.cpck .iradio_square-blue.checked::after {
  background: var(--cp-primary-500);
  border-radius: 50%;
  content: "";
  inset: 2px;
  position: absolute;
}
#order-standard_cart.cpck .icheckbox_square-blue.checked::after {
  border-bottom: 2px solid var(--cp-primary-500);
  border-right: 2px solid var(--cp-primary-500);
  content: "";
  height: 8px;
  left: 4px;
  position: absolute;
  top: 0;
  transform: rotate(45deg);
  width: 4px;
}
#order-standard_cart.cpck .iradio_square-blue.disabled,
#order-standard_cart.cpck .icheckbox_square-blue.disabled {
  opacity: 0.5;
}
#order-standard_cart.cpck .iradio_square-blue .iCheck-helper,
#order-standard_cart.cpck .icheckbox_square-blue .iCheck-helper {
  cursor: pointer;
}

/* 9. Form controls. Base paint shared by the checkout forms: 40px box,
   8px radius, 14px text, 1px neutral border. The account signup, owner draft
   and Account Security are then overridden below to approved form variant A:
   13px/600 --cp-gray-900 labels with preserved source-case copy, ornamental
   leading icons hidden as DOM anchors, and 12px text padding. The native
   country/state and phone controls keep their plugin geometry. */
#order-standard_cart.cpck #frmCheckout .form-group {
  margin-bottom: 16px;
}
#order-standard_cart.cpck #frmCheckout .form-group label:not(.field-icon) {
  color: var(--cp-gray-900);
  display: block;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
#order-standard_cart.cpck #frmCheckout .prepend-icon .field-icon {
  height: 40px;
  line-height: 40px;
  margin: 0;
  padding-left: 12px;
  text-align: left;
  width: 38px;
}
#order-standard_cart.cpck #frmCheckout .prepend-icon .field-icon i {
  font-size: 16px;
}
#order-standard_cart.cpck #frmCheckout .field-icon i {
  color: var(--cp-gray-600);
}
#order-standard_cart.cpck #frmCheckout .field.form-control {
  height: 40px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  box-shadow: none;
  color: var(--cp-gray-900);
  font-family: inherit;
}
#order-standard_cart.cpck #frmCheckout .prepend-icon .field.form-control {
  padding-left: 38px;
}
#order-standard_cart.cpck #frmCheckout .field.form-control:hover {
  border-color: var(--cp-primary-300);
}
#order-standard_cart.cpck #frmCheckout .field.form-control:focus {
  border-color: var(--cp-primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}
#order-standard_cart.cpck #frmCheckout textarea.field.form-control {
  display: block;
  height: auto;
  min-height: 96px;
  line-height: 1.5;
  padding: 10px 12px;
  resize: vertical;
  width: 100%;
}
/* Selects share the text paint: no OS chrome, same chevron as the prototype.
   StatesDropdown.js hides the icon and swaps in #stateselect, so that one
   control drops the leading-icon padding. */
#order-standard_cart.cpck #frmCheckout select.field.form-control,
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container select.form-control {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 12px center;
  background-repeat: no-repeat;
  min-height: 40px;
  padding-left: 12px;
  padding-right: 36px;
}
#order-standard_cart.cpck #frmCheckout .prepend-icon select.field.form-control {
  padding-left: 38px;
}
#order-standard_cart.cpck #frmCheckout #stateselect {
  padding-left: 12px;
}
/* The real phone country widget wraps the native input in .intl-tel-input and
   strips the .field class, so the shared box and width are painted here while
   the plugin keeps its own flag/dial-code geometry and prefix padding. */
#order-standard_cart.cpck #frmCheckout .intl-tel-input {
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--cp-surface);
  display: block;
  position: relative;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout .intl-tel-input:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}
/* The parent forces a 1px hairline on every checkout .form-control, so the box
   is the native input inside the wrapper rather than a second border on it. */
#order-standard_cart.cpck #frmCheckout .intl-tel-input input.form-control {
  height: 100%;
  min-height: 40px;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
  min-width: 0;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout .intl-tel-input .selected-flag {
  height: 100%;
  background: transparent;
}
#order-standard_cart.cpck #frmCheckout .intl-tel-input .selected-dial-code {
  color: var(--cp-gray-600);
  font-size: 13px;
}
#order-standard_cart.cpck #frmCheckout .field-help-text {
  color: var(--cp-gray-600);
  font-size: 12px;
}
#order-standard_cart.cpck #frmCheckout .cpck-card > p.small {
  color: var(--cp-gray-600);
  font-family: inherit;
  font-size: 14px;
}
#order-standard_cart.cpck #frmCheckout .generate-password,
#order-standard_cart.cpck #frmCheckout #btnExistingLogin {
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
}
#order-standard_cart.cpck #frmCheckout .generate-password {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  color: var(--cp-gray-900);
}
#order-standard_cart.cpck #frmCheckout .generate-password:hover {
  border-color: var(--cp-primary-300);
}
#order-standard_cart.cpck #frmCheckout #btnExistingLogin {
  background: var(--cp-primary-500);
  border: 1px solid var(--cp-primary-500);
  color: var(--cp-surface);
}
#order-standard_cart.cpck #frmCheckout #btnExistingLogin:hover {
  background: var(--cp-primary-600);
  border-color: var(--cp-primary-600);
}
/* Approved checkout form variant A (static prototype A): the billing-account
   signup cards and the domain-owner form card take the restrained flat
   surface and compact --cp-gray-900 labels (copy case preserved); ornamental
   leading icons are hidden with visibility so the phone/state widgets keep
   their DOM anchors and their .show() calls cannot resurrect the glyph. */
#order-standard_cart.cpck #frmCheckout #containerNewUserSignup > .cpck-card,
#order-standard_cart.cpck #frmCheckout .cpck-owner,
#order-standard_cart.cpck #frmCheckout div#containerNewUserSecurity {
  border: 1px solid var(--cp-border-neutral);
  border-radius: 12px;
  box-shadow: none;
  margin: 0 0 16px;
  padding: 16px;
}
#order-standard_cart.cpck #frmCheckout #containerNewUserSignup > .cpck-card > .cpck-card-title,
#order-standard_cart.cpck #frmCheckout .cpck-owner > .cpck-card-title,
#order-standard_cart.cpck #frmCheckout #containerNewUserSecurity > .cpck-card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0 0 14px;
}
#order-standard_cart.cpck #frmCheckout #containerNewUserSignup .prepend-icon .field-icon,
#order-standard_cart.cpck #frmCheckout .cpck-owner .prepend-icon .field-icon,
#order-standard_cart.cpck #frmCheckout #containerNewUserSecurity .prepend-icon .field-icon {
  visibility: hidden;
}
#order-standard_cart.cpck #frmCheckout #containerNewUserSignup .prepend-icon .field.form-control,
#order-standard_cart.cpck #frmCheckout .cpck-owner .prepend-icon .field.form-control,
#order-standard_cart.cpck #frmCheckout #containerNewUserSecurity .prepend-icon .field.form-control,
#order-standard_cart.cpck #frmCheckout #containerNewUserSignup .prepend-icon select.field.form-control,
#order-standard_cart.cpck #frmCheckout .cpck-owner .prepend-icon select.field.form-control,
#order-standard_cart.cpck #frmCheckout #containerNewUserSecurity .prepend-icon select.field.form-control {
  padding-left: 12px;
}

/* 10. Payment gateways: hidden-radio option cards, like the VPS billing cycle. */
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer {
  background: none;
  border: 0;
  box-shadow: none;
  margin: 0 0 16px;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer p.small {
  color: var(--cp-gray-600);
  font-family: inherit;
  font-size: 14px;
  margin: 0 0 12px;
}
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: left;
}
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline {
  align-items: center;
  background: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  color: var(--cp-gray-900);
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  justify-content: center;
  line-height: 1.3;
  margin: 0;
  min-height: 64px;
  padding: 10px 12px;
  position: relative;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  width: auto;
}
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline:hover {
  border-color: var(--cp-primary-300);
}
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline:focus-within {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline:has(.checked),
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline:has(input:checked) {
  background: var(--cp-primary-50);
  border-color: var(--cp-primary-300);
  box-shadow: 0 0 0 1px var(--cp-primary-300);
  color: var(--cp-primary-500);
}
/* Visually hide the iCheck wrapper but keep the whole card clickable. */
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline .iradio_square-blue {
  background: none;
  border: 0;
  border-radius: 0;
  height: 100%;
  inset: 0;
  margin: 0;
  opacity: 0;
  position: absolute;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline .iradio_square-blue::after {
  content: none;
}
#order-standard_cart.cpck #frmCheckout .gateway-errors {
  border-radius: 6px;
  margin: 0 0 16px;
}

/* 11. Credit-card fields sit inside the payment card without their own chrome. */
#order-standard_cart.cpck #frmCheckout .cc-input-container {
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout .cc-input-container label {
  font-family: inherit;
  line-height: 1.4;
}
#order-standard_cart.cpck #frmCheckout .cc-input-container label.radio-inline {
  color: var(--cp-gray-900);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  padding-left: 28px;
}
#order-standard_cart.cpck #frmCheckout .cc-input-container label.radio-inline .iradio_square-blue {
  left: 0;
  position: absolute;
  top: 1px;
}
#order-standard_cart.cpck #frmCheckout .cc-input-container ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* 12. Marketing opt-in card text (toggle-switch internals untouched). */
#order-standard_cart.cpck #frmCheckout .marketing-email-optin h4 {
  color: var(--cp-gray-900);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}
#order-standard_cart.cpck #frmCheckout .marketing-email-optin p {
  color: var(--cp-gray-600);
  font-family: inherit;
  margin: 0 0 10px;
}

/* 13. Summary column. The top offset is an estimate: the sticky Cloudpedia
   header is about 80px tall plus a 16px gap. Pending measurement on staging;
   sidebar.css does not set the header height. */
#order-standard_cart.cpck #frmCheckout .cpck-summary {
  align-self: start;
  min-width: 0;
  position: sticky;
  top: 96px;
}
#order-standard_cart.cpck #frmCheckout .cpck-summary-card {
  background: var(--cp-surface);
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.05);
  padding: 20px 22px;
}
#order-standard_cart.cpck #frmCheckout .cpck-summary-title {
  color: var(--cp-gray-900);
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  margin: 0 0 12px;
}
#order-standard_cart.cpck #frmCheckout .cpck-total {
  align-items: baseline;
  border-bottom: 1px solid var(--cp-border-neutral);
  border-top: 1px solid var(--cp-border-neutral);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 16px;
  padding: 14px 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-total-label {
  color: var(--cp-gray-600);
  font-size: 14px;
  font-weight: 600;
}
#order-standard_cart.cpck #frmCheckout .cpck-total #totalCartPrice {
  color: var(--cp-gray-900);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
#order-standard_cart.cpck #frmCheckout #applyCreditContainer {
  background: none;
  border: 0;
  box-shadow: none;
  margin: 0 0 16px;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout #applyCreditContainer p {
  color: var(--cp-gray-600);
  font-size: 14px;
  margin: 0 0 10px;
}
#order-standard_cart.cpck #frmCheckout #applyCreditContainer label.radio {
  align-items: flex-start;
  color: var(--cp-gray-900);
  display: flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  gap: 8px;
  line-height: 1.4;
  margin: 0 0 8px;
}
#order-standard_cart.cpck #frmCheckout #applyCreditContainer label.radio .iradio_square-blue {
  flex: 0 0 auto;
  margin: 1px 0 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-actions > p {
  color: var(--cp-gray-600);
  font-size: 14px;
  margin: 0 0 14px;
  text-align: left;
}
#order-standard_cart.cpck #frmCheckout .cpck-actions label.checkbox-inline {
  align-items: flex-start;
  color: var(--cp-gray-900);
  display: flex;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  gap: 8px;
  line-height: 1.4;
  margin: 0;
  padding-left: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-actions label.checkbox-inline .icheckbox_square-blue {
  flex: 0 0 auto;
  margin: 1px 0 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-actions .margin-bottom {
  margin: 0 0 16px;
  text-align: left;
}
/* Captcha wrapper: the include renders a Bootstrap .row (-15px side margins)
   and twenty-one sets #google-recaptcha-domainchecker to 304px with a
   left-anchored scale/padding at small widths. Zero the margins and padding,
   and keep twenty-one's mobile scale but pivot it on the centre so the shrunk
   widget stays centred. The widget keeps its 304px layout box (flex: none, no
   max-width) because the iframe inside is a fixed 304px; centred flex overflows
   equally on both sides and the scaled result fits the card. */
#order-standard_cart.cpck #frmCheckout .cpck-actions .captcha-cloudx-theme {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
  max-width: 100%;
  padding: 0;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout .cpck-actions .captcha-cloudx-theme .recaptcha-container {
  flex: none;
  margin: 0;
  padding: 0;
  transform-origin: 50% 0;
}
#order-standard_cart.cpck #frmCheckout #btnCompleteOrder {
  align-items: center;
  background: var(--cp-primary-500);
  border: 1px solid var(--cp-primary-500);
  border-radius: 6px;
  color: var(--cp-surface);
  display: inline-flex;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
  min-height: 44px;
  padding: 10px 16px;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout #btnCompleteOrder:hover,
#order-standard_cart.cpck #frmCheckout #btnCompleteOrder:focus {
  background: var(--cp-primary-600);
  border-color: var(--cp-primary-600);
  color: var(--cp-surface);
}
#order-standard_cart.cpck #frmCheckout #btnCompleteOrder:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}
#order-standard_cart.cpck #frmCheckout #btnCompleteOrder:disabled,
#order-standard_cart.cpck #frmCheckout #btnCompleteOrder.disabled {
  cursor: wait;
  opacity: 0.75;
}

/* 14. Security message: help-note, full width below the layout. */
#order-standard_cart.cpck .checkout-security-msg {
  background: var(--cp-primary-50);
  border: 0;
  border-left: 3px solid var(--cp-primary-500);
  border-radius: 6px;
  color: var(--cp-gray-900);
  margin: 24px 0 0;
  padding: 14px 18px;
}

/* 15. Responsive. */
@media (max-width: 1199px) {
  #order-standard_cart.cpck #frmCheckout .cpck-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #order-standard_cart.cpck #frmCheckout .cpck-summary {
    position: static;
  }
}
@media (max-width: 640px) {
  #order-standard_cart.cpck {
    padding: 16px 14px 32px;
  }
  #order-standard_cart.cpck .checkout-error-feedback {
    padding: 11px 12px;
  }
  #order-standard_cart.cpck .header-lined h1 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #order-standard_cart.cpck #frmCheckout #paymentGatewaysContainer div.text-center label.radio-inline,
  #order-standard_cart.cpck #frmCheckout .account-select-container div.account {
    transition: none;
  }
}

/* 14. Domain owner (#459). Form-first registrant section: one owner covers
   every domain in the order, the native selector stays authoritative, and the
   summary is read-only except for the explicit new-Contact prefill. */
#order-standard_cart.cpck #frmCheckout .cpck-owner-lede {
  color: var(--cp-gray-600);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 16px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-domains {
  border: 0;
  border-radius: 0;
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-domain {
  align-items: baseline;
  border-bottom: 1px solid var(--cp-border-neutral);
  display: grid;
  gap: 2px 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-domain:last-child {
  border-bottom: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-domain-name {
  color: var(--cp-gray-900);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-domain-status {
  align-items: flex-start;
  color: var(--cp-gray-600);
  display: inline-flex;
  font-size: 13px;
  gap: 6px;
  justify-self: end;
  min-width: 0;
  text-align: right;
  white-space: normal;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-dot {
  background: var(--cp-gray-600);
  border-radius: 50%;
  display: inline-block;
  flex: none;
  height: 8px;
  margin-top: 5px;
  opacity: 0.5;
  width: 8px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-dot.is-complete {
  background: var(--cp-success-500);
  opacity: 1;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-dot.is-incomplete {
  background: var(--cp-warning-500);
  opacity: 1;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-field {
  margin-bottom: 16px;
}
/* 14a. Owner radio cards (#459 follow-up). The native select stays the
   submitted control; it and its label are only hidden after the cards are
   built, so the no-JS checkout keeps the dropdown. */
#order-standard_cart.cpck #frmCheckout .cpck-owner-field[hidden],
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice[hidden] {
  display: none;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice {
  border: 0;
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice-legend {
  color: var(--cp-gray-900);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  padding: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-option {
  align-items: flex-start;
  background: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 12px 16px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-option.is-checked {
  background: var(--cp-primary-50);
  border-color: var(--cp-primary-500);
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-option:focus-within {
  border-color: var(--cp-primary-500);
  box-shadow: 0 0 0 3px var(--cp-primary-500-soft);
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-radio {
  accent-color: var(--cp-primary-500);
  flex: none;
  height: 16px;
  margin: 2px 0 0;
  width: 16px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice-body {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice-title {
  color: var(--cp-gray-900);
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice-desc {
  color: var(--cp-gray-600);
  display: block;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 2px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice-hint {
  align-items: flex-start;
  color: var(--cp-gray-600);
  display: flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.5;
  margin-top: 6px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice-dot {
  background: var(--cp-warning-500);
  border-radius: 50%;
  flex: none;
  height: 8px;
  margin-top: 5px;
  width: 8px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-choice-dot.is-complete {
  background: var(--cp-success-500);
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-label {
  color: var(--cp-gray-900);
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 6px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-field-label {
  color: var(--cp-gray-900);
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 6px;
  text-transform: none;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-summary {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px 16px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-selected {
  color: var(--cp-gray-900);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-state {
  color: var(--cp-gray-600);
  font-size: 13px;
  margin: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-gaps {
  color: var(--cp-gray-600);
  font-size: 13px;
  line-height: 1.55;
  list-style: disc outside;
  margin: 8px 0 0 18px;
  padding: 0;
}
/* The parent theme resets every element with `* { list-style: none }`, which a
   direct li declaration beats, so the approved per-gap bullets need both. */
#order-standard_cart.cpck #frmCheckout .cpck-owner-gaps li {
  list-style: disc outside;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-gaps li + li {
  margin-top: 4px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-complete-btn {
  background: var(--cp-surface);
  border: 1px solid var(--cp-border-neutral);
  border-radius: 8px;
  color: var(--cp-gray-900);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  height: 36px;
  margin-top: 12px;
  padding: 0 14px;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-complete-btn:hover {
  border-color: var(--cp-primary-300);
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-complete-btn:focus {
  border-color: var(--cp-primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-edit,
#order-standard_cart.cpck #frmCheckout .cpck-owner-hint {
  color: var(--cp-gray-600);
  font-size: 13px;
  line-height: 1.55;
  margin: 8px 0 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-edit a {
  color: var(--cp-primary-500);
  font-weight: 600;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-draft {
  border-top: 1px solid var(--cp-border-neutral);
  margin-top: 14px;
  padding-top: 16px;
}
/* The shared grids own the control width; payment-card fields keep the parent
   input-group geometry. */
#order-standard_cart.cpck #frmCheckout .cpck-owner-draft .field.form-control,
#order-standard_cart.cpck #frmCheckout .cpck-signup-fields .field.form-control,
#order-standard_cart.cpck #frmCheckout #containerPassword .field.form-control {
  display: block;
  width: 100%;
}
/* Native custom fields join the label language; their controls are core-rendered,
   so only text-like controls take the shared box (checkbox/radio/hidden/file/
   button keep their native size). */
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container .form-group label {
  color: var(--cp-gray-900);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0 0 6px;
  text-transform: none;
}
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]),
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container select.form-control,
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container textarea.form-control {
  border-radius: 8px;
  display: block;
  font-size: 14px;
  height: 40px;
  min-height: 40px;
  width: 100%;
}
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container input.form-control:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="submit"]):not([type="button"]):focus,
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container select.form-control:focus,
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container textarea.form-control:focus {
  border-color: var(--cp-primary-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
  outline: none;
}
#order-standard_cart.cpck #frmCheckout .cpck-card .field-container textarea.form-control {
  line-height: 1.5;
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}
@media (max-width: 575.98px) {
  #order-standard_cart.cpck #frmCheckout .cpck-owner-domain {
    grid-template-columns: minmax(0, 1fr);
  }
  #order-standard_cart.cpck #frmCheckout .cpck-owner-domain-status {
    justify-self: start;
    text-align: left;
  }
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-domain-owner {
  color: var(--cp-gray-600);
  font-size: 13px;
  grid-column: 1 / -1;
  overflow-wrap: anywhere;
}
/* Native registrant fields keep their Bootstrap column classes; this grid
   makes the approved two-up field rhythm independent of the parent column
   rules, which only match the pre-fork structural markup. The account signup
   rows reuse the same grid so both forms share one field rhythm. */
#order-standard_cart.cpck #frmCheckout .cpck-owner-draft #domainRegistrantInputFields,
#order-standard_cart.cpck #frmCheckout .cpck-card .cpck-signup-fields,
#order-standard_cart.cpck #frmCheckout #containerPassword:not(.w-hidden) {
  display: grid;
  gap: 14px 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-left: 0;
  margin-right: 0;
}
/* The grid owns the vertical rhythm, so cells drop the form-group margin. */
#order-standard_cart.cpck #frmCheckout .cpck-owner-draft #domainRegistrantInputFields .form-group,
#order-standard_cart.cpck #frmCheckout .cpck-card .cpck-signup-fields .form-group,
#order-standard_cart.cpck #frmCheckout #containerPassword .form-group {
  margin-bottom: 0;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-draft #domainRegistrantInputFields > [class*="col-"],
#order-standard_cart.cpck #frmCheckout .cpck-card .cpck-signup-fields > [class*="col-"],
#order-standard_cart.cpck #frmCheckout #containerPassword > [class*="col-"] {
  float: none;
  flex: none;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: auto;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-draft #domainRegistrantInputFields > .col-sm-6,
#order-standard_cart.cpck #frmCheckout .cpck-card .cpck-signup-fields > .col-sm-6,
#order-standard_cart.cpck #frmCheckout #containerPassword > .col-sm-6 {
  grid-column: span 6;
}
#order-standard_cart.cpck #frmCheckout .cpck-owner-draft #domainRegistrantInputFields > .col-sm-12,
#order-standard_cart.cpck #frmCheckout .cpck-card .cpck-signup-fields > .col-sm-12,
#order-standard_cart.cpck #frmCheckout #containerPassword > .col-sm-12 {
  grid-column: span 12;
}
@media (max-width: 767.98px) {
  #order-standard_cart.cpck #frmCheckout .cpck-owner-draft #domainRegistrantInputFields > [class*="col-"],
  #order-standard_cart.cpck #frmCheckout .cpck-card .cpck-signup-fields > [class*="col-"],
  #order-standard_cart.cpck #frmCheckout #containerPassword > [class*="col-"] {
    grid-column: span 12;
  }
}
/* RTL: the real theme marks ar/fa/he pages with body.body-rtl, so the leading
   icon zone and the select chevron mirror without touching the phone plugin. */
body.body-rtl #order-standard_cart.cpck #frmCheckout .prepend-icon .field-icon {
  padding-left: 0;
  padding-right: 12px;
  text-align: right;
}
body.body-rtl #order-standard_cart.cpck #frmCheckout .prepend-icon input.field.form-control {
  padding-left: 12px;
  padding-right: 38px;
}
body.body-rtl #order-standard_cart.cpck #frmCheckout select.field.form-control {
  background-position: left 12px center;
  padding-left: 36px;
  padding-right: 12px;
}
body.body-rtl #order-standard_cart.cpck #frmCheckout .prepend-icon select.field.form-control {
  padding-left: 36px;
  padding-right: 38px;
}
body.body-rtl #order-standard_cart.cpck #frmCheckout #stateselect {
  padding-left: 36px;
  padding-right: 12px;
}
/* Approved variant A has no leading icon, so these forms clear both sides of
   the text in RTL; the select keeps its chevron clearance on the left. */
body.body-rtl #order-standard_cart.cpck #frmCheckout #containerNewUserSignup .prepend-icon input.field.form-control,
body.body-rtl #order-standard_cart.cpck #frmCheckout .cpck-owner .prepend-icon input.field.form-control,
body.body-rtl #order-standard_cart.cpck #frmCheckout #containerNewUserSecurity .prepend-icon input.field.form-control {
  padding-left: 12px;
  padding-right: 12px;
}
body.body-rtl #order-standard_cart.cpck #frmCheckout #containerNewUserSignup .prepend-icon select.field.form-control,
body.body-rtl #order-standard_cart.cpck #frmCheckout .cpck-owner .prepend-icon select.field.form-control,
body.body-rtl #order-standard_cart.cpck #frmCheckout #containerNewUserSecurity .prepend-icon select.field.form-control {
  padding-left: 36px;
  padding-right: 12px;
}
