/* ConsultWhiz checkout – single-purpose, mobile-first. Scoped under .ck; theme CSS untouched. */
.page-checkout { background: #f6f7f6; }
/* The theme adds body.sticky-header (80px top padding for its fixed header) once you scroll past 350px.
   The checkout has no header, so that padding made the whole page jump while scrolling. */
body.page-checkout.sticky-header { padding-top: 0 !important; }

.ck {
  --g: #37ec81; --teal: #066b67; --deep: #062f2d; --ink: #0f1a19; --mut: #66746f; --bd: #e3e9e5; --err: #c0362c;
  position: relative; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink);
  min-height: 100vh; padding-bottom: 32px; overflow-x: clip; -webkit-font-smoothing: antialiased;
}
.ck *, .ck *::before, .ck *::after { box-sizing: border-box; }
:where(.ck) :where(h1, h2, p, ul, ol) { margin: 0; padding: 0; }
:where(.ck) :where(ul, ol) { list-style: none; }
.ck a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.ck button, .ck select, .ck input { font-family: inherit; }

.ck-aurora { display: none; }
.ck > *:not(.ck-aurora) { position: relative; z-index: 1; }

/* ---------- Top bar ---------- */
.ck-top-in { max-width: 560px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; }
.ck-logo img { height: 30px; width: auto; display: block; }
.ck-secure { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--mut); }
.ck-secure i { color: var(--teal); }

/* ---------- Card ---------- */
.ck-shell { max-width: 560px; margin: 0 auto; padding: 4px 16px 0; }
.ck-card { background: #fff; border: 1px solid var(--bd); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px rgba(15,26,25,.05); animation: ck-in .35s both; }
@keyframes ck-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Order summary (above the pay button) ---------- */
.ck-sum { margin: 22px 0 16px; padding: 14px 16px; border: 1px solid var(--bd); border-radius: 14px; background: #fbfcfb; }
.ck-sum-h { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.ck-line { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--bd); }
.ck-thumb { position: relative; }
.ck-thumb img { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; padding: 6px; background: #fff; border: 1px solid var(--bd); display: block; }
.ck-qty { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #3a4a46; color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }
.ck-o-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ck-o-txt strong { font-size: 14px; font-weight: 700; line-height: 1.3; }
.ck-o-txt span { font-size: 12.5px; color: var(--mut); }
.ck-o-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.ck-o-price b { font-size: 15px; font-weight: 700; }
.ck-o-price s { font-size: 12px; color: #98a5a0; margin-top: 2px; }
.ck-brk { margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ck-brk > div { display: flex; justify-content: space-between; gap: 12px; }
.ck-brk dt { color: var(--mut); font-weight: 500; }
.ck-brk dd { margin: 0; font-weight: 600; }
.ck-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bd); }
.ck-sum-total > span { font-size: 16px; font-weight: 700; }
.ck-sum-total small { font-size: 11.5px; font-weight: 600; color: var(--mut); margin-left: 4px; }
.ck-sum-total b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ck-sum-note { margin-top: 8px; font-size: 12px; color: var(--mut); line-height: 1.4; }

/* ---------- Form ---------- */
.ck-form { padding: 22px 18px 6px; }
.ck-title { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.ck-lead { margin: 6px 0 18px; font-size: 13.5px; line-height: 1.5; color: var(--mut); }
.ck-field { margin-bottom: 14px; min-width: 0; }
.ck-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: #2b3a37; }
.ck-ctl { position: relative; display: flex; align-items: center; }
.ck-ico { position: absolute; left: 15px; color: #8da097; font-size: 15px; pointer-events: none; transition: color .15s; }
.ck-ok { position: absolute; right: 15px; color: #22d06b; font-size: 17px; opacity: 0; transform: scale(.6); transition: all .2s; pointer-events: none; }
.ck-ctl.is-valid .ck-ok { opacity: 1; transform: none; }
.ck input[type="text"], .ck input[type="email"], .ck input[type="tel"], .ck select {
  width: 100%; height: 54px; padding: 0 42px 0 44px; border: 1.5px solid var(--bd); border-radius: 14px; background: #fbfcfb;
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s, background .15s; }
.ck input::placeholder { color: #a3afaa; font-weight: 400; }
.ck input:hover, .ck select:hover { border-color: #c4d3cb; }
.ck input:focus, .ck select:focus { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(6,107,103,.1); }
.ck-ctl:focus-within .ck-ico { color: var(--teal); }
.ck .is-invalid { border-color: var(--err) !important; background: #fff7f6 !important; box-shadow: 0 0 0 4px rgba(192,54,44,.08) !important; }
.ck-hint { margin-top: 7px; font-size: 12.5px; color: var(--mut); display: flex; gap: 7px; align-items: center; }
.ck-hint i { color: var(--teal); font-size: 11px; }
.ck-err { font-size: 12.5px; font-weight: 600; color: var(--err); margin-top: 6px; }
.ck-err:empty { display: none; }

.ck-ctl-phone .ck-cc { position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; min-width: 62px; display: flex; align-items: center; justify-content: center; padding: 0 12px; font-weight: 800; font-size: 15px; background: #eef3f0; border-radius: 12.5px 0 0 12.5px; border-right: 1.5px solid var(--bd); }
.ck .ck-ctl-phone input[type="tel"] { padding-left: 78px; }

.ck-row2 { display: grid; grid-template-columns: 1fr; gap: 0; }
.ck-sel select { padding: 0 38px 0 14px; cursor: pointer; text-overflow: ellipsis; }
.ck-caret { position: absolute; right: 15px; font-size: 11px; color: #8da097; pointer-events: none; }
.ck-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ck-alert { margin: 4px 0 12px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600; background: #fff1ef; color: var(--err); border: 1px solid rgba(192,54,44,.25); }

/* ---------- Pay button ---------- */
.ck-pay { position: relative; overflow: hidden; width: 100%; height: 54px; margin-top: 6px; border: 0; border-radius: 12px; cursor: pointer; font-size: 16.5px; font-weight: 700; color: #fff; letter-spacing: .005em;
  background: linear-gradient(180deg, #0e8077, #0a6f68); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 16px -8px rgba(6,107,103,.7);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: filter .15s, transform .1s; }
/* glass shine that sweeps across the button */
.ck-pay::after { content: ""; position: absolute; top: -10%; bottom: -10%; left: -40%; width: 26%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.28) 45%, rgba(255,255,255,.42) 55%, rgba(255,255,255,0) 100%);
  transform: skewX(-22deg); animation: ck-glass 3.4s ease-in-out infinite; }
@keyframes ck-glass { 0%, 50% { left: -40%; } 100% { left: 130%; } }
.ck-pay:hover { filter: brightness(1.08); }
.ck-pay:active { transform: scale(.99); }
.ck-play { font-size: 10px; opacity: .9; }
.ck-pay-lbl { display: inline-flex; align-items: center; gap: 10px; }
.ck-pay[disabled] { cursor: progress; filter: saturate(.85); }
.ck-spin { display: none; width: 19px; height: 19px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: ck-rot .7s linear infinite; }
.ck-pay.is-loading .ck-spin { display: inline-block; }
@keyframes ck-rot { to { transform: rotate(360deg); } }
.ck-note { margin: 12px 0 22px; text-align: center; font-size: 12.5px; color: var(--mut); line-height: 1.5; }

/* ---------- Trust ---------- */
.ck-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--bd); }
.ck-trust li { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; padding: 20px 8px 18px; gap: 2px; }
.ck-trust li + li { border-left: 1px solid var(--bd); }
.ck-trust i { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 15px; color: var(--teal); background: #f0f4f2; margin-bottom: 9px; }
.ck-trust b { font-size: 13px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.ck-trust span { font-size: 11.5px; color: var(--mut); line-height: 1.35; text-wrap: balance; }

.ck-foot { padding: 16px 16px 18px; background: #f7f9f8; border-top: 1px solid var(--bd); text-align: center; }
.ck-accept { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ck-accept span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 10px 4px 9px; font-size: 11px; font-weight: 700; color: #4a5a55; background: #fff; border: 1px solid var(--bd); border-radius: 10px; white-space: nowrap; }
.ck-accept i { color: var(--teal); font-size: 14px; }
.ck-powered { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--bd); font-size: 12px; font-weight: 600; color: var(--mut); text-align: center; }
.ck-powered i { color: var(--teal); margin-right: 6px; }
@media (max-width: 360px) {
  .ck-accept { grid-template-columns: repeat(2, 1fr); }
  .ck-trust b { white-space: normal; font-size: 12.5px; }
  .ck-trust li { padding-left: 4px; padding-right: 4px; }
}

.ck-legal { margin: 18px 6px 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--mut); }

.ck-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: 0 14px 34px rgba(0,0,0,.28); }

/* ---------- Larger screens ---------- */
@media (min-width: 560px) {
  .ck-form { padding: 26px 26px 6px; }
  .ck-row2 { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (min-width: 768px) {
  .ck-top-in { padding: 22px 16px 14px; }
  .ck-logo img { height: 36px; }
  .ck-shell { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ck *, .ck *::before, .ck *::after { transition: none !important; animation: none !important; }
}
