/* ============================================================
   Christmas Booking — Общи условия / Политика за поверителност (v2.15.2)
   Follows the site's theme: no background of its own (the page shows
   through), the theme's accent colour (--mega-primary) and heading font
   (--mega-font-h), text in the theme's own colour. Thin translucent
   panels and lines are mixed from that colour, so the page works on a
   dark or a light skin alike. Scoped to .cb-legal-doc.
   ============================================================ */

.cb-legal-doc {
  --ld-acc:   var(--mega-primary, #c6ff1f);
  --ld-acc-2: var(--mega-primary-2, var(--ld-acc));
  --ld-head:  var(--mega-font-h, inherit);
  --ld-ink:   currentColor;
  --ld-muted: color-mix(in srgb, currentColor 66%, transparent);
  --ld-line:  color-mix(in srgb, currentColor 13%, transparent);
  --ld-panel: color-mix(in srgb, currentColor 4%, transparent);
  --ld-on-acc: #0d0e12;
  --ld-ease:  cubic-bezier(.19,1,.22,1);

  position: relative;
  box-sizing: border-box;
  max-width: 900px;
  margin: 0 auto 64px;
  padding: 0 4px;
  background: none;
  font-size: 16.5px;
  line-height: 1.75;
  text-align: left;
}
.cb-legal-doc *, .cb-legal-doc *::before, .cb-legal-doc *::after { box-sizing: border-box; }

/* ── Header (in the spirit of the theme's hero) ─────────────── */
.cb-ld-head {
  position: relative;
  padding: clamp(18px, 4vw, 36px) 0 clamp(22px, 4vw, 34px);
  margin-bottom: clamp(22px, 4vw, 34px);
  border-bottom: 1px solid var(--ld-line);
}
/* soft accent glow, like the light behind the hero */
.cb-ld-head::before {
  content: "";
  position: absolute; z-index: -1;
  left: -10%; top: -40%;
  width: 70%; height: 180%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--ld-acc) 14%, transparent), transparent);
  pointer-events: none;
}
.cb-legal-doc .cb-ld-eyebrow {
  margin: 0 0 14px;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ld-acc);
}
.cb-legal-doc .cb-ld-title {
  margin: 0;
  font-family: var(--ld-head);
  font-size: clamp(38px, 7.4vw, 76px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: inherit;
}
.cb-ld-title__a { display: block; }
.cb-ld-title__b {
  display: block;
  -webkit-text-fill-color: transparent; /* keep `color`, so the outline can use currentColor */
  -webkit-text-stroke: 1.5px currentColor;
}
.cb-ld-title__b::after { content: "."; -webkit-text-fill-color: var(--ld-acc); -webkit-text-stroke: 0; }
.cb-legal-doc .cb-ld-meta { margin: 18px 0 0; }
.cb-ld-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ld-line);
  background: var(--ld-panel);
  font-size: 13.5px;
  color: var(--ld-muted);
}
.cb-ld-meta span::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ld-acc);
  box-shadow: 0 0 10px var(--ld-acc);
}

/* ── Table of contents ──────────────────────────────────────── */
.cb-ld-toc {
  margin: 0 0 clamp(30px, 5vw, 46px);
  padding: 18px 18px 12px;
  border-radius: var(--mega-radius, 18px);
  border: 1px solid var(--ld-line);
  background: var(--ld-panel);
}
.cb-legal-doc .cb-ld-toc__label {
  margin: 0 0 8px 8px;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ld-muted);
}
.cb-legal-doc .cb-ld-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.cb-legal-doc .cb-ld-toc li { margin: 0; padding: 0; }
.cb-legal-doc .cb-ld-toc li::before { content: none; }
.cb-legal-doc .cb-ld-toc a {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 8px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.35;
  color: inherit;
  text-decoration: none;
  transition: background .25s, color .25s;
}
.cb-legal-doc .cb-ld-toc a:hover,
.cb-legal-doc .cb-ld-toc a:focus-visible { background: color-mix(in srgb, var(--ld-acc) 12%, transparent); }
.cb-ld-toc .cb-ld-num {
  flex: none;
  min-width: 22px;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ld-acc);
}

/* ── Sections ───────────────────────────────────────────────── */
.cb-ld-sec {
  scroll-margin-top: 120px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  column-gap: 8px;
  padding: clamp(20px, 3.4vw, 30px) 0;
  border-top: 1px solid var(--ld-line);
}
.cb-ld-sec:first-child { border-top: 0; padding-top: 0; }
.cb-legal-doc .cb-ld-sec__title { display: contents; }
.cb-ld-big {
  grid-row: 1 / span 2;
  font-family: var(--ld-head);
  font-size: 58px;
  font-weight: 700;
  line-height: .9;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.2px color-mix(in srgb, currentColor 60%, transparent);
  transition: -webkit-text-stroke-color .3s, -webkit-text-fill-color .3s;
}
.cb-ld-sec:hover .cb-ld-big,
.cb-ld-sec:target .cb-ld-big { -webkit-text-fill-color: var(--ld-acc); -webkit-text-stroke-color: var(--ld-acc); }
.cb-legal-doc .cb-ld-sec__label {
  display: block;
  margin: 2px 0 12px;
  font-family: var(--ld-head);
  font-size: clamp(20px, 2.8vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: inherit;
}
.cb-ld-sec__body { grid-column: 2; }

.cb-legal-doc p { margin: 0 0 12px; color: var(--ld-muted); }
.cb-legal-doc p:last-child { margin-bottom: 0; }
.cb-legal-doc strong, .cb-legal-doc b { color: inherit; font-weight: 600; }
.cb-legal-doc a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--ld-acc);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color .2s;
}
.cb-legal-doc a:hover { color: var(--ld-acc); }

/* lists: accent markers instead of the theme's */
.cb-ld-body ul, .cb-ld-body ol { margin: 4px 0 14px; padding: 0; list-style: none; }
.cb-ld-body li { position: relative; margin: 0 0 10px; padding-left: 32px; color: var(--ld-muted); }
.cb-ld-body ul > li::before {
  content: "";
  position: absolute; left: 6px; top: .68em;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--ld-acc);
  transform: rotate(45deg);
}
.cb-ld-body ol { counter-reset: cb-ld; }
.cb-ld-body ol > li { counter-increment: cb-ld; }
.cb-ld-body ol > li::before {
  content: counter(cb-ld, decimal-leading-zero);
  position: absolute; left: 0; top: .12em;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; font-weight: 700;
  color: var(--ld-acc);
}

/* tables (Политика: срокове, получатели) */
.cb-ld-body table {
  width: 100%;
  margin: 12px 0 18px;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ld-line);
  border-radius: var(--mega-radius, 14px);
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.55;
}
.cb-ld-body th, .cb-ld-body td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
  border: 0;
  border-bottom: 1px solid var(--ld-line);
  color: var(--ld-muted);
  background: transparent;
}
.cb-ld-body tr:last-child td { border-bottom: 0; }
.cb-ld-body th {
  background: color-mix(in srgb, var(--ld-acc) 14%, transparent);
  color: inherit;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cb-ld-body tr:nth-child(even) td { background: var(--ld-panel); }

.cb-ld-intro { margin-bottom: 18px; }

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .cb-legal-doc { font-size: 16px; }
  .cb-legal-doc .cb-ld-toc ol { grid-template-columns: 1fr; }
  .cb-ld-sec { grid-template-columns: 1fr; }
  .cb-ld-big { grid-row: auto; font-size: 44px; margin-bottom: 4px; }
  .cb-ld-sec__body { grid-column: 1; }
  .cb-ld-body table { display: block; overflow-x: auto; }
}

/* ── Motion ─────────────────────────────────────────────────── */
.cb-legal-doc { animation: cb-ld-rise .8s var(--ld-ease) backwards; }
@keyframes cb-ld-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cb-legal-doc { animation: none; } }
html:has(.cb-legal-doc) { scroll-behavior: smooth; }

/* ── Print: plain, readable on paper ────────────────────────── */
@media print {
  .cb-legal-doc { color: #000; max-width: none; animation: none; }
  .cb-ld-head::before, .cb-ld-toc { display: none; }
  .cb-ld-title__b { -webkit-text-fill-color: #000; -webkit-text-stroke: 0; }
  .cb-ld-big { -webkit-text-fill-color: #000; -webkit-text-stroke: 0; font-size: 28px; }
  .cb-legal-doc p, .cb-ld-body li, .cb-ld-body td, .cb-ld-body th { color: #000; }
}

/* ============================================================
   v2.15.3 — Отмяна / Смяна на час ([christmas_cancel], [christmas_reschedule])
   Same look as the documents; forms in the theme's colours.
   !important only where themes style form controls globally.
   ============================================================ */
.cb-legal-doc.cb-ss { max-width: 640px; font-size: 16px; }
.cb-ss .cb-ld-head { margin-bottom: 22px; }
.cb-ss .cb-ld-title { font-size: clamp(36px, 7vw, 64px); }

.cb-ss .cb-cx-step,
.cb-ss .cb-rs-step {
  margin: 0 0 16px;
  padding: clamp(18px, 3.4vw, 28px);
  border: 1px solid var(--ld-line);
  border-radius: var(--mega-radius, 18px);
  background: var(--ld-panel);
}
.cb-ss .cb-cx-hidden, .cb-ss .cb-rs-hidden { display: none !important; }
.cb-ss h3 {
  margin: 0 0 8px;
  font-family: var(--ld-head);
  font-size: clamp(19px, 2.6vw, 23px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: inherit;
}
.cb-ss .cb-cx-muted, .cb-ss .cb-rs-muted { margin: 0 0 18px; font-size: 14.5px; line-height: 1.6; color: var(--ld-muted); }
.cb-ss .cb-cx-muted strong, .cb-ss .cb-rs-muted strong { color: var(--ld-acc); }

/* fields */
.cb-ss .cb-cx-field, .cb-ss .cb-rs-field { margin: 0 0 14px; }
.cb-ss .cb-cx-field label, .cb-ss .cb-rs-field label {
  display: block;
  margin: 0 0 7px;
  font-family: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ld-muted);
}
.cb-ss input[type="text"], .cb-ss input[type="email"] {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  padding: 13px 16px !important;
  border: 1px solid var(--ld-line) !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, currentColor 5%, transparent) !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 16px !important;
  outline: none !important;
  transition: border-color .2s, box-shadow .2s;
}
.cb-ss input::placeholder { color: var(--ld-muted) !important; opacity: .7; }
.cb-ss input[type="text"]:focus, .cb-ss input[type="email"]:focus {
  border-color: var(--ld-acc) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ld-acc) 18%, transparent) !important;
}

/* buttons */
.cb-ss .cb-cx-btn, .cb-ss .cb-rs-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 50px;
  margin: 6px 0 0 !important;
  padding: 13px 22px !important;
  border: 1px solid var(--ld-acc) !important;
  border-radius: 999px !important;
  background: var(--ld-acc) !important;
  box-shadow: none !important;
  color: var(--ld-on-acc) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: transform .2s var(--ld-ease), box-shadow .2s, filter .2s;
}
.cb-ss .cb-cx-btn:hover:not(:disabled), .cb-ss .cb-rs-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--ld-acc) 30%, transparent) !important;
}
.cb-ss .cb-cx-btn:disabled, .cb-ss .cb-rs-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.cb-ss .cb-cx-btn.secondary, .cb-ss .cb-rs-btn.secondary {
  margin-top: 10px !important;
  border-color: var(--ld-line) !important;
  background: transparent !important;
  color: inherit !important;
}
.cb-ss .cb-cx-btn.secondary:hover, .cb-ss .cb-rs-btn.secondary:hover { border-color: currentColor !important; box-shadow: none !important; }

/* messages */
.cb-ss .cb-cx-err, .cb-ss .cb-rs-err { margin-top: 12px; font-size: 14px; color: #ff6b6b; }
.cb-ss .cb-cx-err:empty, .cb-ss .cb-rs-err:empty { display: none; }
.cb-ss .cb-cx-ok, .cb-ss .cb-rs-ok { margin: 0 0 10px; font-size: 15.5px; color: var(--ld-acc); }

/* cancel: summary + agreement */
.cb-ss .cb-cx-sum { margin: 6px 0 18px; padding: 4px 16px; border: 1px solid var(--ld-line); border-radius: 12px; }
.cb-ss .cb-cx-sum > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--ld-line); font-size: 14.5px; }
.cb-ss .cb-cx-sum > div:last-child { border-bottom: 0; }
.cb-ss .cb-cx-sum span { color: var(--ld-muted); }
.cb-ss .cb-cx-check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; cursor: pointer; color: var(--ld-muted); }
.cb-ss .cb-cx-check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ld-acc); }

/* reschedule: dates + times as chips */
.cb-ss .cb-rs-dates, .cb-ss .cb-rs-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.cb-ss .cb-rs-date, .cb-ss .cb-rs-slot {
  margin: 0 !important;
  padding: 9px 14px !important;
  border: 1px solid var(--ld-line) !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  font: inherit !important;
  font-size: 14px !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.cb-ss .cb-rs-date:hover, .cb-ss .cb-rs-slot:hover { border-color: var(--ld-acc) !important; }
.cb-ss .cb-rs-date.sel, .cb-ss .cb-rs-slot.sel {
  border-color: var(--ld-acc) !important;
  background: var(--ld-acc) !important;
  color: var(--ld-on-acc) !important;
  font-weight: 700 !important;
}
