/* Lion OTT — checkout, order page and live chat. Loaded after app.css. */

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; }
.pill-amber { background: #fef3c7; color: #b45309; }
.pill-blue { background: #dbeafe; color: #1d4ed8; }
.pill-green { background: #dcfce7; color: #15803d; }
.pill-gray { background: #f3f4f6; color: #4b5563; }
.pill-red { background: #fee2e2; color: #b91c1c; }
.plan-was { margin: 0; color: var(--muted); font-weight: 700; }
.plan-pop .plan-was, .plan-dark .plan-was { color: rgba(255, 255, 255, .6); }
.pay-list li.has-logo { padding: 8px 14px; }
.pay-list li img { height: 30px; width: auto; max-width: 120px; object-fit: contain; }
.calc-contact { display: grid; gap: 8px; margin-bottom: 12px; }
.calc-contact input { width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .1); color: #fff; font-size: 15px; }
.calc-contact input::placeholder { color: rgba(255, 255, 255, .55); }
.calc-contact input:focus { outline: 0; border-color: var(--p300); background: rgba(255, 255, 255, .16); }
.calc-err { margin: 0 0 12px; padding: 9px 12px; border-radius: 10px; background: rgba(239, 68, 68, .18); color: #fecaca; font-size: 14px; font-weight: 600; }

/* ---------- Checkout header ---------- */
.hdr-min .hdr-in { justify-content: space-between; }
.stepper { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.stepper li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; font-weight: 700; font-size: 14px; color: var(--muted); }
.stepper li + li::before { content: "\203A"; margin: 0 6px 0 -6px; color: var(--muted); }
.stepper li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-size: 12px; }
.stepper li.on { background: var(--p50); color: var(--p700); }
.stepper li.on span { background: var(--p600); border-color: var(--p600); color: #fff; }
.stepper li.done { color: #16a34a; }
.stepper li.done span { background: #16a34a; border-color: #16a34a; color: #fff; }
.stepper li.done span .i { width: 13px; height: 13px; stroke-width: 3; }
.secure { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 14px; color: var(--text); }
.secure .i { color: #f59e0b; }
.is-minimal main { background: var(--bg); box-shadow: none; max-width: none; }
.ftr-min { padding: 22px 0 30px; font-size: 14px; }
.ftr-min .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.ftr-min a { color: var(--text); font-weight: 600; }

/* ---------- Checkout ---------- */
.co-wrap { padding: 36px 0 60px; }
.co { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }
.co-main { display: grid; gap: 22px; min-width: 0; }
.co-card { background: #fff; border: 1px solid var(--line-soft); border-radius: 20px; padding: 28px; box-shadow: 0 4px 20px -12px rgba(76, 29, 149, .15); }
.co-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.co-head h2 { font-size: 20px; font-weight: 800; }
.co-head p { margin: 2px 0 0; font-size: 14px; }
.co-num { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-btn); color: #fff; display: grid; place-items: center; font: 800 14px var(--head); box-shadow: 0 4px 12px rgba(109, 40, 217, .35); flex: none; }
.co input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.co-plans { display: grid; gap: 14px; }
.co-plan { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 20px; border: 1.5px solid var(--line-soft); border-left-width: 4px; border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.co-plan:hover { border-color: var(--p300); }
.co-plan.on { border-color: var(--p600); background: #fff; box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.co-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--p300); display: grid; place-items: center; flex: none; }
.on > .co-radio { border-color: var(--p600); }
.on > .co-radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--p600); }
.co-plan-body strong { display: block; color: var(--ink); font-size: 17px; }
.co-plan.on .co-plan-body strong { color: var(--p700); }
.co-plan-body small { display: block; font-size: 14px; line-height: 1.5; margin-top: 3px; }
.co-plan-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.co-plan-price b { font: 900 24px/1.1 var(--head); color: var(--p700); }
.co-plan-price s { font-size: 13px; color: var(--muted); }
.co-plan-price small { font-size: 12.5px; color: var(--muted); }
.co-flag { position: absolute; top: -11px; right: 18px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 8px; background: var(--p100); color: var(--p700); font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.co-flag .i { width: 12px; height: 12px; color: #f59e0b; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-field { display: block; margin-bottom: 14px; }
.co-field > span { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 7px; }
.co-field input, .co-field select, .co-phone select, .co-phone input { width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-soft); background: var(--bg); color: var(--ink); font-size: 15.5px; transition: border-color .15s, box-shadow .15s, background-color .15s; }
.co-field input:focus, .co-field select:focus, .co-phone select:focus, .co-phone input:focus { outline: 0; border-color: var(--p500); background: #fff; box-shadow: 0 0 0 4px rgba(139, 92, 246, .14); }
.co .invalid { border-color: #ef4444 !important; background: #fef2f2 !important; }
.co-phone { display: grid; grid-template-columns: 200px 1fr; gap: 10px; position: relative; }
.co-phone input { padding-left: 62px; }
.co-dial { position: absolute; left: 226px; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--p700); pointer-events: none; font-size: 14px; }
.co-err { margin: -6px 0 10px; color: #dc2626; font-size: 13.5px; font-weight: 600; }
.co-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-device span { display: block; text-align: center; padding: 15px 10px; border-radius: 12px; border: 1.5px solid var(--line-soft); background: var(--bg); color: var(--ink); font-weight: 700; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.co-device span:hover { border-color: var(--p300); }
.co-device.on span { border-color: var(--p600); background: var(--p50); color: var(--p700); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.co-device input:focus-visible + span, .co-plan input:focus-visible ~ .co-radio, .co-method input:focus-visible ~ .co-radio { outline: 3px solid var(--p500); outline-offset: 2px; }
.co-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.co-method { position: relative; display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line-soft); background: var(--bg); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.co-method:hover { border-color: var(--p300); }
.co-method.on { border-color: var(--p600); background: var(--p50); box-shadow: 0 0 0 3px rgba(124, 58, 237, .12); }
.co-method img { flex: 1; min-width: 0; height: 40px; object-fit: contain; }
.co-method-name { flex: 1; font-weight: 800; color: var(--ink); text-align: center; }
.co-side { position: sticky; top: 96px; }
.co-sum { padding: 26px; }
.co-sum-t { font-size: 17px; font-weight: 800; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.co-sum-plan { padding: 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line-soft); margin-bottom: 16px; }
.co-sum-plan strong { font: 800 20px var(--head); color: var(--p700); }
.co-sum-plan p { margin: 4px 0 10px; font-size: 14.5px; }
.co-sum-plan p b { color: var(--ink); }
.co-feats { list-style: none; display: grid; gap: 6px; }
.co-feats li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: #4b5563; }
.co-feats .i { width: 16px; height: 16px; padding: 2px; margin-top: 2px; border-radius: 5px; background: var(--p100); color: var(--p700); stroke-width: 3; }
.co-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 14.5px; }
.co-row b { color: var(--ink); }
.co-row-box { padding: 11px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line-soft); margin: 12px 0; }
.co-total { display: flex; justify-content: space-between; align-items: center; padding: 18px 16px; margin-top: 6px; border-radius: 14px; border: 1px solid var(--p300); background: var(--p50); }
.co-total span { font-weight: 800; color: var(--ink); }
.co-total b { font: 900 28px/1 var(--head); color: var(--p700); }
.co-place { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 16px; background: var(--grad); color: #fff; text-align: left; cursor: pointer; box-shadow: 0 10px 24px -8px rgba(109, 40, 217, .55); transition: transform .15s, box-shadow .15s, opacity .15s; }
.co-place:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(109, 40, 217, .6); }
.co-place:disabled { opacity: .7; cursor: progress; transform: none; }
.co-place-logo { width: 64px; height: 44px; border-radius: 10px; background: #fff; display: grid; place-items: center; flex: none; color: var(--wa); overflow: hidden; }
.co-place-logo img { max-width: 56px; max-height: 36px; object-fit: contain; }
.co-place-logo .i { width: 26px; height: 26px; }
.co-place-t strong { display: block; font: 800 18px var(--head); }
.co-place-t small { font-size: 13.5px; color: rgba(255, 255, 255, .85); }
.co-place.busy .co-place-t strong::after { content: "\2026"; }
.co-trust { list-style: none; display: flex; justify-content: center; gap: 18px; margin: 14px 0 6px; font-size: 13.5px; font-weight: 600; }
.co-trust li { display: inline-flex; align-items: center; gap: 5px; }
.co-trust .i { width: 15px; height: 15px; color: var(--p600); }
.co-legal { text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.co-sum .alert { flex-direction: column; margin: 12px 0; }

/* ---------- Order page ---------- */
.order-card { padding: 34px; }
.order-top { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.order-top .h2 { font-size: 28px; margin: 2px 0 4px; }
.order-top .muted { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.order-check { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #fef3c7; color: #b45309; flex: none; }
.order-check.ok { background: #dcfce7; color: #16a34a; }
.order-check .i { width: 30px; height: 30px; }
.order-next { padding: 22px; border-radius: 16px; background: linear-gradient(135deg, #f0fdf4, #ecfdf5); border: 1px solid #bbf7d0; margin-bottom: 22px; }
.order-next h2 { font-size: 19px; margin-bottom: 6px; }
.order-dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0 0 22px; }
.order-dl > div { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.order-dl dt { font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.order-dl dd { margin: 2px 0 0; color: var(--ink); font-weight: 700; }
.order-dl dd.big { font: 900 24px var(--head); color: var(--p700); }
.order-method { display: flex; align-items: center; gap: 8px; }
.order-method img { height: 24px; width: auto; }
.order-pay { padding: 20px 22px; border-radius: 16px; background: var(--p50); border: 1px solid var(--p100); margin-bottom: 22px; }
.order-pay h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 8px; }
.order-pay h2 .i { color: var(--p600); }
.order-pay p { margin: 0; color: var(--ink); }
.order-steps { margin: 22px 0; }
.order-paid .paid-form .btn { width: 100%; }
.order-foot { margin: 0; font-size: 13.5px; color: var(--muted); word-break: break-all; }

/* ---------- Live chat ---------- */
.chat { position: fixed; right: 92px; bottom: 20px; z-index: 70; width: 370px; max-height: min(620px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 30px 70px -20px rgba(30, 27, 75, .45), 0 0 0 1px var(--line-soft); overflow: hidden; animation: pop .18s ease; }
.floats-left ~ .chat { right: auto; left: 92px; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--grad-deep); color: #fff; }
.chat-head img { border-radius: 12px; background: #fff; }
.chat-head strong { display: block; font: 800 16px var(--head); }
.chat-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .8); }
.chat-status i { width: 8px; height: 8px; border-radius: 50%; background: #fbbf24; }
.chat-status.on i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.chat-x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-x:hover { background: rgba(255, 255, 255, .25); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); min-height: 240px; }
.chat-msg { max-width: 82%; }
.chat-msg p { margin: 0; padding: 10px 13px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-msg time { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.chat-msg-agent p { background: #fff; color: var(--ink); border: 1px solid var(--line-soft); border-bottom-left-radius: 4px; }
.chat-msg-system p { background: var(--p50); color: var(--p800); border: 1px dashed var(--p300); }
.chat-msg-me { align-self: flex-end; text-align: right; }
.chat-msg-me p { background: var(--grad-btn); color: #fff; border-bottom-right-radius: 4px; text-align: left; }
.chat-offline { margin: 0; padding: 10px 12px; border-radius: 12px; background: #fffbeb; color: #92400e; font-size: 13.5px; }
.chat-start { display: grid; gap: 8px; margin-top: 4px; }
.chat-start input, .chat-start textarea { width: 100%; padding: 11px 13px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-size: 14.5px; color: var(--ink); resize: vertical; }
.chat-start input:focus, .chat-start textarea:focus, .chat-compose textarea:focus { outline: 0; border-color: var(--p500); box-shadow: 0 0 0 3px rgba(139, 92, 246, .14); }
.chat-err { margin: 0; color: #dc2626; font-size: 13px; font-weight: 600; }
.chat-compose { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line-soft); background: #fff; }
.chat-compose textarea { flex: 1; resize: none; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); font-size: 14.5px; color: var(--ink); max-height: 120px; }
.chat-compose button { width: 44px; border: 0; border-radius: 12px; background: var(--grad-btn); color: #fff; display: grid; place-items: center; cursor: pointer; }
.chat-compose button .i { width: 19px; height: 19px; }

@media (max-width: 1024px) {
  .co { grid-template-columns: 1fr; }
  .co-side { position: static; }
}
@media (max-width: 720px) {
  .co-wrap { padding: 20px 0 40px; }
  .co-card { padding: 20px 16px; }
  .co-grid { grid-template-columns: 1fr; gap: 0; }
  .co-phone { grid-template-columns: 1fr; }
  .co-dial { left: 16px; top: auto; bottom: 15px; transform: none; }
  .co-devices, .co-methods { grid-template-columns: 1fr 1fr; }
  .co-plan { grid-template-columns: auto 1fr; padding: 18px 14px; }
  .co-plan-price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 8px; text-align: left; }
  .stepper li:not(.on) { display: none; }
  .stepper li + li::before { content: none; }
  .secure { display: none; }
  .order-card { padding: 22px 18px; }
  .order-dl { grid-template-columns: 1fr; }
  .order-top { align-items: flex-start; }
  .chat, .floats-left ~ .chat { inset: 10px; width: auto; max-height: none; }
  .chat-open .floats { display: none; }
}

/* Reseller checkout: the credits and the length being bought. */
.co-rs { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: center; padding: 14px 18px; border: 1.5px solid var(--p300); border-radius: 14px; background: var(--p50); }
.co-rs strong { display: block; font: 800 18px/1.2 var(--head); color: var(--ink); }
.co-rs small { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .co-rs { grid-template-columns: 1fr; } }
