/* External checkout. Colors, type, radius, and controls come from tokens.css and components.css. */

.xco {
  min-height: 100dvh;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}

.xco [hidden] {
  display: none !important;
}

.xco-top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--topbar-elevated);
  border-bottom: 1px solid var(--topbar-border);
}

.xco-top__inner {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.xco-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 32px;
  color: var(--text-muted);
  font-size: var(--fs-13);
  font-weight: 500;
  text-decoration: none;
}

.xco-back .icon {
  width: 14px;
  height: 14px;
}

.xco-back:hover {
  color: var(--text-secondary);
  text-decoration: none;
}

.xco-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text);
}

.xco-logo {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
  border-radius: 5px;
}

html[data-theme="dark"] .xco-logo {
  box-shadow: 0 0 0 1px var(--border);
}

.xco-brand__name {
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}

.xco-brand__rule {
  width: 1px;
  height: 14px;
  background: var(--border-strong);
  flex: none;
}

.xco-top-title {
  font-size: var(--fs-14);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--text-secondary);
}

.xco-tools {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xco-theme,
.xco-lang {
  position: relative;
  flex: none;
}

.xco-theme__sun,
.xco-theme__moon {
  display: none;
}

.xco-theme.is-light .xco-theme__sun,
.xco-theme.is-dark .xco-theme__moon {
  display: block;
}

.xco-top .topbar-theme__btn,
.xco-top .topbar-lang__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border: 1px solid var(--topbar-line);
  border-radius: 8px;
  background: var(--topbar-elevated);
  color: var(--text);
  font-size: var(--fs-12);
  font-weight: 500;
  line-height: 1;
}

.xco-top .topbar-theme__btn {
  width: 32px;
  padding: 0;
}

.xco-top .topbar-lang__btn {
  padding: 0 8px;
}

.xco-top .topbar-theme__btn:hover,
.xco-top .topbar-lang__btn:hover,
.xco-theme.is-open .topbar-theme__btn,
.xco-lang.is-open .topbar-lang__btn {
  background: var(--hover);
}

.xco-top .topbar-theme__btn .icon,
.xco-top .topbar-lang__chevron {
  width: 16px;
  height: 16px;
}

.xco-top .topbar-lang__chevron {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.xco-top .topbar-lang__flag {
  font-size: 14px;
  line-height: 1;
}

.xco-top .topbar-theme__menu,
.xco-top .topbar-lang__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 6;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-elevated);
  box-shadow: var(--shadow-overlay);
}

.xco-top .topbar-theme__menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}

.xco-top .topbar-lang__menu {
  min-width: 180px;
  max-width: min(240px, calc(100vw - 32px));
  padding: 4px;
}

.xco-top .topbar-theme__menu[hidden],
.xco-top .topbar-lang__menu[hidden] {
  display: none !important;
}

.xco-top .topbar-theme__opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
}

.xco-top .topbar-theme__opt .icon {
  width: 16px;
  height: 16px;
}

.xco-top .topbar-lang__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-13);
  font-weight: 500;
  text-align: left;
  line-height: 1.3;
}

.xco-top .topbar-theme__opt:hover,
.xco-top .topbar-lang__opt:hover {
  background: var(--hover);
  color: var(--text);
}

.xco-top .topbar-theme__opt.is-active,
.xco-top .topbar-lang__opt.is-active {
  background: var(--primary-soft);
  color: var(--primary-text);
}

/* Checkout: details and payment on the left, the buying decision on the right. */
.xco { --control-h: 44px; }
.xco-wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 48px; }
.xco-intro { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 26px; }
.xco-eyebrow { color: var(--primary-text); font-size: 10px; font-weight: 700; letter-spacing: .13em; margin-bottom: 7px; }
.xco-intro h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }
#xco-heading-lead { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.xco-progress { display: flex; flex: none; gap: 18px; list-style: none; padding: 0; margin: 0; }
.xco-progress li { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.xco-progress li > span:first-child { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 10px; }
.xco-progress .is-current { color: var(--primary-text); font-weight: 600; }
.xco-progress .is-current > span:first-child { background: var(--primary-soft); border-color: var(--primary-border); }
.xco-form { margin: 0; }
.xco-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(350px, 1fr); gap: 24px; align-items: start; }
.xco-identity { display: grid; gap: 18px; min-width: 0; }
.xco-configuration, .xco-account, .xco-pay, .xco-buy, .xco-result { min-width: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-card); }
.xco-configuration, .xco-account, .xco-pay { padding: 24px; }
.xco-buy { position: sticky; top: 76px; overflow: hidden; }
.xco-sumhead { padding: 22px 24px 18px; }
.xco-confirm { padding: 0 24px 22px; }
.xco-section-heading { display: flex; align-items: center; gap: 10px; }
.xco-step { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-text); font-size: 12px; font-weight: 600; }
.xco-section h2, .xco-summary__label { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.xco-lead { color: var(--text-secondary); font-size: 12px; line-height: 1.6; margin-top: 7px; }
.xco-config-icon .icon { width: 17px; height: 17px; }
#xco-config-controls { display: grid; gap: 20px; margin-top: 22px; }
.xco-config-field { display: block; min-width: 0; width: 100%; margin: 0; padding: 0; border: 0; }
.xco-config-field > legend, .xco-config-field > label, .xco-config-row > label, .xco-config-row > span:first-child { display: block; padding: 0; color: var(--text); font-size: 12px; font-weight: 600; line-height: 1.5; }
.xco-config-field > legend { width: 100%; margin-bottom: 9px; }
.xco-config-field > label { margin-bottom: 9px; }
.xco-config-row { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 9px; }
.xco-config-row small { color: var(--text-muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.xco-config-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.xco-config-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.xco-config-option { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; min-width: 0; min-height: 74px; padding: 12px 32px 12px 13px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-interactive); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.xco-config-option > span { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 7px; color: var(--text-secondary); font-size: 12px; line-height: 1.4; }
.xco-config-option > strong { color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; font-variant-numeric: tabular-nums; }
.xco-config-option > small { color: var(--text-muted); font-size: 10px; line-height: 1.5; }
.xco-config-option::after { content: ""; position: absolute; top: 14px; right: 12px; width: 13px; height: 13px; border: 1px solid var(--border-strong); border-radius: 50%; }
.xco-config-option:hover { background: var(--surface-row-hover); border-color: var(--primary-border); }
.xco-config-option.is-active, .xco-config-option[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.xco-config-option.is-active::after, .xco-config-option[aria-checked="true"]::after { content: "✓"; display: grid; place-items: center; border-color: var(--primary); background: var(--primary); color: var(--text-on-primary); font-size: 9px; font-weight: 700; line-height: 1; }
.xco-config-option.is-active > strong, .xco-config-option[aria-checked="true"] > strong { color: var(--primary-text); }
.xco-config-option:focus-visible, .xco-config-quantity button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.xco-config-option:disabled { opacity: .5; cursor: not-allowed; }
.xco-config-options--3 .xco-config-option { min-height: 46px; padding: 10px 30px 10px 12px; }
.xco-config-options--3 .xco-config-option > span { color: var(--text); font-weight: 500; }
.xco-config-select { display: block; width: 100%; min-height: 44px; color: var(--text); background-color: var(--surface-interactive); cursor: pointer; }
.xco-country { position: relative; min-width: 0; }
.xco-country.is-open { z-index: 20; }
.xco .xco-country-trigger { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; min-height: 44px; background: var(--surface-interactive); color: var(--text); text-align: left; cursor: pointer; }
.xco-country-name { flex: 1; min-width: 0; }
.xco-country-flag { display: block; flex: none; width: 20px; height: 15px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px #64748b26; }
.xco-country-chevron { flex: none; width: 7px; height: 7px; margin: -4px 3px 0 5px; border-right: 1.5px solid var(--text-muted); border-bottom: 1.5px solid var(--text-muted); transform: rotate(45deg); }
.xco-country-trigger[aria-expanded="true"] .xco-country-chevron { margin-top: 4px; transform: rotate(225deg); }
.xco-country-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 21; max-height: 248px; overflow-y: auto; overscroll-behavior: contain; padding: 5px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-elevated); box-shadow: var(--shadow-overlay); }
.xco-country-menu[hidden] { display: none; }
.xco-country-option { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 8px; border: 0; border-radius: 5px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.xco-country-option:hover, .xco-country-option:focus-visible, .xco-country-option[aria-selected="true"] { background: var(--primary-soft); color: var(--primary-text); outline: none; }
.xco-country-check { flex: none; width: 15px; color: var(--primary-text); }
.xco-config-quantity { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-interactive); }
.xco-config-quantity button { display: grid; place-items: center; flex: none; width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 8px 0 0 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: 18px; cursor: pointer; }
.xco-config-quantity button:last-child { border-radius: 0 8px 8px 0; }
.xco-config-quantity button:hover { color: var(--primary-text); background: var(--primary-soft); }
.xco-config-quantity button:disabled { color: var(--text-disabled); background: transparent; cursor: not-allowed; }
.xco .xco-config-quantity .input { width: 64px; height: auto; min-height: 44px; padding: 8px 4px; border-width: 0 1px; border-color: var(--border); border-radius: 0; background: transparent; color: var(--text); text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.xco-config-quantity.is-locked { opacity: .6; }
.xco-config-option.is-soldout:not(.is-active):not(:disabled) { opacity: .75; }
.xco-config-option.is-soldout > small { color: var(--text-secondary); font-weight: 500; }
.xco-stock { margin-top: 8px; min-height: 17px; color: var(--text-secondary); font-size: 12px; font-weight: 500; line-height: 1.4; }
.xco-stock--low, .xco-stock--last { color: var(--warn-text); }
.xco-stock--soldout { color: var(--text-secondary); }
.xco-stock--error { color: var(--danger-text); }
.xco-stock-note { margin-top: 6px; color: var(--warn-text); font-size: 12px; line-height: 1.4; }
.xco-config-quantity input::-webkit-inner-spin-button, .xco-config-quantity input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.xco-config-recommended { display: inline-flex; align-items: center; width: fit-content; padding: 2px 5px; border-radius: 4px; background: var(--primary-soft); color: var(--primary-text); font-size: 9px; font-weight: 500; letter-spacing: 0; line-height: 1.4; }
.xco-config-unit { color: var(--text-muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.xco-config-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--divider); color: var(--text-secondary); font-size: 11px; line-height: 1.6; }
.xco-config-note:empty { display: none; }
#xco-configuration { scroll-margin-top: 90px; }
.xco-google { width: 100%; margin-top: 20px; min-height: 44px; gap: 10px; border-radius: 8px; background: var(--surface); font-size: 13px; }
.xco-g { width: 17px; height: 17px; flex: none; }
.xco-or { display: flex; align-items: center; gap: 12px; margin-top: 16px; color: var(--text-muted); font-size: 11px; }
.xco-or::before, .xco-or::after { content: ""; height: 1px; flex: 1; background: var(--divider); }
.xco-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.xco .field { min-width: 0; }
.xco .field__label { font-size: 12px; font-weight: 500; color: var(--text); }
.xco .input { width: 100%; min-width: 0; border-radius: 8px; font-size: 14px; }
.xco .input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.xco .input.is-invalid { border-color: var(--danger); }
.xco .input.is-invalid:focus { box-shadow: 0 0 0 3px var(--danger-soft); }
.xco-pass { position: relative; }
.xco-pass .input { padding-right: 44px; }
.xco-eye { position: absolute; top: 0; right: 0; width: 44px; height: 44px; color: var(--text-muted); }
.xco-eye .xco-eye__off, .xco-eye[aria-pressed="true"] .xco-eye__on { display: none; }
.xco-eye[aria-pressed="true"] .xco-eye__off { display: inline-block; }
.xco-switch { margin-top: 16px; font-size: 12px; color: var(--text-secondary); }
.xco-textbtn { border: 0; padding: 0; background: none; color: var(--primary-text); font: inherit; font-weight: 600; text-decoration: none; }
.xco-textbtn:hover { text-decoration: underline; }
.xco-textbtn:disabled { color: var(--text-disabled); cursor: not-allowed; }
.xco-note { margin-top: 14px; padding: 10px; border: 1px solid var(--primary-border); border-radius: 8px; background: var(--info-soft); font-size: 12px; }
.xco-account-action { width: 100%; margin-top: 14px; }
.xco-auth { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 14px; border-radius: 8px; background: var(--primary-soft); font-size: 12px; }
.xco-auth__email { font-weight: 600; overflow-wrap: anywhere; }
.xco-auth__meta { color: var(--text-secondary); margin-top: 3px; }
.xco-error { color: var(--danger-text); font-size: 12px; line-height: 1.5; margin-top: 6px; }
.xco .xco-payhost { width: 100%; max-width: none; }
.xco .xco-payhost .pay-methods { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.xco .xco-payhost .pay-method { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 10px; padding: 14px 12px; min-height: 112px; border-radius: 10px; }
.xco .xco-payhost .pay-method.is-active { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.xco .xco-payhost .pay-method__icon { width: 28px; height: 28px; color: var(--primary-text); }
.xco .xco-payhost .pay-method__icon .icon { width: 17px; height: 17px; }
.xco .xco-payhost .pay-method__title { font-size: 13px; font-weight: 600; }
.xco .xco-payhost .pay-method__desc { margin-top: 3px; font-size: 10px; line-height: 1.4; color: var(--text-secondary); }
.xco .xco-payhost .pay-method__badges { display: none; }
.xco .xco-payhost .pay-radio { position: absolute; top: 16px; right: 12px; width: 16px; height: 16px; }
.xco .pay-radio:not(.is-on) .icon { display: none; }
.xco-payment-detail { margin-top: 14px; font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.xco-payment-brands { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.xco-payment-brands:empty { display: none; }
.xco-payment-brands .pay-badge { padding: 2px 7px; border-radius: 4px; color: var(--text-secondary); background: var(--surface-muted); font-size: 10px; }
.xco-summary__toggle { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.xco-summary__bar { display: flex; align-items: center; gap: 10px; }
.xco-summary__heading { flex: 1; min-width: 0; }
.xco-summary__label { display: block; }
.xco-summary__preview { display: none; color: var(--text-secondary); font-size: 12px; margin-top: 3px; }
.xco-summary__total { font-size: 15px; font-weight: 600; white-space: nowrap; }
.xco-chevron { width: 16px; height: 16px; flex: none; color: var(--text-muted); }
.xco-summary__toggle[aria-expanded="true"] .xco-chevron { transform: rotate(180deg); }
.xco-summary__body { margin-top: 20px; }
.xco-productline { display: flex; align-items: center; gap: 10px; }
.xco-product-icon { display: grid; place-items: center; flex: none; width: 38px; height: 42px; background: var(--primary-soft); border-radius: 10px; color: var(--primary-text); }
.xco-product-icon .icon { width: 22px; height: 22px; }
.xco-product { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
#xco-change { font-size: 12px; }
.xco-rows, .xco-totals { display: grid; gap: 10px; margin: 18px 0 0; }
.xco-rows > div, .xco-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.xco-rows dt, .xco-totals dt { font-size: 12px; color: var(--text-secondary); }
.xco-rows dd, .xco-totals dd { margin: 0; text-align: right; font-size: 12px; font-weight: 500; }
.xco-totals { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 0; }
.xco-totals .is-total { margin-top: 2px; align-items: center; }
.xco-totals .is-total dt { color: var(--text); font-size: 16px; font-weight: 600; }
.xco-totals .is-total dd { font-size: 28px; font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
#xco-discount-row dt, #xco-discount { color: var(--primary-text); }
.xco-currency { color: var(--text-muted); font-size: 10px; margin-top: 2px; text-align: right; }
.xco-coupon { margin-top: 18px; font-size: 12px; }
#xco-coupon-toggle { color: var(--text-secondary); font-weight: 500; }
#xco-coupon-toggle::before { content: "+"; margin-right: 6px; }
.xco-coupon__row { display: flex; gap: 8px; margin-top: 6px; }
.xco-coupon__row .btn { flex: none; width: auto; }
.xco-applied { display: flex; justify-content: space-between; gap: 12px; color: var(--primary-text); font-size: 12px; }
.xco-picker { display: grid; gap: 6px; margin-top: 12px; }
.xco-picker__opt { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); font-size: 12px; text-align: left; }
.xco-picker__opt:hover, .xco-picker__opt.is-active { background: var(--primary-soft); border-color: var(--primary-border); }
.xco-picker__price { color: var(--text-secondary); white-space: nowrap; }
.xco-terms { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; font-size: 11px; line-height: 1.6; color: var(--text-secondary); }
.xco-terms__input { width: 17px; height: 17px; flex: none; margin: 1px 0 0; accent-color: var(--primary-text); cursor: pointer; }
.xco-terms__copy label { cursor: pointer; }
.xco-terms a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.xco-terms.is-invalid .xco-terms__input { outline: 2px solid var(--danger); outline-offset: 2px; }
.xco-cta { margin-top: 16px; }
.xco-submit { width: 100%; min-height: 50px; height: auto; padding: 12px 14px; gap: 9px; border-radius: 9px; background: #0f766e; border-color: #0f766e; color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 3px 6px #0f766e18; white-space: normal; }
.xco-submit:hover { background: #115e59; border-color: #115e59; }
.xco-submit > .icon:last-child { margin-left: auto; }
.xco-submit > span { flex: 1; }
.xco-submit.is-loading { pointer-events: none; }
.xco-submit.is-loading > .icon { display: none; }
.xco-submit.is-loading::before { content: ""; width: 16px; height: 16px; border: 2px solid #ffffff55; border-top-color: #fff; border-radius: 50%; animation: xco-spin .7s linear infinite; flex: none; }
@keyframes xco-spin { to { transform: rotate(360deg); } }
.xco-next { margin: 10px auto 0; max-width: 310px; font-size: 10px; line-height: 1.6; text-align: center; color: var(--text-muted); }
.xco-after { display: flex; align-items: flex-start; gap: 9px; margin-top: 20px; border-top: 1px solid var(--divider); padding-top: 16px; }
.xco-after__icon { color: var(--primary-text); padding-top: 1px; }
.xco-after h3 { font-size: 11px; font-weight: 600; }
.xco-after p { color: var(--text-secondary); font-size: 11px; line-height: 1.6; margin-top: 3px; }
.xco-result { max-width: 600px; margin: 24px auto; padding: 32px; text-align: center; }
.xco-result__mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 16px; color: var(--primary-text); background: var(--primary-soft); }
.xco-result__mark[data-state="error"], .xco-result__mark[data-state="cancelled"] { color: var(--danger-text); background: var(--danger-soft); }
.xco-result__icon { display: none; width: 24px; height: 24px; }
.xco-result__mark[data-state="success"] .xco-result__icon--ok,
.xco-result__mark[data-state="pending"] .xco-result__icon--wait,
.xco-result__mark[data-state="preview"] .xco-result__icon--wait,
.xco-result__mark[data-state="error"] .xco-result__icon--err,
.xco-result__mark[data-state="cancelled"] .xco-result__icon--err { display: block; }
.xco-result h2 { font-size: 24px; letter-spacing: -.03em; }
.xco-result p { margin-top: 8px; font-size: 13px; color: var(--text-secondary); }
.xco-result .btn { margin-top: 22px; min-height: 44px; }
.xco-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.xco [tabindex="-1"], .xco input { scroll-margin-top: 90px; }
@media (min-width: 960px) {
  .xco-summary__toggle { pointer-events: none; cursor: default; }
  .xco-chevron, .xco-summary__total { display: none; }
}
@media (max-width: 1050px) {
  .xco-progress { gap: 9px; }
  .xco-grid { gap: 18px; }
  .xco-configuration, .xco-account, .xco-pay { padding: 20px; }
}
@media (max-width: 959px) {
  .xco-wrap { max-width: 640px; padding-top: 24px; }
  .xco-intro { display: block; margin-bottom: 20px; }
  .xco-progress { margin-top: 20px; gap: 20px; }
  .xco-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .xco-identity, .xco-buy { display: contents; }
  .xco-sumhead { order: 1; }
  .xco-account { order: 2; }
  .xco-configuration { order: 3; }
  .xco-pay { order: 4; }
  .xco-confirm { order: 5; }
  .xco-sumhead, .xco-confirm { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); padding: 18px 20px; box-shadow: var(--shadow-card); }
  .xco-summary__label { font-size: 13px; }
  .xco-summary__preview { display: block; }
  .xco-summary__body { border-top: 1px solid var(--divider); padding-top: 16px; margin-top: 16px; }
  .xco-totals { padding-top: 0; border: 0; }
  .xco-configuration, .xco-account, .xco-pay { border-radius: 14px; }
  .xco-next { max-width: none; }
}
@media (max-width: 560px) {
  .xco-top__inner { width: calc(100% - 28px); min-height: 56px; grid-template-columns: auto 1fr auto; gap: 12px; }
  .xco-wrap { width: calc(100% - 28px); padding-top: 22px; padding-bottom: 24px; }
  .xco-back__label, .xco-top .topbar-lang__name, .xco-brand__rule, .xco-top-title { display: none; }
  .xco-brand__name { font-size: 13px; }
  .xco-intro h1 { font-size: 26px; }
  .xco-eyebrow { font-size: 9px; }
  .xco-progress { justify-content: space-between; gap: 8px; }
  .xco-progress li { font-size: 10px; gap: 5px; }
  .xco-progress li > span:first-child { width: 21px; height: 21px; }
  .xco-configuration, .xco-account, .xco-pay, .xco-sumhead, .xco-confirm { padding: 18px; }
  #xco-config-controls { gap: 18px; margin-top: 20px; }
  .xco-config-option { padding-left: 11px; padding-right: 28px; }
  .xco-config-option::after { right: 10px; }
  .xco-config-option > strong { font-size: 14px; }
  .xco-config-options--3 .xco-config-option { padding-left: 10px; padding-right: 27px; }
  .xco-fields { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .xco .input { font-size: 16px; }
  .xco .xco-payhost .pay-methods { gap: 7px; }
  .xco .xco-payhost .pay-method { padding: 12px 9px; min-height: 110px; }
  .xco .xco-payhost .pay-radio { right: 9px; top: 15px; width: 14px; height: 14px; }
  .xco .xco-payhost .pay-method__title { font-size: 12px; overflow-wrap: anywhere; }
  .xco .xco-payhost .pay-method__desc { font-size: 10px; }
  .xco-auth { align-items: flex-start; flex-direction: column; }
  .xco-totals .is-total dd { font-size: 27px; }
  .xco-submit { min-height: 50px; font-size: 14px; }
  .xco-terms { font-size: 12px; }
  .xco-result { padding: 24px; }
}
@media (max-width: 359px) {
  .xco-config-options { grid-template-columns: minmax(0, 1fr); }
  .xco-config-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xco-config-options--3 .xco-config-option { padding: 10px 7px; }
  .xco-config-options--3 .xco-config-option::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .xco-submit.is-loading::before { animation: none; } }

/* Small selection controls: label, payable price, one short savings badge. */
.xco-configuration { padding: 20px; }
#xco-config-controls { gap: 15px; margin-top: 17px; }
.xco-config-options { gap: 8px; }
.xco-config-options--plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.xco-config-options--plans .xco-config-option { min-height: 62px; padding: 9px 10px; gap: 5px; justify-content: center; }
.xco-config-options--plans .xco-config-option::after { display: none; }
.xco-config-options--plans .xco-config-option > span { font-size: 12px; }
.xco-config-options--plans .xco-config-option > strong { font-size: 14px; line-height: 1.25; font-weight: 600; }
/* Product picker (unified checkout): name with its icon, then the lowest unit price. */
.xco-config-options--products .xco-config-option { min-height: 64px; }
.xco-config-options--products .xco-config-option > span { color: var(--text); font-size: 13px; font-weight: 600; flex-wrap: nowrap; }
.xco-config-options--products .xco-config-option > span .icon { flex: none; width: 16px; height: 16px; color: var(--primary-text); }
.xco-config-options--products .xco-config-option > strong { color: var(--text-secondary); font-size: 12px; font-weight: 500; letter-spacing: 0; }
/* Mobile: one product per row, so a third product stacks instead of squeezing. */
@media (max-width: 600px) {
  .xco-config-options--products { grid-template-columns: minmax(0, 1fr); }
  .xco-config-options--products .xco-config-option { min-height: 56px; }
}
.xco-config-option--value > .xco-offer-heading { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 4px; flex-wrap: nowrap; }
.xco-offer-label { font-weight: 500; color: var(--text-secondary); font-size: 12px; white-space: nowrap; }
.xco-offer-discount { display: inline-flex; flex: none; width: fit-content; padding: 2px 4px; border-radius: 4px; color: var(--primary-text); background: var(--primary-soft); font-size: 9px; line-height: 1.2; font-weight: 600; white-space: nowrap; }
.xco-config-option--value.is-best-value { border-color: var(--primary-border); }
.xco-config-option--value.is-active { border-color: var(--primary); }
.xco-config-option--value > .xco-offer-best { position: absolute; top: -8px; left: 7px; display: inline-flex; width: fit-content; padding: 2px 5px; border-radius: 4px; background: var(--primary-text); color: var(--surface); font-size: 9px; line-height: 1.2; font-weight: 500; white-space: nowrap; }
.xco-selection-detail { margin-top: 8px; color: var(--text-secondary); font-size: 11px; line-height: 1.4; }
.xco-config-options--quantity { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.xco-config-options--quantity .xco-config-option { min-height: 38px; padding: 8px 6px; align-items: center; text-align: center; }
.xco-config-options--quantity .xco-config-option::after { display: none; }
.xco-config-options--quantity .xco-config-option > span { font-size: 12px; font-weight: 500; }
.xco-plan-value { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--text-secondary); font-size: 11px; }
.xco-plan-value[hidden] { display: none; }
@media (max-width: 600px) {
  .xco-configuration { padding: 18px; }
  .xco-config-options--plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .xco-config-options--quantity { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .xco-config-options--quantity .xco-config-option { padding: 8px 3px; }
}

.xco-payhost .pay-method.is-soon {
  cursor: not-allowed;
  opacity: .62;
}
.xco-payhost .pay-method.is-soon:hover {
  background: inherit;
  border-color: var(--border);
}
.xco-payhost .pay-method__title + .xco-soon {
  display: inline-block;
  width: max-content;
  margin: 2px 0;
  color: var(--warn-text);
  background: var(--warn-soft);
  border-color: transparent;
  font-weight: 600;
}
