/* HostBotics one-step order page.
 * Uses only the design tokens (--hb-*) defined by the hostbotics theme (_hostbotics-tokens.scss). */

/* ---------- hero ---------- */
.hb-hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 8px 0 28px; }
.hb-hero__text { max-width: 640px; }
.hb-hero .hb-h1 { margin: 10px 0 12px; }
.hb-hero__lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--hb-text-2); }
.hb-hero__side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.hb-hero__side .form-inline { margin: 0; }
.hb-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.hb-steps li { display: flex; align-items: center; gap: 8px; color: var(--hb-text-3); }
.hb-steps li.is-done { color: var(--hb-ink); }
.hb-steps__n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; border: 2px solid var(--hb-input-border); color: var(--hb-text-3); box-sizing: border-box; }
.is-done .hb-steps__n { background: var(--hb-primary-fill); border-color: var(--hb-primary); color: var(--hb-on-primary); }
.hb-steps .hb-steps__line { width: 28px; height: 2px; background: var(--hb-border-strong); }

/* ---------- layout: main column + sticky summary ---------- */
.hb-op { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); column-gap: 28px; row-gap: 28px; align-items: start; }
#updater.orderpage-configuration, .hb-op__layout { display: contents; }
.hb-op__plans { grid-column: 1; grid-row: 1; }
.hb-op__main { grid-column: 1; grid-row: 2; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hb-op__aside { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--hb-header-h, 72px) + 16px); align-self: start; min-width: 0; max-height: calc(100vh - var(--hb-header-h, 72px) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: var(--hb-radius-card-lg); }
.hb-op__main form { display: flex; flex-direction: column; gap: 28px; margin: 0; }
.hb-op__stack { display: contents; }
@media (max-width: 991.98px) {
  .hb-op { grid-template-columns: minmax(0, 1fr); }
  .hb-op__aside { grid-column: 1; grid-row: auto; position: static; max-height: none; overflow: visible; }
  .hb-op__main { grid-row: auto; }
  .hb-hero__side { align-items: flex-start; }
}

/* ---------- section cards ---------- */
.hb-card { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-card-lg); padding: 28px; }
.hb-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.hb-card h2, .hb-card__title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.hb-card__title { margin-bottom: 6px; }
.hb-card__lead { margin: 0 0 18px; font-size: 15px; color: var(--hb-text-2); }
.hb-num::after { content: "."; }
.hb-num { margin-inline-end: 6px; }
.hb-op__section h3, .hb-op__section h5 { font-size: 17px; }
@media (max-width: 575.98px) { .hb-card { padding: 20px 16px; } }

/* ---------- plan cards ---------- */
.hb-op__plans { container-type: inline-size; }
.hb-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.hb-plan {
  display: flex; flex-direction: column; text-align: start; width: 100%; font: inherit; color: var(--hb-ink); cursor: pointer;
  padding: 22px 20px 20px; border-radius: var(--hb-radius-card); background: var(--hb-surface);
  border: 2px solid var(--hb-border); box-shadow: none; position: relative;
}
.hb-plan:hover { border-color: var(--hb-border-strong); }
.hb-plan.selected, .hb-plan.card.selected { border-color: var(--hb-primary); background: var(--hb-primary-soft-large); box-shadow: var(--hb-shadow-selected); }
.hb-plan:disabled, .hb-plan.outofstock { opacity: .6; cursor: not-allowed; }
.hb-plan__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; min-height: 26px; }
.hb-plan__name { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.hb-plan__name { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.hb-pill--primary { background: var(--hb-primary-fill); color: var(--hb-on-primary); border-color: transparent; white-space: nowrap; }
.hb-pill--success { white-space: nowrap; }
.hb-plan__tag { display: block; font-size: 14px; color: var(--hb-text-3); margin-top: 4px; min-height: 40px; line-height: 1.4; }
.hb-plan__price { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; flex-wrap: wrap; }
.hb-plan__amount { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.hb-plan__per { font-size: 15px; color: var(--hb-text-2); font-weight: 500; }
.hb-plan__billed { display: block; font-size: 13px; color: var(--hb-text-3); margin-top: 2px; min-height: 18px; }
.hb-plan__oneline { display: none; }
.hb-plan__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.hb-plan__rule { display: block; height: 1px; background: var(--hb-border); margin: 16px 0 14px; }
.hb-plan__specs { display: flex; flex-direction: column; }
.hb-spec { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.hb-spec__k { color: var(--hb-text-2); }
.hb-spec__v { font-weight: 700; text-align: end; }
.hb-plan__desc { font-size: 14px; color: var(--hb-text-2); }
.hb-plan__desc, .hb-plan__desc * { background: none !important; border: 0 !important; padding: 0 !important; font-family: inherit !important; font-size: 14px !important; line-height: 1.5 !important; color: var(--hb-text-2) !important; margin-inline: 0 !important; }
.hb-plan__desc ul { list-style: none !important; margin: 0 !important; }
.hb-plan__desc li { padding: 3px 0 !important; }
.hb-plan__desc strong, .hb-plan__desc b { font-weight: 600 !important; }
.hb-plan__features { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--hb-border); display: flex; flex-direction: column; gap: 2px; }
.hb-plan__features li { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; color: var(--hb-ink); }
.hb-plan__features .hb-icon { width: 16px; height: 16px; color: var(--hb-success-icon); stroke-width: 3; }
.hb-plan__cta { margin-top: 18px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: var(--hb-radius-control); font-weight: 700; font-size: 15px; background: var(--hb-surface); color: var(--hb-ink); border: 1.5px solid var(--hb-border-strong); }
.hb-plan__cta-selected { display: none; }
.hb-plan.selected .hb-plan__cta { background: var(--hb-primary-fill); border-color: var(--hb-primary); color: var(--hb-on-primary); }
.hb-plan.selected .hb-plan__cta-choose { display: none; }
.hb-plan.selected .hb-plan__cta-selected { display: inline; }
.hb-plan:focus-visible { outline: var(--hb-focus); outline-offset: 2px; }

/* mobile: compact radio rows, selected one expanded */
@media (max-width: 767.98px) {
  .hb-plans { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hb-plan {
    display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "dot head price" "dot one price" "body body body";
    column-gap: 12px; padding: 14px 16px; align-items: center; border-radius: var(--hb-radius-card);
  }
  .hb-plan::before { content: ""; grid-area: dot; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; border: 2px solid var(--hb-border-strong); background: var(--hb-surface); }
  .hb-plan.selected::before { border: 6px solid var(--hb-primary); }
  .hb-plan__head { grid-area: head; }
  .hb-plan__name { font-size: 16px; }
  .hb-plan__tag, .hb-plan__billed, .hb-plan__cta, .hb-plan__rule { display: none; }
  .hb-plan__oneline { display: block; grid-area: one; font-size: 13px; color: var(--hb-text-3); }
  .hb-plan__price { grid-area: price; margin: 0; flex-direction: column; align-items: flex-end; gap: 0; }
  .hb-plan__amount { font-size: 20px; }
  .hb-plan__per { font-size: 12px; }
  .hb-plan__body { grid-area: body; display: none; margin-top: 12px; }
  .hb-plan.selected .hb-plan__body { display: flex; }
  .hb-plan.selected .hb-plan__specs { display: none; }
  .hb-plan__features { margin-top: 0; padding-top: 12px; }
}

/* currency code de-emphasis (JS wraps the trailing ISO code) */
.hb-cur { font-size: .5em; font-weight: 600; color: var(--hb-text-3); margin-inline-start: .3em; letter-spacing: .02em; }
.hb-plan__billed .hb-cur, .hb-total__renew .hb-cur, .hb-line .hb-cur, .hb-cycle__per .hb-cur, .hb-bar__total .hb-cur, .hb-result__price .hb-cur { font-size: .85em; }

/* ---------- domain step ---------- */
#domainTab.hb-segmented, #domainTab.nav-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--hb-bg); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-control-lg); width: fit-content; max-width: 100%; margin-bottom: 18px; overflow: visible; }
#domainTab .nav-item { margin: 0; border: 0; }
#domainTab .nav-link { min-height: 40px; padding: 0 16px; border: 0 !important; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--hb-text-2); background: transparent; display: inline-flex; align-items: center; }
#domainTab .nav-link.active, #domainTab .nav-item.active > .nav-link { background: var(--hb-surface); color: var(--hb-ink); box-shadow: 0 0 0 1px var(--hb-border-strong); }
#domainTab .nav-link::after, #domainTab .nav-link::before { display: none; }
.nav-tabs-wrapper .nav-tabs-arrow-left, .nav-tabs-wrapper .nav-tabs-arrow-right { display: none !important; }

.hb-domain-search { display: flex; flex-wrap: wrap; gap: 10px; }
.hb-input-xl, .form-control.hb-input-xl { flex: 1 1 280px; min-width: 0; height: 54px; font-size: 17px; padding: 0 18px; border-radius: var(--hb-radius-control-lg); }
.hb-btn-xl, .btn.hb-btn-xl { min-height: 54px; padding: 0 28px; font-size: 16px; border-radius: var(--hb-radius-control-lg); }
.hb-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hb-chips { display: contents; }
.hb-chip { min-height: 44px; padding: 0 14px; border-radius: var(--hb-radius-pill); border: 1.5px solid transparent; background: var(--hb-bg); color: var(--hb-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.hb-chip:hover { border-color: var(--hb-border-strong); }
.hb-chip.is-on, .hb-chip[aria-pressed="true"] { background: var(--hb-primary-soft); color: var(--hb-primary); border-color: var(--hb-primary); }
.hb-linkbtn { min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--hb-primary); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.hb-linkbtn:hover { color: var(--hb-primary-hover); text-decoration: underline; }
.hb-tld-panel { margin-top: 12px; border: 1px solid var(--hb-border); border-radius: var(--hb-radius-card); padding: 14px; background: var(--hb-surface); }
.hb-tld-panel[hidden], .hb-tld[hidden], .hb-tld-empty[hidden], .hb-promo__form[hidden] { display: none !important; }
.hb-tld-list { margin-top: 12px; max-height: 260px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px 8px; }
.hb-tld { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 8px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; margin: 0; overflow-wrap: anywhere; }
.hb-tld:hover { background: var(--hb-bg); }
.hb-tld input { width: 18px; height: 18px; flex: 0 0 auto; }
.hb-tld-empty { margin: 12px 0 0; font-size: 14px; color: var(--hb-text-3); }

/* results list */
.hb-results { margin-top: 18px; border: 1px solid var(--hb-border); border-radius: 14px; overflow: hidden; background: var(--hb-surface); }
.hb-results__title { padding: 12px 18px; font-size: 13px; font-weight: 700; color: var(--hb-text-3); border-bottom: 1px solid var(--hb-border); }
.hb-result { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; border-top: 1px solid var(--hb-border); background: var(--hb-surface); }
.hb-result:first-child, .hb-results__title + .hb-result { border-top: 0; }
.hb-result__name { flex: 1 1 200px; min-width: 0; }
.hb-result__name strong { display: block; font-size: 16px; font-weight: 700; word-break: break-all; }
.hb-result__sub { display: block; font-size: 13px; color: var(--hb-text-3); margin-top: 2px; }
.hb-result__sub.hb-ok { color: var(--hb-success); font-weight: 600; }
.hb-result__price { font-size: 15px; font-weight: 700; }
.hb-result__period { height: 44px; border: 0; background: transparent; font: inherit; font-weight: 700; color: var(--hb-ink); padding-inline-end: 4px; cursor: pointer; max-width: 220px; }
.hb-result__period:only-child { appearance: none; }
.hb-result__extra { padding: 12px 18px; border-top: 1px solid var(--hb-border); background: var(--hb-bg); width: 100%; }
.hb-result.is-taken { background: var(--hb-bg); }
.hb-result.is-taken .hb-result__name strong { color: var(--hb-text-3); }
.hb-result__check { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.hb-add { min-width: 96px; min-height: 44px; border-radius: var(--hb-radius-control); font-weight: 700; margin: 0; cursor: pointer; background: var(--hb-primary-fill); border: 1.5px solid var(--hb-primary); color: var(--hb-on-primary); }
.hb-add:hover { background: var(--hb-primary-fill-hover); border-color: var(--hb-primary-hover); color: var(--hb-on-primary); }
.hb-add .hb-add__on { display: none; align-items: center; gap: 6px; }
.hb-result__check:checked + input + .hb-result__name ~ .hb-add, .hb-result__check:checked ~ .hb-add { background: var(--hb-surface); color: var(--hb-primary); border-color: var(--hb-primary); }
.hb-result__check:checked ~ .hb-add .hb-add__off { display: none; }
.hb-result__check:checked ~ .hb-add .hb-add__on { display: inline-flex; }
.hb-result__check:checked ~ .hb-result__name, .hb-result:has(.hb-result__check:checked) { background: var(--hb-primary-soft-large); }
.hb-result__check:focus-visible ~ .hb-add { outline: var(--hb-focus); outline-offset: 2px; }
.hb-add.is-taken { background: var(--hb-bg); color: var(--hb-text-3); border: 0; cursor: default; pointer-events: none; }
.hb-domain-commit { display: none; }
.btn-order-domains, .btn-order-domains-new { display: none !important; }

/* saved domain (after it was added to the cart) */
#domoptions22 { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--hb-primary); background: var(--hb-primary-soft-large); border-radius: var(--hb-radius-card); }
#domoptions22 .btn { align-self: flex-start; margin-top: 8px; }

/* own-domain cards, transfer, subdomain */
#own .card, #own .item { border-radius: var(--hb-radius-card); box-shadow: none; }
#own .form-check { gap: 10px; min-height: 44px; }
#transfer .input-group, #illsub .input-group { flex: 1 1 280px; }
#transfer .form-control, #illsub .form-control, #transfer select, #illsub .input-group-text { height: 54px; font-size: 16px; }

/* ---------- configuration blocks (custom fields, add-ons, sub-products) ---------- */
.hb-op__section .card { border-radius: var(--hb-radius-card); margin-top: 10px; box-shadow: none; }
.hb-op__section .card-body { padding: 16px 18px; }
.hb-op__section .form-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; }
.hb-op__section .form-check-input { position: static; margin: 0; width: 18px; height: 18px; }
.hb-op__section .form-check-label { font-weight: 600; cursor: pointer; }
.hb-op__section .toggle-forms .card { margin-top: 10px; }

/* ---------- order summary ---------- */
.hb-summary { background: var(--hb-surface); border: 1px solid var(--hb-border); border-radius: var(--hb-radius-card-lg); padding: 26px; box-shadow: var(--hb-shadow-summary); }
.hb-summary__title { margin: 0 0 18px; font-size: 20px; font-weight: 700; }
.hb-summary__plan { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hb-summary__name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.hb-summary__change { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.hb-summary__sub { font-size: 14px; font-weight: 600; margin: 20px 0 10px; padding: 0; border: 0; width: auto; }
.hb-cycles { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.hb-cycle { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 14px; margin: 0; cursor: pointer; border-radius: var(--hb-radius-control-lg); background: var(--hb-surface); border: 1.5px solid var(--hb-border-strong); font-size: 15px; font-weight: 600; position: relative; }
.hb-cycle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.hb-cycle__dot { flex: none; width: 18px; height: 18px; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--hb-border-strong); }
.hb-cycle__label { flex: 1 1 auto; text-align: start; }
.hb-cycle__per { font-weight: 700; min-width: 84px; text-align: end; }
.hb-cycle__per small { font-size: 12px; font-weight: 500; color: var(--hb-text-2); margin-inline-start: 2px; }
.hb-cycle.is-selected, .hb-cycle:has(input:checked) { background: var(--hb-primary-soft-large); border-color: var(--hb-primary); }
.hb-cycle.is-selected .hb-cycle__dot, .hb-cycle:has(input:checked) .hb-cycle__dot { border: 6px solid var(--hb-primary); }
.hb-cycle:has(input:focus-visible) { outline: var(--hb-focus); outline-offset: 2px; }
.hb-lines { display: flex; flex-direction: column; gap: 8px; font-size: 15px; border-top: 1px solid var(--hb-border); margin-top: 20px; padding-top: 16px; }
.hb-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hb-line > span { color: var(--hb-text-2); min-width: 0; overflow-wrap: anywhere; }
.hb-line strong { font-weight: 600; color: var(--hb-ink); white-space: nowrap; }
.hb-line .hb-free { color: var(--hb-success); }
.hb-line--save > span, .hb-line--save strong { color: var(--hb-success); font-weight: 700; }
.hb-line__domain { word-break: break-all; }
.hb-promo { margin-top: 10px; }
.hb-promo__form { display: flex; gap: 8px; margin-top: 8px; }
.hb-promo__form .form-control { flex: 1 1 auto; min-width: 0; }
.hb-total { border-top: 1px solid var(--hb-border); margin-top: 16px; padding-top: 16px; }
.hb-total__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hb-total__label { font-size: 16px; font-weight: 700; }
.hb-total__amount { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.hb-total__renew { font-size: 13px; color: var(--hb-text-3); margin-top: 4px; text-align: end; }
.hb-cta, .btn.hb-cta { margin-top: 18px; width: 100%; min-height: 56px; font-size: 17px; border-radius: var(--hb-radius-control-lg); }
.hb-cta .hb-icon { width: 18px; height: 18px; stroke-width: 2.5; }
[dir="rtl"] .hb-cta .hb-icon { transform: scaleX(-1); }
.hb-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--hb-text-2); }
.hb-trust li { display: flex; align-items: center; gap: 8px; }
.hb-trust .hb-icon { width: 16px; height: 16px; flex: none; color: var(--hb-text-2); }

/* ---------- mobile bottom bar ---------- */
.hb-bar { display: none; }
@media (max-width: 991.98px) {
  .hb-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 1035; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--hb-surface); border-top: 1px solid var(--hb-border); box-shadow: var(--hb-shadow-summary);
  }
  .hb-app .hb-bar { bottom: calc(var(--hb-tabbar-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 10px; }
  .hb-bar__info { display: flex; flex-direction: column; min-width: 0; }
  .hb-bar__plan { font-size: 13px; color: var(--hb-text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hb-bar__total { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
  .hb-bar .btn { min-width: 132px; min-height: 48px; }
  .hb-op { padding-bottom: 96px; }
  .hb-summary .hb-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hb-plan, .hb-cycle, .hb-chip { transition: none; } }

/* ---------- refinements ---------- */
.hb-plan__tag:empty { display: none; }
.hb-plan__price { flex-wrap: nowrap; }
.hb-plan__amount .hb-cur { font-size: 14px; margin-inline-start: 4px; vertical-align: baseline; }
.hb-cycles { margin-top: 20px; }
.hb-summary__sub { display: block; float: none; width: 100%; margin: 0 0 10px; }
.hb-summary__plan + .orderpage-summary-content .hb-summary__sub { margin-top: 0; }
.nav-tabs-wrapper { margin: 0; }
#domainTab .nav-item { flex: 0 0 auto; width: auto; padding: 0; margin: 0; }
#domainTab .nav-link { min-height: var(--hb-touch); }
.hb-segmented { margin-top: 0; }

/* ---------- small-screen fixes ---------- */
#domainTab.nav-tabs { flex-wrap: wrap !important; }
.hb-steps { flex-wrap: wrap; row-gap: 6px; }
@media (max-width: 575.98px) {
  .hb-steps { gap: 6px; }
  .hb-steps .hb-steps__line { width: 14px; }
  #domainTab.hb-segmented, #domainTab.nav-tabs { width: 100%; }
  #domainTab .nav-item { flex: 1 1 auto; }
  #domainTab .nav-link { justify-content: center; width: 100%; padding: 0 10px; text-align: center; }
  .hb-cycle { gap: 8px; padding: 10px 12px; }
  .hb-cycle__label { white-space: nowrap; }
  .hb-cycle__per { min-width: 0; white-space: nowrap; margin-inline-start: auto; }
  .hb-cycle .hb-cur { display: none; }
  .hb-summary { padding: 20px 16px; }
}
@media (max-width: 767.98px) {
  .hb-plan__head { flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; }
  .hb-plan__name { overflow-wrap: break-word; }
  .hb-plan__amount .hb-cur { display: none; }
  .hb-plan__price { white-space: nowrap; }
  .hb-plan .hb-pill { font-size: 11px; padding: 2px 8px; }
}
.hb-tld input[type="checkbox"] { appearance: auto; -webkit-appearance: checkbox; box-shadow: none; background: none; border: 0; accent-color: var(--hb-primary); opacity: 1; position: static; margin: 0; }
.hb-cycle__label { white-space: nowrap; }

/* balanced rows (tablet/desktop): 4 plans = 4 across when wide, otherwise 2 x 2 (never 3 + 1) */
@media (min-width: 768px) {
  @container (min-width: 880px) { .hb-plans[data-n="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @container (max-width: 879px) { .hb-plans[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  .hb-plans[data-n="1"] { grid-template-columns: minmax(0, 420px); }
}

/* ---- domain choice: option cards (register / own / transfer / subdomain) ---- */
#domainTab.hb-segmented, #domainTab.nav-tabs { display: grid !important; flex-wrap: initial; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 0; background: transparent; border: 0; border-radius: 0; width: 100%; }
#domainTab .nav-item { flex: none; }
#domainTab .nav-link { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; height: 100%; min-height: 84px; padding: 14px 16px 14px 48px; border: 1.5px solid var(--hb-border-strong) !important; border-radius: var(--hb-radius-card); background: var(--hb-surface); text-align: start; position: relative; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
#domainTab .nav-link::before { content: ""; display: block !important; position: absolute; inset-inline-start: 16px; top: 17px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--hb-input-border); background: var(--hb-surface); }
#domainTab .nav-link:hover { border-color: var(--hb-primary) !important; }
#domainTab .nav-link.active, #domainTab .nav-item.active > .nav-link { background: var(--hb-primary-soft-large); border-color: var(--hb-primary) !important; box-shadow: var(--hb-shadow-selected); }
#domainTab .nav-link.active::before, #domainTab .nav-item.active > .nav-link::before { border-color: var(--hb-primary-fill); background: radial-gradient(circle, var(--hb-primary-fill) 0 4px, var(--hb-surface) 5px); }
.hb-dopt__t { font-size: 15px; font-weight: 800; color: var(--hb-ink); line-height: 1.25; }
.hb-dopt__d { font-size: 13px; font-weight: 500; color: var(--hb-text-2); line-height: 1.4; }
/* required-domain feedback */
#domain-config.hb-need-domain { border-color: var(--hb-danger-border); box-shadow: 0 0 0 3px rgba(180, 35, 24, .10); }
.hb-domain-need { margin: 14px 0 0; padding: 12px 16px; border-radius: var(--hb-radius-control-lg); background: var(--hb-danger-bg); border: 1px solid var(--hb-danger-border); color: var(--hb-danger); font-weight: 600; font-size: 14px; }
.hb-need { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--hb-warning); background: var(--hb-warning-bg); border: 1px solid var(--hb-warning-border); border-radius: var(--hb-radius-control); padding: 8px 12px; }
.hb-need[hidden] { display: none; }
@media (max-width: 575.98px) { #domainTab.hb-segmented, #domainTab.nav-tabs { grid-template-columns: minmax(0, 1fr); } #domainTab .nav-link { min-height: 0; } }
#domainTab .nav-link { white-space: normal !important; border-radius: var(--hb-radius-card) !important; overflow: visible; box-sizing: border-box; }
#domainTab .nav-item { min-width: 0; border-radius: var(--hb-radius-card) !important; }
.hb-dopt__t, .hb-dopt__d { display: block; white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 576px) { #domainTab:has(.nav-item:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* the summary never grows taller than the screen (it scrolls inside) and its Checkout button stays visible, so switching the domain option no longer makes the box jump */
.hb-summary__foot { position: sticky; bottom: 0; z-index: 2; background: var(--hb-surface); margin: 0 -26px -26px; padding: 14px 26px 22px; border-top: 1px solid var(--hb-border); }
.hb-summary__foot .hb-cta { margin-top: 0; }
.hb-summary__foot .hb-trust { margin-bottom: 0; }
@media (max-width: 767.98px) { .hb-summary__foot { position: static; margin: 0; padding: 14px 0 0; } }
.hb-op { align-content: start; }

/* v25: total lives in the pinned footer so it is always visible */
.hb-summary__foot .hb-total { border-top: 0; margin: 0 0 12px; padding: 0; }
.hb-summary__foot .hb-total__amount { font-size: 26px; }
.hb-summary__foot .hb-cta { min-height: 48px; }
.hb-summary__foot .hb-trust { margin-top: 10px; }
@media (min-width: 768px) and (max-height: 820px) { .hb-summary__foot .hb-trust li:nth-child(n+2) { display: none; } }
@media (max-width: 767.98px) { .hb-summary__foot .hb-total { margin-top: 16px; border-top: 1px solid var(--hb-border); padding-top: 16px; } }

/* v28: more compact summary so total + checkout fit on typical laptop screens */
@media (min-width: 768px) {
  .hb-summary { padding: 20px 22px; }
  .hb-summary__foot { margin: 0 -22px -20px; padding: 12px 22px 16px; }
  .hb-summary__title { margin-bottom: 12px; }
  .hb-summary__sub { margin-bottom: 8px; }
  .hb-cycles { gap: 6px; }
  .hb-cycle { min-height: 44px; padding: 7px 12px; }
  .hb-summary__foot .hb-total { margin-bottom: 8px; }
  .hb-summary__foot .hb-total__amount { font-size: 24px; }
  .hb-summary__foot .hb-cta { min-height: 46px; }
  .hb-summary__foot .hb-trust li:nth-child(n+3) { display: none; }
}

/* v35: "choose later" pane is described by the hint under the control */
.hb-later { display: none; }
#later.tab-pane { margin: 0 !important; }
