/* ZabSys Cloud — hosting pages (/hosting/ and /hosting/order/). Loaded after style.css and shop.css. */

.section--tight { padding-top: 40px; }

/* Billing period toggle on the plans page */
.cycle-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 24px; }
.cycle-bar__label { font-weight: 600; color: var(--ink); }
.cycle-toggle { display: inline-flex; flex-wrap: wrap; padding: 3px; border: 1px solid #CDD1D7; border-radius: 6px; background: #fff; }
.cycle-toggle__opt { padding: 7px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; color: var(--text); transition: background-color .2s, color .2s; }
.cycle-toggle__opt small { margin-left: 4px; font-size: 12px; font-weight: 600; color: var(--red); }
.cycle-toggle__opt.is-active { background: var(--ink); color: #fff; }
.cycle-toggle__opt.is-active small { color: #FFB4B9; }
.plans--wide { max-width: none; margin: 0; }

/* Plan comparison */
.compare-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 520px; }
.compare-table th, .compare-table td { padding: 13px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--gray); font-size: 14px; color: var(--ink); }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.compare-table td { color: var(--text); }
.compare-table td [aria-hidden] { color: #B6BAC1; }
.compare-table thead th:nth-child(3), .compare-table tbody td:nth-child(3) { background: #FFFAFA; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

/* Order page */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font-size: 14.5px; color: var(--muted); }
.back-link .ic { transform: rotate(180deg); }
.back-link:hover { color: var(--red); }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.opt__body { position: relative; display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.opt:hover .opt__body { border-color: #B6BAC1; }
.opt input:checked + .opt__body { border-color: var(--red); background: #FFFAFA; box-shadow: inset 0 0 0 1px var(--red); }
.opt input:focus-visible + .opt__body { outline: 2px solid var(--red); outline-offset: 2px; }
.opt strong { color: var(--ink); }
.opt small { font-size: 13.5px; color: var(--muted); }
.opt__price { margin-top: 8px; font-size: 15px; color: var(--text); }
.opt__price b { font-size: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.opt__price small { margin-left: 2px; }
.opt__badge { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 4px; background: var(--red-tint); color: var(--red); font-size: 12px; font-weight: 600; font-style: normal; }
.opt--check { margin-bottom: 10px; }
.opt--check:last-child { margin-bottom: 0; }
.opt--check input { inset: auto; left: 16px; top: 18px; z-index: 1; width: 18px; height: 18px; opacity: 1; accent-color: var(--red); }
.opt--check .opt__body { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding-left: 46px; }
.opt--check .opt__price { grid-row: 1 / 3; grid-column: 2; align-self: center; margin: 0; text-align: right; }
.opt--check .opt__price b { font-size: 16px; }
.opt--check input:disabled + .opt__body { background: var(--gray); }
.opt--check input:disabled { cursor: default; }
.domain-row { display: grid; grid-template-columns: 1fr 150px auto; gap: 12px; align-items: end; }
.domain-row .btn { padding-block: 12px; }
.domain-note { margin-top: 12px; font-size: 14.5px; }
.domain-note:empty { display: none; }
.domain-note.is-ok { color: #15803D; }
.domain-note.is-bad { color: var(--red-dark); }
#domain-err { margin-top: 10px; }

@media (max-width: 640px) {
  .opt-grid { grid-template-columns: 1fr; }
  .domain-row { grid-template-columns: 1fr; }
  .compare-table { min-width: 0; font-size: 14px; }
  .compare-table th, .compare-table td { padding: 11px 8px; }
  .cycle-toggle { display: flex; width: 100%; }
  .cycle-toggle__opt { flex: 1; text-align: center; padding-inline: 6px; }
  .cycle-toggle__opt small { display: block; margin: 0; }
}
