/* ZabSys Cloud — order flow: cart, checkout, payment and result pages.
   Loaded after style.css, only on those pages. */

[hidden] { display: none !important; }
body.menu-open { overflow: hidden; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
.link-btn { color: var(--red); text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.mono { font-family: var(--mono); font-size: .95em; }

/* Slim header and footer used while paying */
.slim-header { background: #fff; border-bottom: 1px solid var(--line); }
.slim-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.slim-header__secure { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: #15803D; }
.slim-header__secure .ic { width: 18px; height: 18px; }
.slim-header__help { font-size: 14px; color: var(--muted); }
.slim-header__help strong { color: var(--ink); font-weight: 600; }
.slim-footer { border-top: 1px solid var(--line); padding: 22px 0; font-size: 13.5px; color: var(--muted); background: var(--gray); }
.slim-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.slim-footer ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.slim-footer a:hover { color: var(--ink); }

/* Progress steps */
.stepper { display: flex; align-items: center; margin-bottom: 28px; }
.stepper li { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--muted); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.stepper li:last-child { flex: 0 0 auto; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 16px; margin: 0 14px; background: var(--line); }
.stepper__dot { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border: 2px solid #CDD1D7; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 600; }
.stepper .ic { width: 14px; height: 14px; stroke-width: 3; }
.stepper .is-current { color: var(--ink); }
.stepper .is-current .stepper__dot { border-color: var(--red); color: var(--red); }
.stepper .is-done .stepper__dot { background: var(--red); border-color: var(--red); color: #fff; }
.stepper .is-done::after { background: var(--red); }
.stepper .is-error .stepper__dot { background: #B42318; border-color: #B42318; color: #fff; }

/* Layout */
.shop { padding: 32px 0 80px; }
.shop__title { margin-bottom: 22px; font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.015em; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.shop-main { display: grid; gap: 20px; min-width: 0; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; }
.panel h2 { margin-bottom: 16px; font-size: 18px; }
.panel__lead { margin: -8px 0 16px; color: var(--muted); font-size: 15px; }
.panel__sub { margin: 22px 0 0; font-size: 15px; }
.summary { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 24px; box-shadow: 0 12px 30px -20px rgba(22, 24, 29, .3); }
.summary h2 { font-size: 18px; }
.summary__note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.summary__edit { display: inline-block; margin-top: 12px; font-size: 14.5px; color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.sum { display: grid; gap: 10px; margin: 16px 0; font-size: 15px; }
.sum > div { display: flex; justify-content: space-between; gap: 12px; }
.sum dd { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum__code { font-size: 13px; color: var(--muted); }
.sum__total { padding-top: 12px; border-top: 1px solid var(--line); }
.sum__total dt { font-size: 17px; font-weight: 600; color: var(--ink); }
.sum__total dd { font-size: 22px; font-weight: 700; }
.trust-list { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.trust-list li { display: flex; gap: 8px; align-items: center; }
.trust-list .ic { width: 17px; height: 17px; color: var(--red); }

/* Cart */
.cart-list { display: grid; gap: 12px; }
.cart-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 130px 120px 40px; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; animation: rise .3s var(--ease) both; }
.cart-item__name { font-family: var(--mono); font-size: 19px; font-weight: 500; word-break: break-all; }
.cart-item__name--text { font-family: var(--font); font-size: 20px; font-weight: 600; word-break: normal; }
.cart-item__type { margin-top: 2px; font-size: 14px; color: var(--text); }
.cart-item__renew { font-size: 13.5px; color: var(--muted); }
.cart-item__label { display: block; margin-bottom: 4px; font-size: 12.5px; color: var(--muted); }
.input--sm { padding: 8px 10px; font-size: 15px; }
.cart-item__price { text-align: right; }
.cart-item__price strong { display: block; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cart-item__price small { font-size: 12.5px; color: var(--muted); }
.cart-item__remove { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; color: var(--muted); transition: background-color .15s, color .15s; }
.cart-item__remove:hover { background: var(--red-tint); color: var(--red); }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed #CDD1D7; border-radius: var(--radius); background: #fff; }
.empty__icon { width: 44px; height: 44px; margin: 0 auto 12px; color: #B6BAC1; stroke-width: 1.4; }
.empty h2 { font-size: 20px; }
.empty p { margin-top: 6px; color: var(--muted); }
.empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 22px 0 10px; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); }
.upsell h2 { margin-bottom: 4px; font-size: 17px; }
.upsell p { font-size: 14.5px; color: var(--muted); }
.promo { margin: 18px 0; padding-top: 18px; border-top: 1px solid var(--line); }
.promo__row { display: flex; gap: 8px; }
.promo__row .input { flex: 1; min-width: 0; padding: 10px 12px; }
.promo__msg { margin-top: 8px; font-size: 14px; }
.promo__msg:empty { display: none; }
.promo__msg.is-ok { color: #15803D; }
.promo__msg.is-bad { color: var(--red-dark); }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field-hint { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 13.5px; font-weight: 500; color: var(--red-dark); }
.field-error:empty { display: none; }
.input[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(231, 25, 38, .12); }
select.input { appearance: auto; }
.seg { display: inline-flex; margin-bottom: 18px; padding: 3px; border: 1px solid #CDD1D7; border-radius: 6px; background: #fff; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span { display: block; padding: 8px 16px; border-radius: 4px; font-size: 14.5px; font-weight: 500; transition: background-color .15s, color .15s; }
.seg__opt input:checked + span { background: var(--ink); color: #fff; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.check a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.radio-card { display: flex; gap: 12px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background-color .15s; }
.radio-card:hover { border-color: #B6BAC1; }
.radio-card:has(input:checked) { border-color: var(--red); background: #FFFAFA; }
.radio-card input { flex: none; margin-top: 4px; accent-color: var(--red); }
.radio-card strong { display: block; color: var(--ink); }
.radio-card small { display: block; font-size: 14px; color: var(--muted); }
#nsFields { margin-top: 14px; }
.callout { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); font-size: 14.5px; }
.callout .ic { margin-top: 2px; color: var(--muted); }
.callout--warn { margin-top: 0; border-color: #F3D49B; background: #FFF8EC; }
.callout--warn .ic { color: #B45309; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Payment */
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; padding-bottom: 6px; }
.meta-grid dt { font-size: 13px; color: var(--muted); }
.meta-grid dd { font-weight: 600; color: var(--ink); word-break: break-word; }
.mini-items { display: grid; margin: 14px 0; border-top: 1px solid var(--line); }
.mini-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-item__name { font-family: var(--mono); font-size: 15.5px; font-weight: 500; color: var(--ink); word-break: break-all; }
.mini-item__name--text { font-family: var(--font); font-size: 16px; font-weight: 600; word-break: normal; }
.mini-item small { display: block; font-size: 13px; color: var(--muted); }
.mini-item strong { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.method-list { margin-bottom: 8px; }
.method-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.method-list strong { color: var(--ink); }
.method-list span { color: var(--muted); text-align: right; }
#payForm { margin-top: 20px; }
.secure-note { display: flex; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.secure-note .ic { width: 18px; height: 18px; color: #15803D; }
.next-steps { display: grid; gap: 16px; margin-top: 14px; counter-reset: n; }
.next-steps li { position: relative; padding-left: 36px; font-size: 15px; }
.next-steps li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--red-tint); color: var(--red); font-size: 13px; font-weight: 600; }
.next-steps strong { color: var(--ink); }
.preview-note { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 14px; border: 1px dashed #E0A458; border-radius: var(--radius); background: #FFF8EC; font-size: 14px; color: #7A4B0C; }
.preview-note .ic { width: 18px; height: 18px; }
.preview-box { padding: 16px 18px; border: 1px dashed #B6BAC1; border-radius: var(--radius); font-size: 14px; color: var(--muted); }
.preview-box ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.preview-box a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.redirecting { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(255, 255, 255, .97); text-align: center; padding: 24px; }
.redirecting__box h2 { margin-top: 18px; font-size: 22px; }
.redirecting__box p { margin-top: 6px; color: var(--muted); }
.spinner--lg { display: inline-block; width: 38px; height: 38px; border-width: 3px; }

/* Result pages */
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.result { padding: 36px 0 80px; }
.container--result { max-width: 1000px; }
.container--narrow { max-width: 760px; }
.result__head { margin: 8px auto 32px; text-align: center; animation: rise .5s var(--ease) both; }
.result__icon { display: inline-grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 50%; animation: pop .5s var(--ease) .1s both; }
.result__icon .ic { width: 32px; height: 32px; stroke-width: 2.2; }
.result__icon--ok { background: #E4F5EA; color: #15803D; }
.result__icon--bad { background: var(--red-tint); color: var(--red); }
.result__icon--info { background: #EAEFF5; color: #44556B; }
.result__head h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 700; letter-spacing: -.02em; }
.result__lead { max-width: 36em; margin: 10px auto 0; font-size: 18px; }
.result-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 20px; align-items: start; }
.receipt > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.receipt > div:last-child { border-bottom: 0; }
.receipt dt { color: var(--muted); }
.receipt dd { font-weight: 500; color: var(--ink); text-align: right; word-break: break-all; }
.receipt__total dt { font-weight: 600; color: var(--ink); }
.receipt__total dd { font-size: 20px; font-weight: 700; }
.timeline { display: grid; gap: 20px; }
.timeline__item { position: relative; display: flex; gap: 14px; }
.timeline__item:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 32px; bottom: -14px; width: 2px; background: var(--line); }
.timeline__dot { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; font-size: 13px; font-weight: 600; }
.timeline h3 { font-size: 16px; }
.timeline p { margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.todo { display: grid; gap: 14px; }
.todo li { position: relative; padding-left: 18px; font-size: 15px; }
.todo li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.todo strong { color: var(--ink); }
.result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.result__help { margin-top: 16px; text-align: center; font-size: 14.5px; color: var(--muted); }
.result__help a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

@media (max-width: 960px) {
  .shop-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .result-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop { padding: 22px 0 56px; }
  .panel { padding: 18px 16px; }
  .summary { padding: 20px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { width: 100%; }
  .seg { display: flex; }
  .seg__opt { flex: 1; text-align: center; }
  .seg__opt span { padding-inline: 8px; }
  .stepper .stepper__label { display: none; }
  .stepper .is-current .stepper__label { display: inline; }
  .stepper li:not(:last-child)::after { margin: 0 8px; }
  .cart-item { grid-template-columns: 1fr auto; padding: 16px; }
  .cart-item__main { grid-column: 1 / -1; padding-right: 36px; }
  .cart-item__remove { position: absolute; top: 10px; right: 10px; }
  .upsell { flex-direction: column; align-items: flex-start; }
  .slim-header__help { display: none; }
  .method-list li { flex-direction: column; gap: 2px; }
  .method-list span { text-align: left; }
  .result { padding: 24px 0 56px; }
  .result__actions { flex-direction: column; }
  .result__actions .btn { width: 100%; }
}

@media print {
  .topbar, .header, .slim-header, .footer, .slim-footer, .skip-link { display: none !important; }
  body { background: #fff; }
  .result { display: none !important; }
  .rcp { display: block; }
  @page { margin: 14mm; }
}

/* Choose how to pay: account balance or SSLCommerz */
.pay-opts { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.pay-opt { position: relative; display: block; cursor: pointer; }
.pay-opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pay-opt__body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.pay-opt:hover .pay-opt__body { border-color: #B6BAC1; }
.pay-opt input:checked + .pay-opt__body { border-color: var(--red); background: #FFFAFA; box-shadow: inset 0 0 0 1px var(--red); }
.pay-opt input:focus-visible + .pay-opt__body { outline: 2px solid var(--red); outline-offset: 2px; }
.pay-opt input:disabled + .pay-opt__body { background: var(--gray); cursor: not-allowed; }
.pay-opt input:disabled { cursor: not-allowed; }
.pay-opt__body strong { font-size: 16px; color: var(--ink); }
.pay-opt__body small { font-size: 14px; color: var(--muted); }
.pay-opt__body a { position: relative; z-index: 1; color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.pay-panel[hidden] { display: none; }

/* Paper receipt (print only), laid out like the invoice in the console */
@media screen { .rcp { display: none; } }
.rcp__sheet { max-width: 780px; margin: 0 auto; padding: 8px 0; border-top: 6px solid var(--red); color: var(--text); }
.rcp__head { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0 18px; border-bottom: 1px solid var(--line); }
.rcp__head h2 { font-size: 24px; color: var(--ink); }
.rcp__head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }
.rcp__no { display: grid; gap: 3px; justify-items: end; text-align: right; align-content: start; }
.rcp__title { font-size: 26px; font-weight: 700; letter-spacing: .04em; color: var(--red); }
.rcp__no strong { font-size: 15px; color: var(--ink); }
.rcp__no small { font-size: 13px; color: var(--muted); }
.rcp__paid { margin-top: 6px; padding: 2px 12px; border: 2px solid #16794C; border-radius: 4px; font-size: 14px; font-weight: 700; letter-spacing: .08em; color: #16794C; }
.rcp__meta { display: flex; justify-content: space-between; gap: 20px; margin: 22px 0; }
.rcp__meta small { display: block; margin-bottom: 4px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.rcp__meta strong { font-size: 16px; color: var(--ink); }
.rcp__meta p { margin: 3px 0 0; font-size: 13.5px; color: var(--text); overflow-wrap: anywhere; }
.rcp__r { text-align: right; }
.rcp__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.rcp__table th, .rcp__table td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.rcp__table thead th { background: var(--gray); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.rcp__table td strong { display: block; color: var(--ink); overflow-wrap: anywhere; }
.rcp__table td small { color: var(--muted); }
.rcp__table .rcp__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rcp__sum { width: min(300px, 100%); margin: 14px 0 0 auto; }
.rcp__sum > div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 14.5px; }
.rcp__sum dt { color: var(--muted); }
.rcp__sum dd { margin: 0; font-variant-numeric: tabular-nums; }
.rcp__total { margin-top: 6px; border-top: 2px solid var(--ink); font-size: 17px !important; }
.rcp__total dt, .rcp__total dd { font-weight: 700; color: var(--ink); }
.rcp__foot { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); }
.rcp__foot p { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }

/* a message in place of a checkout page (empty cart, log in to pay, an error) */
.pay-state { max-width: 560px; margin: 8px auto 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.pay-state h2 { margin: 0 0 8px; font-size: 1.25rem; }
.pay-state p { margin: 0 0 12px; color: var(--muted); }
.pay-state__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 0 !important; }
.pay-agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 6px; font-size: 14px; line-height: 1.5; }
.pay-agree input { margin-top: 3px; flex: none; }
#payForm .field-error { margin-bottom: 10px; }

.acct-line { margin: 0 0 8px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }

/* Checkout: log in or create an account in place, and saved billing addresses */
.acct-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.acct-code { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--gray); }
.addr-list { margin: 0 0 18px; }
#addrFields { padding-top: 4px; }
#saveAddrBox { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
#addrSaved .radio-card:last-child { margin-bottom: 0; }
.addr-list .radio-card { align-items: flex-start; }
.addr-list .radio-card > span { flex: 1 1 auto; min-width: 0; }
.addr-edit { flex: none; margin-left: auto; padding: 4px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.addr-edit:hover { border-color: var(--red); color: var(--red); }
.addr-list .radio-card em { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--red); margin-left: 6px; }

/* payment page: shown while the order and the balance are fetched, so the boxes are never seen empty. Centred in the page. */
.pay-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; max-width: 560px; margin: 24px auto 48px; padding: 40px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; }
.pay-loading p { margin: 0; color: var(--muted); font-size: 15px; }
.pay-loading strong { color: var(--ink); font-size: 18px; }
/* appears by itself after 15 seconds, with no script: the way out if the page script never started */
.pay-loading__late { visibility: hidden; animation: pay-late 0s linear 15s forwards; }
.pay-loading__late a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
@keyframes pay-late { to { visibility: visible; } }

/* Cloud billing rules on the order page */
.cs-rules { margin: 14px 0; padding: 12px 14px; border: 1px solid #B5CBF5; border-radius: var(--radius); background: #F2F7FF; color: #17489f; font-size: 14px; }
.cs-rules summary { cursor: pointer; font-weight: 700; list-style: none; }
.cs-rules summary::-webkit-details-marker { display: none; }
.cs-rules__i { display: inline-block; width: 20px; height: 20px; border-radius: 50%; background: #1A56C4; color: #fff; text-align: center; font: italic 700 13px/20px Georgia, serif; }
.cs-rules ul { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; }

/* Cloud servers order page: country and city chips, package cards */
.cs-sub { margin: 14px 0 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.cs-sub:first-of-type { margin-top: 4px; }
.cs-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-chips--city { padding-top: 2px; }
.cs-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.cs-chip:hover { border-color: var(--red); }
.cs-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cs-chip.is-on { border-color: var(--red); background: #FFF4F4; color: var(--red); }
.cs-chip:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.cs-chips--city .cs-chip { padding: 8px 14px; font-weight: 500; }
.cs-chips--city .cs-chip.is-on { font-weight: 600; }
.cs-pkg { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 14px 16px; margin-bottom: 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.cs-pkg:hover { border-color: var(--red); }
.cs-pkg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cs-pkg.is-on { border-color: var(--red); background: #FFF8F8; box-shadow: 0 0 0 1px var(--red) inset; }
.cs-pkg:focus-within { outline: 2px solid var(--red); outline-offset: 2px; }
.cs-pkg__name strong { font-size: 16px; }
.cs-pkg__specs { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; }
.cs-pkg__specs b { color: var(--ink); font-weight: 600; }
.cs-pkg__price { grid-column: 2; grid-row: 1 / span 2; text-align: right; line-height: 1.25; }
.cs-pkg__price b { font-size: 20px; }
.cs-pkg__price small { color: var(--muted); margin-left: 2px; }
.cs-pkg__price em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); }
@media (max-width: 520px) { .cs-pkg { grid-template-columns: minmax(0, 1fr); } .cs-pkg__price { grid-column: 1; grid-row: auto; text-align: left; } }

#csForm .field-label { display: block; margin: 16px 0 6px; font-weight: 600; }
#csForm .panel h2 + .field-label { margin-top: 4px; }
#csForm .field-hint { margin: 6px 0 0; }
#csForm .f-opt { display: flex; align-items: center; gap: 8px; margin-top: 16px; }

/* Payment page: the balance message (no choice to make when the balance is enough) */
.pay-balmsg { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid; font-size: 15px; }
.pay-balmsg:empty { display: none; }
.pay-balmsg--ok { background: #E6F4EC; border-color: #A9D8BC; color: #0f5c39; }
.pay-balmsg--low { background: #FFF1D6; border-color: #F0CF8E; color: #7a4800; }

/* custom root password on the Cloud order page */
.cs-pwrow { display: flex; gap: 10px; align-items: stretch; }
.cs-pwrow .input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
