/* Order pages: /domains, /order/plan/…, /order/cart, /order/checkout (lib/order_layout.php). */
.ord-page { padding: 24px 0 60px; }
.ord-wrap { max-width: 1120px; }
.ord-title { font-size: 1.6rem; font-weight: 800; color: var(--text); margin: 6px 0 14px; display: flex; gap: 10px; align-items: center; }
.ord-title i { color: var(--primary); }
.ord-lead { color: var(--muted); margin: -6px 0 16px; }
.ord-lead i { color: var(--primary); margin-right: 4px; }
.ord-back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); font-size: .88rem; text-decoration: none; }
.ord-back:hover { color: var(--primary); }
.ord-hint { color: var(--muted); font-size: .84rem; margin: 8px 0 0; }
.ord-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: .92rem; border: 1px solid var(--border); background: var(--surface); }
.ord-alert.is-ok { border-color: rgba(22,163,74,.35); background: rgba(22,163,74,.08); color: var(--text); }
.ord-alert.is-ok i { color: var(--success); }
.ord-alert.is-bad { border-color: rgba(220,38,38,.35); background: rgba(220,38,38,.07); color: var(--text); }
.ord-alert.is-bad i { color: var(--danger); }
.ord-error { color: var(--danger); font-size: .82rem; margin: 4px 0 10px; }

/* steps */
.ord-steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 22px; flex-wrap: wrap; }
.ord-steps li { flex: 1 1 0; min-width: 130px; }
.ord-steps li > a, .ord-steps li > .ord-step-num { text-decoration: none; }
.ord-steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: .84rem; font-weight: 600; }
.ord-steps li a { display: flex; align-items: center; gap: 8px; color: inherit; width: 100%; }
.ord-step-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--border); font-size: .78rem; font-weight: 800; }
.ord-steps .is-current { border-color: var(--primary); color: var(--text); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.ord-steps .is-current .ord-step-num { background: var(--primary); border-color: var(--primary); color: #fff; }
.ord-steps .is-done { color: var(--text); }
.ord-steps .is-done .ord-step-num { background: rgba(22,163,74,.12); border-color: transparent; color: var(--success); }

/* layout + cards */
.ord-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ord-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; margin-bottom: 16px; box-shadow: var(--shadow-sm); }
fieldset.ord-card { min-width: 0; }
.ord-card-title { font-size: 1.02rem; font-weight: 800; color: var(--text); margin: 0 0 14px; display: flex; gap: 8px; align-items: center; float: none; width: auto; padding: 0; }
.ord-card-title i { color: var(--primary); }
.ord-side { position: sticky; top: 90px; }
.ord-summary .ord-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 12px; margin: 12px 0 14px; font-weight: 700; color: var(--text); }
.ord-summary .ord-total b { font-size: 1.5rem; font-weight: 800; }
.ord-mini { list-style: none; padding: 0; margin: 0; }
.ord-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .9rem; color: var(--text-soft); }
.ord-mini li b { color: var(--text); white-space: nowrap; }
.ord-features { list-style: none; padding: 0; margin: 10px 0 0; font-size: .84rem; color: var(--muted); }
.ord-features li { padding: 3px 0; }
.ord-features i { color: var(--success); margin-right: 6px; font-size: .78rem; }
.ord-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0 0; }

/* billing period + domain options */
.ord-cycles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ord-cycle, .ord-option { position: relative; cursor: pointer; margin: 0; }
.ord-cycle input, .ord-option input { position: absolute; opacity: 0; }
.ord-cycle > span { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; height: 100%; transition: border-color .15s, box-shadow .15s; }
.ord-cycle b { color: var(--text); }
.ord-cycle small { color: var(--muted); }
.ord-cycle em { font-style: normal; font-size: .74rem; font-weight: 800; color: var(--success); }
.ord-cycle input:checked + span, .ord-option input:checked + span { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.ord-cycle input:focus-visible + span, .ord-option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.ord-options { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ord-option > span { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: .9rem; font-weight: 600; color: var(--text); }
.ord-option i { color: var(--primary); }
.ord-search { display: flex; gap: 8px; }
.ord-search .form-control { flex: 1 1 auto; min-width: 0; }
.ord-search .ord-tld { flex: 0 0 auto; width: auto; max-width: 190px; }
.ord-years { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ord-years .form-select { width: auto; }
.ord-check-result { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
.ord-check-result.is-ok { color: var(--success); font-weight: 600; }
.ord-check-result.is-bad { color: var(--danger); }

/* /domains */
.ord-domain-hero { text-align: center; padding: 30px 0 26px; }
.ord-domain-hero .section-sub { max-width: 620px; }
.ord-search.is-big { max-width: 680px; margin: 22px auto 16px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: var(--shadow-md); }
.ord-search.is-big .form-control { border: 0; box-shadow: none; font-size: 1.05rem; background: transparent; }
.ord-search.is-big .btn { border-radius: 12px; padding: 10px 20px; font-weight: 700; }
.ord-result { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); }
.ord-result:last-of-type { border-bottom: 0; }
.ord-result-name { font-size: 1.02rem; color: var(--text); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ord-result-price { font-weight: 700; color: var(--text); }
.ord-result-price small { color: var(--muted); font-weight: 500; }
.ord-result-add { display: flex; gap: 8px; align-items: center; }
.ord-result-add .form-select { width: auto; }
.ord-result.is-taken .ord-result-name b { color: var(--muted); }
.ord-badge { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--muted); }
.ord-badge.is-ok { background: rgba(22,163,74,.12); color: var(--success); }
.ord-badge.is-bad { background: rgba(220,38,38,.1); color: var(--danger); }
.ord-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ord-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .8rem; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.ord-table td { padding: 10px; border-bottom: 1px solid var(--border); color: var(--text); }
.ord-table tr.is-popular td:first-child b { color: var(--primary); }
.ord-tld-badge { font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(37,99,235,.1); color: var(--primary); margin-left: 6px; }
.ord-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 10px 0 26px; }
.ord-why > div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ord-why i { color: var(--primary); font-size: 1.2rem; margin-bottom: 4px; }
.ord-why b { color: var(--text); }
.ord-why span { color: var(--muted); font-size: .88rem; }
.ord-faq details { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; background: var(--card); }
.ord-faq summary { cursor: pointer; font-weight: 700; color: var(--text); }
.ord-faq p { margin: 8px 0 0; color: var(--text-soft); }

/* cart */
.ord-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.ord-line:last-child { border-bottom: 0; }
.ord-line.is-child { padding-left: 26px; }
.ord-line-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(37,99,235,.1); color: var(--primary); }
.ord-line-text b { color: var(--text); display: block; }
.ord-line-text small { color: var(--muted); display: block; }
.ord-line-price b { color: var(--text); }
.ord-line-remove button { border: 0; background: none; color: var(--muted); padding: 6px; border-radius: 8px; }
.ord-line-remove button:hover { color: var(--danger); background: rgba(220,38,38,.08); }
.ord-empty, .ord-login { text-align: center; padding: 40px 20px; }
.ord-empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(37,99,235,.1); color: var(--primary); font-size: 1.6rem; margin-bottom: 10px; }
.ord-empty .ord-actions, .ord-login .ord-actions { justify-content: center; }

/* checkout */
.ord-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.ord-fields.is-3 { grid-template-columns: 1fr 1fr 1fr; }
.ord-fields label, fieldset.ord-card > label { display: block; margin-bottom: 10px; }
.ord-phone { display: flex; gap: 6px; align-items: center; }
.ord-plus { color: var(--muted); font-weight: 700; }
.ord-terms { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--text-soft); margin-bottom: 12px; }
.ord-terms input { margin-top: 4px; }
.ord-next ol { margin: 0; padding-left: 20px; color: var(--text-soft); }
.ord-next li { margin-bottom: 4px; }

@media (max-width: 900px) {
  .ord-layout { grid-template-columns: 1fr; }
  .ord-side { position: static; }
}
@media (max-width: 600px) {
  .ord-steps li { min-width: calc(50% - 6px); }
  .ord-result { grid-template-columns: 1fr; }
  .ord-result-add { flex-wrap: wrap; }
  .ord-search { flex-wrap: wrap; }
  .ord-search .ord-tld { max-width: none; flex: 1 1 auto; }
  .ord-search.is-big { flex-wrap: nowrap; }
  .ord-fields, .ord-fields.is-3 { grid-template-columns: 1fr; }
  .ord-line { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ord-line-price { grid-column: 2; }
}

