/* CAJ.UZ checkout form v2. Everything is scoped to .cbv2*, nothing else on the page is restyled. */
.cbv2-on .cbv2-legacy { display: none !important; }
.cbv2-park { display: none !important; }

.cbv2 { --cb-red: #C62828; --cb-red-d: #A51F1F; --cb-red-bg: #FCEEEE; --cb-ink: #1F1F1F; --cb-mut: #5C5C5C; --cb-line: #E4E2DE; --cb-bg: #F6F5F3;
  display: flex; flex-direction: column; gap: 18px; color: var(--cb-ink); font-size: 16px; line-height: 1.45; }
.cbv2 *, .cbv2-side *, .cbv2-bar * { box-sizing: border-box; }
.cbv2-sec { background: #fff; border: 1px solid var(--cb-line); border-radius: 16px; padding: 22px clamp(14px, 3vw, 26px); display: flex; flex-direction: column; gap: 14px; }
.cbv2-h { display: flex; align-items: center; gap: 12px; }
.cbv2-h h2 { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.2; }
.cbv2-n { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--cb-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.cbv2-muted { color: var(--cb-mut); margin: 0; }
.cbv2-small { font-size: 13px; }
.cbv2-center { text-align: center; }

/* dates */
.cbv2-dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 10px; }
.cbv2-date { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; min-height: 44px; border: 2px solid var(--cb-line); border-radius: 12px; background: #fff; text-align: left; font: inherit; color: var(--cb-ink); }
.cbv2-date:hover { border-color: #CFCCC6; }
.cbv2-date:focus-visible, .cbv2-pkg:focus-visible, .cbv2-sb:focus-visible, .cbv2-pay:focus-visible { outline: 3px solid #1A73E8; outline-offset: 2px; }
.cbv2-date.is-on { border-color: var(--cb-red); background: var(--cb-red-bg); }
.cbv2-date[disabled] { cursor: not-allowed; opacity: .55; }
.cbv2-date-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; letter-spacing: .04em; color: var(--cb-mut); }
.cbv2-date-top svg { color: var(--cb-red); }
.cbv2-date-r { font-size: 16px; font-weight: 700; }
.cbv2-date-y { font-size: 13px; color: var(--cb-mut); }
.cbv2-date-b { display: flex; justify-content: space-between; align-items: baseline; margin-top: 6px; font-size: 13px; color: #444; }
.cbv2-date-b b { color: var(--cb-ink); }

/* rooms */
.cbv2-pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.cbv2-pkg { all: unset; box-sizing: border-box; cursor: pointer; padding: 12px 14px; border: 2px solid var(--cb-line); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; }
.cbv2-pkg.is-on { border-color: var(--cb-red); background: var(--cb-red-bg); }
.cbv2-rich p { margin: 0; }
.cbv2-note { font-size: 14px; color: #444; background: var(--cb-bg); border-radius: 10px; padding: 10px 12px; }
.cbv2-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid #EEECE8; }
.cbv2-row-t { display: flex; flex-direction: column; gap: 2px; flex: 1 1 150px; min-width: 0; }
.cbv2-row-t span { font-size: 14px; color: var(--cb-mut); }
.cbv2-step { display: flex; align-items: center; gap: 4px; }
.cbv2-sb { all: unset; box-sizing: border-box; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--cb-red); color: var(--cb-red); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cbv2-sb[disabled] { border-color: #E0DED9; color: #9A9893; background: #F4F3F0; cursor: not-allowed; }
.cbv2-sv { min-width: 40px; text-align: center; font-size: 20px; font-weight: 700; }
.cbv2-count { margin: 0; font-size: 14px; color: #444; }

/* travelers */
.cbv2-travs { display: flex; flex-direction: column; gap: 14px; }
.cbv2-trav { border: 1px solid var(--cb-line); border-radius: 12px; padding: 14px 16px 16px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cbv2-trav legend { width: auto; padding: 0 6px; margin: 0; font-size: 15px; font-weight: 700; }
.cbv2-trav legend span { font-weight: 400; color: var(--cb-mut); }
.cbv2-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.cbv2-f { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 14px; font-weight: 500; color: #3A3A3A; }
.cbv2-f input, .cbv2-f select, .cbv2-f textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #CFCDC8; border-radius: 10px; font: inherit; font-size: 16px; color: var(--cb-ink); background: #fff; }
.cbv2-f textarea { resize: vertical; }
.cbv2-f input:focus, .cbv2-f select:focus, .cbv2-f textarea:focus { outline: none; border-color: var(--cb-red); box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.cbv2-file { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed #CFCDC8; border-radius: 10px; font-size: 14px; color: #3A3A3A; cursor: pointer; }
.cbv2-file.has-file { border-style: solid; border-color: var(--cb-red); background: var(--cb-red-bg); }
.cbv2-file-t { display: flex; flex-direction: column; min-width: 0; }
.cbv2-file-n { color: var(--cb-mut); overflow-wrap: anywhere; }
.cbv2-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.cbv2-file:focus-within { outline: 3px solid #1A73E8; outline-offset: 2px; }

/* payment */
.cbv2-payinfo { margin: 0; font-size: 15px; background: var(--cb-bg); border-radius: 10px; padding: 12px 14px; }
.cbv2-check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; margin: 0; cursor: pointer; }
.cbv2-check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--cb-red); }
.cbv2-check a, .cbv2-trust a { color: var(--cb-red-d); text-decoration: underline; }
.cbv2-err { display: none; border-radius: 10px; padding: 10px 14px; background: #FFF4E5; color: #6B3B00; font-size: 15px; }
.cbv2-err.is-on { display: block; }
.cbv2-pay { all: unset; box-sizing: border-box; width: 100%; min-height: 56px; border-radius: 12px; background: var(--cb-red); color: #fff; font: inherit; font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-align: center; cursor: pointer; padding: 0 16px; }
.cbv2-pay:hover { background: var(--cb-red-d); }
.cbv2-pay[disabled] { background: #DAD8D4; color: #555; cursor: progress; }

/* sidebar summary inside the existing tour card */
.cbv2-side { padding: 0 18px 18px; }
.cbv2-sum { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.cbv2-kick { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cb-red, #C62828); }
.cbv2-sum-row { display: flex; justify-content: space-between; gap: 12px; }
.cbv2-sum-row small { color: #5C5C5C; }
.cbv2-sum-row b { white-space: nowrap; }
.cbv2-sum-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #EEECE8; padding-top: 10px; }
.cbv2-sum-total b { font-size: 26px; }
.cbv2-side-btn { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: #C62828; color: #fff !important; font-weight: 700; text-decoration: none !important; }
.cbv2-side-btn:hover { background: #A51F1F; }
.cbv2-trust { list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px solid #EEECE8; display: flex; flex-direction: column; gap: 8px; color: #3A3A3A; font-size: 13px; }
.cbv2-trust li { padding-left: 18px; position: relative; }
.cbv2-trust li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: #C62828; }

/* phone bar */
.cbv2-bar { display: none; }
@media (max-width: 991.98px) {
  .cbv2-on body { padding-bottom: 84px; }
  .cbv2-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #E4E2DE; box-shadow: 0 -6px 18px rgba(0, 0, 0, .07); }
  .cbv2-bar-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
  .cbv2-bar-s, .cbv2-bar-uzs { font-size: 12px; color: #5C5C5C; }
  .cbv2-bar-usd { font-size: 22px; }
  .cbv2-bar-btn { flex: none; display: flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 12px; background: #C62828; color: #fff !important; font-weight: 700; text-decoration: none !important; }
  .cbv2-side .cbv2-side-btn { display: none; }
  /* lift the AI assistant button above the bar so it does not cover "Pay" */
  .cbv2-on #cajChatBtn { bottom: calc(92px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 575.98px) {
  .cbv2-sec { border-radius: 12px; }
  .cbv2-h h2 { font-size: 20px; }
  .cbv2-dates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* day tours: date field and price table by group size */
.cbv2-day { max-width: 320px; }
.cbv2-tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.cbv2-tier { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid #E4E2DE; border-radius: 10px; font-size: 13px; color: #5C5C5C; background: #fff; }
.cbv2-tier b { color: #1F1F1F; font-size: 14px; }
.cbv2-tier.is-on { border: 2px solid #C62828; background: #FCEEEE; padding: 7px 11px; }
.cbv2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cbv2-f small { font-weight: 400; color: #5C5C5C; }
.cbv2-ok { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 15px; }
.cbv2-ok svg { color: #C62828; flex: none; margin-top: 2px; }
.cbv2-f input.cbv2-bad, .cbv2-f select.cbv2-bad, .cbv2-f textarea.cbv2-bad { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.cbv2-ferr { display: block; font-size: 13px; font-weight: 500; color: #B3261E; }

/* packages and add-ons (tour 19: Standard / Comfort, escort guide) */
.cbv2-pkg { display: flex; flex-direction: column; gap: 2px; }
.cbv2-pkg b { font-size: 16px; }
.cbv2-pkg span { color: #5C5C5C; }
.cbv2-extras { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.cbv2-extras-h { font-size: 15px; }
.cbv2-extra { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px; min-height: 52px; border: 2px solid #E4E2DE; border-radius: 12px; cursor: pointer; font-weight: 400; }
.cbv2-extra input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: #C62828; }
.cbv2-extra-t { flex: 1; }
.cbv2-extra.is-on { border-color: #C62828; background: #FCEEEE; }
.cbv2-extra:focus-within { outline: 3px solid #1A73E8; outline-offset: 2px; }
/* group tiers with gaps (10 / 20 / 30) and per-person supplements */
.cbv2-other,.cbv2-big{margin:8px 0 0;font-size:13px}
.cbv2-extra-q{border-top:0}
/* guide language: shown as a line, the list opens on request */
.cbv2-guide{margin:12px 0 4px;font-size:14px;color:#374151}
.cbv2-guide .cbv2-f{margin-top:8px;max-width:320px}
.cbv2-link{background:none;border:0;padding:0;color:#c62828;text-decoration:underline;cursor:pointer;font:inherit}
