/* =========================================================================
   DreamNET — calculator UI (2026)
   Replaces /css/calculator.css. Visual only: every class, id and data
   attribute used by /assets/js/calculator.js is left exactly as rendered.
   Display of cards / columns is never forced (the script hides them with
   inline styles and recalc() skips cards whose computed display is none).
   ========================================================================= */

#calc-root, #calc-root * { box-sizing: border-box; }
#calc-root { color: var(--dn-ink, #0f2233); font-family: var(--dn-font, system-ui, sans-serif); }
#calc-root > .container { max-width: none; padding: 0 !important; }

/* ---------- toolbar: term + total (sticky) ---------- */
#calc-root .container > .d-flex:first-child {
  position: sticky;
  top: var(--dn-header-h, 76px);
  z-index: 40;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px !important;
  margin: 0 0 28px !important;
  padding: 10px 10px 10px 18px;
  background: rgb(255 255 255 / 94%);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border: 1px solid var(--dn-line, #e2e9ef);
  border-radius: 18px;
  box-shadow: 0 12px 30px -18px rgb(15 34 51 / 35%);
  transition: top .2s;
}
#calc-root .container > .d-flex:first-child > .d-flex:first-child { gap: 14px !important; flex-wrap: wrap !important; }
#calc-root label[for="globalTerm"] { margin: 0 !important; display: inline-flex; align-items: center; }
#calc-root label[for="globalTerm"] strong { font-size: 13px; font-weight: 700; color: var(--dn-muted, #5d6f80); text-transform: uppercase; letter-spacing: .06em; }
#calc-root #globalTerm {
  width: 190px; min-width: 0;
  border-radius: 12px !important;
  border: 1.5px solid var(--dn-line-2, #cfdbe5) !important;
  font-weight: 600;
  padding: .5rem 2.2rem .5rem .8rem !important;
  cursor: pointer;
}

/* segmented control (built by /js/dn-ui.js from the same <select>) */
#calc-root .dn-seg {
  display: inline-flex;
  padding: 4px;
  gap: 2px;
  background: var(--dn-bg, #f4f7fa);
  border: 1px solid var(--dn-line, #e2e9ef);
  border-radius: 14px;
}
#calc-root .dn-seg button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dn-ink-2, #2b4054);
  font: 600 14px/1 var(--dn-font, system-ui);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .18s var(--dn-ease, ease), color .18s, box-shadow .18s;
}
#calc-root .dn-seg button:hover { color: var(--dn-blue-600, #1f7aa3); }
#calc-root .dn-seg button[aria-pressed="true"] { background: #fff; color: var(--dn-blue-600, #1f7aa3); box-shadow: 0 1px 2px rgb(15 34 51 / 10%), 0 4px 12px -4px rgb(15 34 51 / 18%); }
#calc-root .dn-seg button:focus-visible { outline: 0; box-shadow: var(--dn-ring); }
#calc-root .dn-seg-ready #globalTerm {
  position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important;
  padding: 0 !important; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0 !important; white-space: nowrap;
}

#calc-root #btnClear {
  margin-left: auto !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--dn-muted, #5d6f80) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px !important;
  box-shadow: none !important;
  border-radius: 10px !important;
}
#calc-root #btnClear::before { content: "\f2ed"; font-family: "Font Awesome 6 Free"; font-weight: 400; margin-right: 7px; }
#calc-root #btnClear:hover { background: var(--dn-bg, #f4f7fa) !important; color: var(--dn-danger, #d64545) !important; }

#calc-root #currencyLiveDisplay {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 16px;
  border-radius: 14px;
  background: var(--dn-navy, #0a1b2a);
  color: #a9c0d1 !important;
  font-size: 13px !important;
}
#calc-root #currencyLiveDisplay strong { color: #fff; font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-left: 4px; font-variant-numeric: tabular-nums; }
#calc-root #currencyLiveDisplay .btn {
  margin-left: 12px !important;
  border-radius: 10px !important;
  background: var(--dn-orange, #fcb13e) !important;
  border: 0 !important;
  color: var(--dn-ink, #0f2233) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 16px !important;
  box-shadow: none !important;
}
#calc-root #currencyLiveDisplay .btn:hover { background: #ffc25e !important; }
#calc-root #currencyLiveDisplay .btn.disabled { background: rgb(255 255 255 / 12%) !important; color: rgb(255 255 255 / 55%) !important; opacity: 1 !important; }

/* ---------- section titles inside calculator ---------- */
#calc-root hr.my-4 { border: 0; border-top: 1px solid var(--dn-line, #e2e9ef); opacity: 1; margin: 36px 0 28px !important; }
#calc-root .col-title {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px !important;
  font-size: 18px; font-weight: 800; letter-spacing: -.015em;
  color: var(--dn-ink, #0f2233);
}
#calc-root .col-title::before {
  content: "\2b";
  display: grid; place-items: center;
  width: 28px; height: 28px; flex: 0 0 28px;
  border-radius: 9px;
  background: var(--dn-blue-50, #eef7fc);
  color: var(--dn-blue-600, #1f7aa3);
  font-weight: 800; font-size: 16px; line-height: 1;
}
#calc-root .box-hint {
  display: flex !important; align-items: center; gap: 10px;
  justify-content: flex-start !important; text-align: left !important;
  margin: 0 0 14px !important;
  font-size: 15px !important; font-weight: 700 !important;
  color: var(--dn-blue-600, #1f7aa3) !important;
}
#calc-root .box-hint[style*="none"] { display: none !important; }
#calc-root .box-hint::before { content: "\f0a9"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: var(--dn-orange, #fcb13e); }

/* ---------- grids ---------- */
#calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons, #internet-real-ips) {
  display: grid;
  gap: 16px;
  margin: 0 !important;
  --bs-gutter-x: 0; --bs-gutter-y: 0;
}
#calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons, #internet-real-ips) > [class*="col-"] { width: auto; max-width: none; padding: 0; margin: 0; flex: none; min-width: 0; }
#calc-root #serviceArea { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#calc-root #tv-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#calc-root :is(#tv-addons, #box-addons) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
#calc-root #internet-real-ips { grid-template-columns: minmax(0, 1fr); }
#calc-root #tvArea > .row:nth-of-type(2) > .col-md-6 { width: 100%; }
#calc-root #tvArea > .row > .col-12 { padding: 0 12px; }
#calc-root :is(#box-left, #box-right) { display: grid; gap: 12px; align-content: start; }
#calc-root :is(#box-real-ips, #box-receivers) { margin: 0 !important; --bs-gutter-x: 0; --bs-gutter-y: 0; display: grid; gap: 12px; }

/* =========================================================================
   SERVICE CARD — base (tile)
   ========================================================================= */
body #calc-root .service-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name   tag"
    "metric metric"
    "mkt    mkt"
    "speeds speeds"
    "price  price"
    "pbox   pbox"
    "row    row"
    "msg    msg"
    "ch     ch";
  align-content: start;
  column-gap: 12px;
  height: 100%;
  margin: 0 !important;
  padding: 20px !important;
  background: #fff !important;
  border: 1px solid var(--dn-line, #e2e9ef) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 2px rgb(15 34 51 / 5%), 0 8px 24px -16px rgb(15 34 51 / 18%) !important;
  transform: none;
  transition: border-color .2s var(--dn-ease, ease), box-shadow .2s var(--dn-ease, ease), background-color .2s, transform .2s var(--dn-ease, ease);
  overflow: visible;
  min-width: 0;
}
body #calc-root .service-card::before, body #calc-root .service-card::after { content: none; }
body #calc-root .service-card:hover { border-color: var(--dn-blue-200, #b5dcef) !important; box-shadow: 0 2px 4px rgb(15 34 51 / 5%), 0 18px 36px -20px rgb(15 34 51 / 30%) !important; transform: translateY(-2px); }

/* unwrap head so name / price / badge become grid cells */
body #calc-root .service-card .card-head,
body #calc-root .service-card .card-price-col { display: contents !important; }
body #calc-root .service-card .card-head > .d-flex:first-child { grid-area: name; min-width: 0; align-self: center; gap: 0 !important; }
body #calc-root .service-card .card-head .fw-bold {
  font-size: 19px !important;
  font-weight: 800 !important;
  letter-spacing: -.02em;
  line-height: 1.2 !important;
  color: var(--dn-ink, #0f2233) !important;
  margin: 0 !important;
}
body #calc-root .service-card .badge {
  grid-area: tag;
  align-self: center; justify-self: end;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--dn-bg, #f4f7fa) !important;
  color: var(--dn-muted, #5d6f80) !important;
  border: 1px solid var(--dn-line, #e2e9ef) !important;
  white-space: nowrap;
  box-shadow: none !important;
}
body #calc-root .service-card .badge.text-bg-success { background: #e8f7ef !important; color: var(--dn-success, #179a5a) !important; border-color: #cdebd9 !important; }

/* headline metric: speeds (internet) or channel count (tv / add-ons) */
body #calc-root .service-card .internet-speed-short,
body #calc-root .service-card > .channel-count-badge { grid-area: metric; }
body #calc-root .service-card .internet-speed-short {
  display: flex !important;
  align-items: stretch;
  gap: 0;
  max-width: none !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dn-blue-50, #eef7fc), #f7fbfe);
  border: 1px solid var(--dn-blue-100, #d8edf8);
  overflow: hidden;
}
body #calc-root .service-card .internet-speed-short .speed-col {
  flex: 1 1 0;
  display: grid !important;
  grid-template-columns: auto 1fr;
  grid-template-areas: "num unit" "lbl lbl";
  align-items: end;
  column-gap: 4px;
  padding: 12px 12px 11px 14px;
  text-align: left !important;
  min-width: 0;
}
body #calc-root .service-card .internet-speed-short .speed-col + .speed-col,
body #calc-root .service-card .internet-speed-short .speed-plus + .speed-col { border-left: 1px solid var(--dn-blue-100, #d8edf8); }
body #calc-root .service-card .internet-speed-short .speed-plus { display: none !important; }
body #calc-root .service-card .speed-num {
  grid-area: num;
  font-size: 34px !important;
  font-weight: 800 !important;
  line-height: .95 !important;
  letter-spacing: -.04em;
  color: var(--dn-blue-600, #1f7aa3) !important;
  font-variant-numeric: tabular-nums;
}
body #calc-root .service-card .speed-unit {
  grid-area: unit;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--dn-blue, #2a96c8) !important;
  line-height: 1.1 !important;
  padding-bottom: 3px;
  margin: 0 !important;
  vertical-align: baseline !important;
  position: static !important;
}
body #calc-root .service-card .internet-speed-short small {
  grid-area: lbl;
  display: block;
  margin-top: 6px;
  font-size: 11.5px !important;
  line-height: 1.3 !important;
  color: var(--dn-muted, #5d6f80) !important;
  text-align: left !important;
}
body #calc-root .service-card .internet-speed-short small br { display: none; }

body #calc-root .service-card .channel-count-badge {
  align-items: baseline !important;
  gap: 6px !important;
  margin: 16px 0 0 !important;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dn-orange-50, #fff5e3), #fffaf1);
  border: 1px solid #fbe3b8;
  white-space: nowrap;
  justify-self: stretch;
}
body #calc-root .service-card .channel-count-badge .speed-num { font-size: 34px !important; color: var(--dn-ink, #0f2233) !important; }
body #calc-root .service-card .channel-count-badge .speed-unit { font-size: 14px !important; color: var(--dn-orange-600, #e59a22) !important; font-weight: 700 !important; }
body #calc-root .service-card .channel-count-badge .speed-unit::before { content: "\f26c"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 6px; font-size: 12px; }

/* marketing / highlight copy */
body #calc-root .service-card .internet-marketing,
body #calc-root .service-card .desc { grid-area: mkt; }
body #calc-root .service-card .internet-marketing {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}
body #calc-root .service-card .internet-marketing-icon {
  display: grid !important; place-items: center;
  flex: 0 0 30px;
  width: 30px !important; height: 30px !important;
  border-radius: 9px !important;
  background: var(--dn-bg, #f4f7fa) !important;
  color: var(--dn-blue-600, #1f7aa3) !important;
  font-size: 13px !important;
  box-shadow: none !important;
  margin: 0 !important;
}
body #calc-root .service-card .internet-marketing-icon i { color: inherit !important; font-size: inherit !important; }
body #calc-root .service-card .internet-marketing > div:last-child { flex: 1 !important; min-width: 0; }
body #calc-root .service-card .internet-marketing-title { font-size: 14px !important; font-weight: 700 !important; color: var(--dn-ink, #0f2233) !important; line-height: 1.3 !important; margin: 4px 0 3px !important; }
body #calc-root .service-card .internet-marketing-text { font-size: 13px !important; line-height: 1.5 !important; color: var(--dn-muted, #5d6f80) !important; }
body #calc-root .service-card .desc { margin: 12px 0 0 !important; font-size: 13px; color: var(--dn-muted, #5d6f80); }
body #calc-root .service-card .desc:empty { display: none; }

/* speed details (toggle with "Виж детайли") */
body #calc-root .service-card .inet-speeds { grid-area: speeds; display: none; }
body #calc-root .service-card .inet-speeds.open {
  display: block !important;
  margin: 12px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: var(--dn-bg, #f4f7fa) !important;
  border: 1px dashed var(--dn-line-2, #cfdbe5) !important;
  animation: dnFade .2s var(--dn-ease, ease);
}
body #calc-root .service-card .internet-speed-icon { display: none !important; }
body #calc-root .service-card .internet-speed-line { font-size: 13px; line-height: 1.55; color: var(--dn-ink-2, #2b4054); }

/* price */
body #calc-root .service-card .price {
  grid-area: price;
  display: flex; align-items: baseline; gap: 6px;
  margin: 16px 0 0 !important;
  padding-top: 14px;
  border-top: 1px solid var(--dn-line, #e2e9ef);
  font-size: 30px !important;
  font-weight: 800 !important;
  letter-spacing: -.035em;
  line-height: 1 !important;
  color: var(--dn-ink, #0f2233) !important;
  font-variant-numeric: tabular-nums;
  text-align: left !important;
  white-space: nowrap;
}
body #calc-root .service-card .price .old { font-size: 15px; color: var(--dn-muted, #5d6f80); text-decoration: line-through; font-weight: 600; }
body #calc-root .service-card .price-box {
  grid-area: pbox;
  margin: 6px 0 0 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: var(--dn-muted, #5d6f80) !important;
  text-align: left !important;
  line-height: 1.35;
}
body #calc-root .service-card .price-box:empty { display: none; }

/* actions row */
body #calc-root .service-card .card-row {
  grid-area: row;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px !important;
  margin: 14px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body #calc-root .service-card .card-row > .card-actions { grid-column: 1 / -1; display: block !important; min-width: 0; }
body #calc-root .service-card .card-row > .qty-wrap { grid-column: 1 / -1; }
body #calc-root .service-card .card-row > :only-of-type.btn { grid-column: 1 / -1; }
body #calc-root .service-card .card-row > .btn:last-child:nth-child(2) { grid-column: 1 / -1; }

/* selection pill (the real checkbox is stretched over it) */
body #calc-root .service-card .form-switch {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin: 0 !important;
  padding: 8px 16px !important;
  border-radius: 12px;
  border: 1.5px solid var(--dn-blue, #2a96c8);
  background: #fff;
  color: var(--dn-blue-600, #1f7aa3);
  transition: background-color .18s var(--dn-ease, ease), border-color .18s, color .18s, box-shadow .18s;
  cursor: pointer;
}
body #calc-root .service-card .form-switch::before {
  content: "";
  flex: 0 0 20px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: grid; place-items: center;
  font: 900 10px/1 "Font Awesome 6 Free";
  transition: background-color .18s, color .18s, border-color .18s, transform .25s var(--dn-ease, ease);
}
body #calc-root .service-card .form-switch .form-check-input.srv-toggle {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  float: none !important;
  opacity: 0 !important;
  cursor: pointer;
  z-index: 2;
  border-radius: 12px;
}
body #calc-root .service-card .form-switch .form-check-label {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: inherit !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: center;
  cursor: inherit;
}
body #calc-root .service-card .form-switch:hover { background: var(--dn-blue-50, #eef7fc); }
body #calc-root .service-card .form-switch:has(.srv-toggle:focus-visible) { box-shadow: var(--dn-ring); }
body #calc-root .service-card .form-switch:has(.srv-toggle:checked) { background: var(--dn-blue, #2a96c8); border-color: var(--dn-blue, #2a96c8); color: #fff; }
body #calc-root .service-card .form-switch:has(.srv-toggle:checked)::before { content: "\f00c"; background: #fff; border-color: #fff; color: var(--dn-blue, #2a96c8); transform: scale(1.05); }
body #calc-root .service-card .form-switch:has(.srv-toggle:checked):hover { background: var(--dn-blue-600, #1f7aa3); border-color: var(--dn-blue-600, #1f7aa3); }
body #calc-root .service-card .form-switch:has(.srv-toggle:disabled) { background: var(--dn-bg, #f4f7fa); border-color: var(--dn-line, #e2e9ef); border-style: dashed; color: var(--dn-muted, #5d6f80); cursor: not-allowed; }
body #calc-root .service-card .form-switch:has(.srv-toggle:disabled)::before { content: "\f023"; border: 0; width: 14px; flex-basis: 14px; font-size: 12px; }
body #calc-root .service-card .form-switch:has(.srv-toggle:disabled) .srv-toggle { cursor: not-allowed; }

/* secondary actions: quiet text buttons */
body #calc-root .service-card .card-row .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px;
  padding: 6px 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--dn-ink-2, #2b4054) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  box-shadow: none !important;
  width: 100%;
}
body #calc-root .service-card .card-row .btn:hover { background: var(--dn-bg, #f4f7fa) !important; color: var(--dn-blue-600, #1f7aa3) !important; }
body #calc-root .service-card .card-row :is(.srv-speeds, .srv-channels)::before { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 11px; color: var(--dn-blue, #2a96c8); }
body #calc-root .service-card .card-row .srv-speeds::before { content: "\f3fd"; }
body #calc-root .service-card .card-row .srv-channels::before { content: "\f00a"; }
body #calc-root .service-card .card-row .srv-goto::after { content: "\f061"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 10px; color: var(--dn-blue, #2a96c8); }
body #calc-root .service-card .card-row .btn:disabled { opacity: .6; }

/* quantity */
body #calc-root .service-card .qty-wrap { display: flex !important; align-items: center; justify-content: space-between; gap: 10px !important; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--dn-bg, #f4f7fa); }
body #calc-root .service-card .qty-wrap .form-label { font-size: 13px !important; font-weight: 600 !important; color: var(--dn-ink-2, #2b4054) !important; margin: 0 !important; }
body #calc-root .service-card .srv-qty {
  width: 64px !important; max-width: 64px !important;
  text-align: center;
  font-weight: 700 !important;
  font-size: 15px !important;
  padding: 6px 4px !important;
  border-radius: 10px !important;
  border: 1.5px solid var(--dn-line-2, #cfdbe5) !important;
  -moz-appearance: textfield;
}
body #calc-root .service-card .srv-qty:disabled { background: #fff; color: var(--dn-muted, #5d6f80); }
body #calc-root .dn-qty { display: inline-flex; align-items: center; gap: 4px; }
body #calc-root .dn-qty .srv-qty::-webkit-outer-spin-button, body #calc-root .dn-qty .srv-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
body #calc-root .dn-qty-btn {
  width: 34px; height: 34px;
  border-radius: 10px;
  border: 1.5px solid var(--dn-line-2, #cfdbe5);
  background: #fff;
  color: var(--dn-ink, #0f2233);
  font-size: 16px; font-weight: 700; line-height: 1;
  display: grid; place-items: center;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
body #calc-root .dn-qty-btn:hover:not(:disabled) { border-color: var(--dn-blue, #2a96c8); color: var(--dn-blue-600, #1f7aa3); }
body #calc-root .dn-qty-btn:disabled { opacity: .4; cursor: not-allowed; }

/* status message & channel logos */
body #calc-root .service-card .cart-added-msg { grid-area: msg; margin: 10px 0 0 !important; font-size: 13px !important; font-weight: 700 !important; display: none; }
body #calc-root .service-card .cart-added-msg.show { display: flex !important; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: #e8f7ef; color: var(--dn-success, #179a5a) !important; animation: dnFade .2s var(--dn-ease, ease); }
body #calc-root .service-card .cart-added-msg.show:has(.fa-lock) { background: var(--dn-bg, #f4f7fa); color: var(--dn-muted, #5d6f80) !important; }
body #calc-root .service-card .cart-added-msg.show:has(.fa-arrow-right) { background: var(--dn-orange-50, #fff5e3); color: #9a5d00 !important; }
body #calc-root .service-card .cart-added-msg:empty { display: none !important; }
body #calc-root .service-card .cart-added-msg i { margin: 0 !important; }

body #calc-root .service-card .pkg-channels { grid-area: ch; display: none; margin: 0; padding: 0; border: 0; }
body #calc-root .service-card .pkg-channels.open { display: block !important; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--dn-line-2, #cfdbe5); animation: dnFade .25s var(--dn-ease, ease); }
body #calc-root .pkg-logos { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)) !important; gap: 6px !important; }
body #calc-root .pkg-logo-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
body #calc-root .pkg-logos img {
  width: 100%;
  height: 42px !important;
  object-fit: contain;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid var(--dn-line, #e2e9ef);
  background: #fff;
  box-shadow: none;
  transition: transform .15s var(--dn-ease, ease), border-color .15s;
}
body #calc-root .pkg-logos img:hover { transform: translateY(-1px); border-color: var(--dn-blue-200, #b5dcef); }
body #calc-root .pkg-logo-name { display: none; }

/* ---------- card states ---------- */
body #calc-root .service-card:has(.srv-toggle:checked) {
  border-color: var(--dn-blue, #2a96c8) !important;
  background: linear-gradient(180deg, #f3faff 0%, #fff 55%) !important;
  box-shadow: 0 0 0 1px var(--dn-blue, #2a96c8), 0 18px 36px -20px rgb(42 150 200 / 55%) !important;
}
body #calc-root .service-card:has(.srv-toggle:checked)::after {
  content: "\f00c";
  position: absolute; top: -10px; right: -10px;
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  font: 900 12px/1 "Font Awesome 6 Free";
  background: var(--dn-blue, #2a96c8); color: #fff;
  box-shadow: 0 0 0 3px #fff, 0 6px 14px -4px rgb(42 150 200 / 70%);
  animation: dnPop .28s var(--dn-ease, ease);
  z-index: 3;
}
body #calc-root .service-card:is(.is-unavailable, .is-combo-blocked) { opacity: 1 !important; background: #fbfcfd !important; box-shadow: none !important; transform: none !important; }
body #calc-root .service-card:is(.is-unavailable, .is-combo-blocked) :is(.card-head .fw-bold, .speed-num, .internet-marketing-title) { color: var(--dn-muted, #5d6f80) !important; }
body #calc-root .service-card:is(.is-unavailable, .is-combo-blocked) .price { font-size: 16px !important; color: var(--dn-danger, #d64545) !important; letter-spacing: 0; }
body #calc-root .service-card:is(.is-unavailable, .is-combo-blocked) :is(.internet-speed-short, .channel-count-badge) { filter: grayscale(1); opacity: .6; }
body #calc-root .service-card:has(.srv-toggle:disabled):not(.is-unavailable):not(.is-combo-blocked) { background: #fff !important; }

/* =========================================================================
   COMPACT ROW CARDS — add-ons with quantities and the bundle builder
   ========================================================================= */
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) {
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 300px);
  grid-template-areas:
    "name  tag   row"
    "mkt   mkt   row"
    "price pbox  row"
    "msg   msg   msg";
  column-gap: 20px;
  height: auto;
}
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .badge { justify-self: start; }
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .price { border-top: 0; padding-top: 0; margin-top: 12px !important; font-size: 24px !important; }
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .price-box { align-self: end; }
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .card-row { align-self: center; margin: 0 !important; grid-template-columns: 1fr; padding-left: 20px !important; border-left: 1px solid var(--dn-line, #e2e9ef) !important; }
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .card-row > * { grid-column: 1 / -1; }

/* bundle builder: internet and tv cards as compact rows */
body #calc-root #boxArea :is(#box-left, #box-right) .service-card {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name   price"
    "tag    pbox"
    "metric metric"
    "mkt    mkt"
    "speeds speeds"
    "row    row"
    "msg    msg"
    "ch     ch";
  padding: 18px 18px 16px !important;
}
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .badge { justify-self: start; margin-top: 6px; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .price { border: 0; padding: 0; margin: 0 !important; justify-content: flex-end; font-size: 28px !important; align-self: center; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .price-box { text-align: right !important; margin-top: 6px !important; align-self: center; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .card-row { grid-template-columns: minmax(150px, 1.1fr) 1fr 1fr; padding-top: 14px !important; margin-top: 14px !important; border-top: 1px solid var(--dn-line, #e2e9ef) !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .card-row > .card-actions { grid-column: auto; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .internet-speed-short,
body #calc-root #boxArea :is(#box-left, #box-right) .service-card > .channel-count-badge { margin-top: 14px !important; }

/* add-on packages (tv extras): lighter tiles */
body #calc-root .service-card[data-box="addons"] { padding: 18px !important; }
body #calc-root .service-card[data-box="addons"] .card-head .fw-bold { font-size: 17px !important; }
body #calc-root .service-card[data-box="addons"] .channel-count-badge { padding: 8px 12px; }
body #calc-root .service-card[data-box="addons"] .channel-count-badge .speed-num { font-size: 26px !important; }
body #calc-root .service-card[data-box="addons"] .price { font-size: 24px !important; }

/* tv info strip that some pages print inside the calculator */
#calc-root .tv-plan-info { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--dn-ink-2, #2b4054); }
#calc-root .tv-plan-info i { display: none !important; }

/* ---------- summary (header cart panel created by calculator.js) ---------- */
#calc-root .sticky-summary { display: none !important; }
#calcCartPanel {
  top: calc(var(--dn-header-h, 76px) + 10px) !important;
  right: max(16px, calc((100vw - 1240px) / 2)) !important;
  width: min(400px, calc(100vw - 24px)) !important;
  border: 1px solid var(--dn-line, #e2e9ef) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 60px -20px rgb(10 27 42 / 40%), 0 0 0 1px rgb(15 34 51 / 3%) !important;
  font-family: var(--dn-font, system-ui) !important;
  overflow: hidden auto;
}
#calcCartPanel.open { animation: dnDrop .22s var(--dn-ease, ease); }
#calcCartPanel .panel-head { padding: 16px 18px !important; background: var(--dn-navy, #0a1b2a) !important; border: 0 !important; }
#calcCartPanel .panel-title { color: #fff !important; font-size: 16px !important; font-weight: 800 !important; letter-spacing: -.01em; }
#calcCartPanel .panel-title::before { content: "\f07a"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 10px; color: var(--dn-orange, #fcb13e); font-size: 14px; }
#calcCartPanel .panel-close { color: #a9c0d1 !important; width: 32px; height: 32px; border-radius: 10px !important; display: grid; place-items: center; }
#calcCartPanel .panel-close:hover { background: rgb(255 255 255 / 10%) !important; color: #fff !important; }
#calcCartPanel .panel-body { padding: 16px 18px 18px !important; }
#calcCartPanel .sum-row { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--dn-line, #e2e9ef); font-size: 14px !important; }
#calcCartPanel .sum-row .sum-muted { color: var(--dn-ink-2, #2b4054) !important; font-weight: 600 !important; }
#calcCartPanel .sum-row .sum-title { color: var(--dn-ink, #0f2233); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
#calcCartPanel .sum-hr { display: none; }
#calcCartPanel .sum-row:last-child { border: 0; margin-top: 8px; padding: 14px 16px; border-radius: 14px; background: var(--dn-blue-50, #eef7fc); }
#calcCartPanel .sum-row:last-child .total-amount { font-size: 20px; font-weight: 800; color: var(--dn-blue-600, #1f7aa3); letter-spacing: -.02em; white-space: nowrap; }
#calcCartPanel .panel-note { font-size: 12.5px !important; line-height: 1.5; color: var(--dn-muted, #5d6f80) !important; margin-top: 12px !important; }
#calcCartPanel .btn-primary { min-height: 48px; border-radius: 12px !important; font-weight: 700; background: var(--dn-orange, #fcb13e) !important; border-color: var(--dn-orange, #fcb13e) !important; color: var(--dn-ink, #0f2233) !important; box-shadow: none !important; display: flex; align-items: center; justify-content: center; }
#calcCartPanel .btn-primary:hover { background: #ffc25e !important; }

/* ---------- motion ---------- */
@keyframes dnFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes dnPop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes dnDrop { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  #calc-root *, #calcCartPanel { animation: none !important; transition: none !important; }
  body #calc-root .service-card:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  #calc-root #serviceArea { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #calc-root :is(#tv-addons, #box-addons) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card .card-row { grid-template-columns: 1fr 1fr; }
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card .card-row > .card-actions { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  #calc-root #tv-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name tag" "mkt mkt" "price pbox" "row row" "msg msg";
  }
  body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .card-row { padding: 14px 0 0 !important; margin-top: 14px !important; border-left: 0 !important; border-top: 1px solid var(--dn-line, #e2e9ef) !important; grid-template-columns: 1fr 1fr; }
  body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .card-row > .card-actions { grid-column: 1 / -1; }
  body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .card-row > :not(.card-actions) { grid-column: auto; }
}
@media (max-width: 767.98px) {
  #calc-root .container > .d-flex:first-child { padding: 10px; gap: 10px !important; border-radius: 16px; margin-bottom: 20px !important; }
  #calc-root .container > .d-flex:first-child > .d-flex:first-child { width: 100%; justify-content: space-between; }
  #calc-root #btnClear { margin-left: 0 !important; padding: 8px !important; }
  #calc-root #currencyLiveDisplay { flex: 1; justify-content: space-between; }
  #calc-root #boxArea > .row > .col-md-6 + .col-md-6 { margin-top: 24px; }
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card .card-row { grid-template-columns: 1fr 1fr; }
  .dn-ui #calc-root .pkg-logo-name { display: block; font-size: 10px; line-height: 1.2; text-align: center; color: var(--dn-muted, #5d6f80); width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #calcCartPanel { right: 12px !important; }
}
@media (max-width: 575.98px) {
  #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  #calc-root .container > .d-flex:first-child { position: static; }
  #calc-root label[for="globalTerm"] { display: none; }
  #calc-root .dn-seg { width: 100%; }
  #calc-root .dn-seg button { flex: 1; padding: 10px 6px; }
  #calc-root .container > .d-flex:first-child > .d-flex:first-child { flex: 1 1 100%; }
  #calc-root #currencyLiveDisplay strong { font-size: 18px; }
  body #calc-root .service-card { padding: 16px !important; }
  body #calc-root .service-card .speed-num { font-size: 30px !important; }
  body #calc-root .service-card .price { font-size: 26px !important; }
  body #calc-root .service-card:has(.srv-toggle:checked)::after { top: -8px; right: -6px; }
}
@media (max-width: 380px) {
  body #calc-root .service-card .internet-speed-short { flex-direction: column; }
  body #calc-root .service-card .internet-speed-short .speed-col + .speed-col,
  body #calc-root .service-card .internet-speed-short .speed-plus + .speed-col { border-left: 0; border-top: 1px solid var(--dn-blue-100, #d8edf8); }
  #calc-root #currencyLiveDisplay { flex-wrap: wrap; }
}

/* ---- refinements after browser review (/internet) ---- */
.dn-ui .container { max-width: var(--dn-container) !important; margin-inline: auto !important; padding-inline: 20px; }
body #calc-root .service-card { grid-template-areas: "tag tag" "name name" "metric metric" "mkt mkt" "speeds speeds" "price price" "pbox pbox" "row row" "msg msg" "ch ch"; }
body #calc-root .service-card .badge { justify-self: start; margin-bottom: 8px; }
body #calc-root .service-card .internet-speed-short small br { display: inline; }
body #calc-root .service-card .internet-speed-short .speed-col { padding: 12px 10px 11px 12px; align-items: start; grid-template-rows: auto 1fr; align-content: start; }
body #calc-root .service-card .internet-speed-short .speed-unit { align-self: end; }
body #calc-root .service-card .card-row { grid-template-columns: 1fr; gap: 2px !important; }
body #calc-root .service-card .card-row > .card-actions { margin-bottom: 8px; }
body #calc-root .service-card .card-row .btn { justify-content: space-between; min-height: 34px; padding: 6px 10px !important; white-space: nowrap; text-align: left; }
body #calc-root .service-card .card-row .srv-goto::after { margin-left: auto; }
body #calc-root .service-card .card-row :is(.srv-speeds, .srv-channels) { justify-content: flex-start; }

/* ---- refinements after browser review (/tv) ---- */
body #calc-root .service-card { grid-template-rows: auto auto auto 1fr auto auto auto auto auto auto; }
body #calc-root .service-card .internet-marketing { align-self: start; }
body #calc-root .service-card[data-box="tv"] .channel-count-badge { background: linear-gradient(120deg, var(--dn-navy, #0a1b2a), var(--dn-navy-2, #10304a)); border: 0; padding: 14px 16px; }
body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-num { color: #fff !important; font-size: 38px !important; }
body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-unit { color: var(--dn-orange, #fcb13e) !important; }
body #calc-root .service-card .pkg-channels.open { max-height: 300px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-right: 4px; }
#calc-root :is(#tv-main, #tv-addons, #box-addons, #serviceArea):has(.pkg-channels.open) { align-items: start; }
#calc-root :is(#tv-main, #tv-addons, #box-addons, #serviceArea):has(.pkg-channels.open) .service-card { height: auto; }

/* ---- refinements after browser review (/box) ---- */
body #calc-root #boxArea :is(#box-left, #box-right) .service-card { grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) auto; grid-template-rows: none; grid-template-areas: "name name price" "tag tag pbox" "metric mkt mkt" "speeds speeds speeds" "row row row" "msg msg msg" "ch ch ch"; column-gap: 16px; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .internet-marketing { margin-top: 14px !important; align-self: center; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .internet-speed-short .speed-col { padding: 10px 8px 9px 10px; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .speed-num { font-size: 28px !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] .channel-count-badge { align-self: start; display: flex !important; align-items: center !important; }
body #calc-root #boxArea .service-card:is([data-box="real_ip"], [data-box="receivers"]) { grid-template-columns: minmax(0, 1fr) minmax(220px, 260px); grid-template-rows: none; grid-template-areas: "tag tag" "name name" "mkt mkt" "price row" "pbox row" "msg msg"; column-gap: 16px; }
body #calc-root #boxArea .service-card:is([data-box="real_ip"], [data-box="receivers"]) .card-row { padding: 0 !important; border: 0 !important; margin-top: 14px !important; align-self: end; }
body #calc-root #boxArea .service-card:is([data-box="real_ip"], [data-box="receivers"]) .price { align-self: end; margin-top: 14px !important; }
@media (max-width: 1199.98px) {
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "tag pbox" "metric metric" "mkt mkt" "speeds speeds" "row row" "msg msg" "ch ch"; }
}
@media (max-width: 575.98px) {
  body #calc-root #boxArea .service-card:is([data-box="real_ip"], [data-box="receivers"]) { grid-template-columns: 1fr; grid-template-areas: "tag" "name" "mkt" "price" "pbox" "row" "msg"; }
}

/* ---- "+" between the two speeds ---- */
body #calc-root .service-card .internet-speed-short .speed-plus {
  display: grid !important;
  place-items: center;
  flex: 0 0 24px;
  width: 24px; height: 24px;
  align-self: center;
  margin: 0 -12px !important;
  position: relative; z-index: 1;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--dn-blue-100, #d8edf8);
  color: var(--dn-blue, #2a96c8) !important;
  font-size: 15px !important; font-weight: 800 !important; line-height: 1 !important;
  box-shadow: 0 2px 6px rgb(15 34 51 / 8%);
}
body #calc-root .service-card .internet-speed-short .speed-col { padding-right: 16px; }
body #calc-root .service-card .internet-speed-short .speed-plus + .speed-col { padding-left: 18px; }
body #calc-root .service-card .internet-speed-short small { width: min-content; max-width: 100%; }

/* ---- price followed by "/ месечен абонамент" (badge text) ---- */
body #calc-root .service-card .badge {
  grid-area: tag;
  justify-self: start; align-self: end;
  display: block !important;
  margin: 0 !important;
  padding: 0 0 2px 6px !important;
  border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important;
  text-transform: lowercase !important; letter-spacing: 0 !important;
  font-size: 14px !important; font-weight: 500 !important;
  color: var(--dn-muted, #5d6f80) !important;
  white-space: nowrap;
}
body #calc-root .service-card .badge::before { content: "/\00a0"; }
body #calc-root .service-card .badge.text-bg-success { color: var(--dn-muted, #5d6f80) !important; }

/* tiles: internet, tv, add-on packages */
body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "name name" "metric metric" "mkt mkt" "speeds speeds" "price tag" "pbox pbox" "row row" "msg msg" "ch ch";
  grid-template-rows: auto auto 1fr auto auto auto auto auto auto;
  column-gap: 0;
}
body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .badge {
  align-self: stretch; justify-self: stretch;
  display: flex !important; align-items: flex-end;
  margin-top: 16px !important; padding-top: 14px !important;
  border-top: 1px solid var(--dn-line, #e2e9ef) !important;
}

/* row cards: real IP, receivers */
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px);
  grid-template-areas: "name name row" "mkt mkt row" "price tag row" "msg msg msg";
}
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .badge { margin-top: 12px !important; }

/* bundle builder */
body #calc-root #boxArea :is(#box-left, #box-right) .service-card {
  grid-template-areas: "name name price" "pbox pbox tag" "metric mkt mkt" "speeds speeds speeds" "row row row" "msg msg msg" "ch ch ch";
}
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .badge { justify-self: end; padding: 4px 0 0 !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .price-box { text-align: left !important; justify-self: start; }
body #calc-root #boxArea .service-card:is([data-box="real_ip"], [data-box="receivers"]) {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 260px);
  grid-template-areas: "name name name" "mkt mkt mkt" "price tag row" "pbox pbox row" "msg msg msg";
}
body #calc-root #boxArea .service-card:is([data-box="real_ip"], [data-box="receivers"]) .badge { align-self: end; }

@media (max-width: 1199.98px) {
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card { grid-template-areas: "name price" "pbox tag" "metric metric" "mkt mkt" "speeds speeds" "row row" "msg msg" "ch ch"; }
}
@media (max-width: 991.98px) {
  body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "mkt mkt" "price tag" "row row" "msg msg"; }
}
@media (max-width: 575.98px) {
  body #calc-root #boxArea .service-card:is([data-box="real_ip"], [data-box="receivers"]) { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "name name" "mkt mkt" "price tag" "pbox pbox" "row row" "msg msg"; }
}

/* ---- smaller price so "/ месечен абонамент" fits next to it ---- */
body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .price { font-size: 25px !important; }
body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .badge { font-size: 13px !important; padding-left: 5px !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .price { font-size: 25px !important; }
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .price { font-size: 22px !important; }

/* ---- no icon before the internet highlight ---- */
body #calc-root .service-card[data-box="internet"] .internet-marketing-icon { display: none !important; }

/* ---- internet: "Виж детайли" opens right under its button, before "Към Комбинирани пакети" ---- */
body #calc-root #serviceArea .service-card[data-box="internet"] {
  grid-template-areas: "name name" "metric metric" "mkt mkt" "price tag" "pbox pbox" "act act" "sbtn sbtn" "speeds speeds" "goto goto" "msg msg" "ch ch";
  grid-template-rows: auto auto 1fr auto auto auto auto auto auto auto auto;
}
body #calc-root #serviceArea .service-card[data-box="internet"] .card-row { display: contents !important; }
body #calc-root #serviceArea .service-card[data-box="internet"] .card-row > .card-actions { grid-area: act; margin: 14px 0 8px !important; }
body #calc-root #serviceArea .service-card[data-box="internet"] .card-row > .srv-speeds { grid-area: sbtn; }
body #calc-root #serviceArea .service-card[data-box="internet"] .card-row > .srv-goto { grid-area: goto; margin-top: 2px; }
body #calc-root #serviceArea .service-card[data-box="internet"] .inet-speeds.open { margin: 4px 0 6px !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card {
  grid-template-areas: "name name price" "pbox pbox tag" "metric mkt mkt" "row row row" "speeds speeds speeds" "msg msg msg" "ch ch ch";
}
@media (max-width: 1199.98px) {
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card { grid-template-areas: "name price" "pbox tag" "metric metric" "mkt mkt" "row row" "speeds speeds" "msg msg" "ch ch"; }
}
body #calc-root .service-card .inet-speeds.pkg-channels { grid-area: speeds; }

/* ---- box: internet "Виж детайли" opens under its button, before "Към Интернет" ---- */
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] {
  grid-template-areas: "name name price" "pbox pbox tag" "metric mkt mkt" "act sbtn sbtn" "speeds speeds speeds" "goto goto goto" "msg msg msg" "ch ch ch";
}
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row { display: contents !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .card-actions { grid-area: act; margin-top: 14px !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .srv-speeds { grid-area: sbtn; margin-top: 14px; align-self: center; justify-content: flex-start; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .srv-goto { grid-area: goto; margin-top: 6px; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .inet-speeds.open { margin: 10px 0 0 !important; }
@media (max-width: 1199.98px) {
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] { grid-template-areas: "name price" "pbox tag" "metric metric" "mkt mkt" "act act" "sbtn sbtn" "speeds speeds" "goto goto" "msg msg" "ch ch"; }
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .srv-speeds { margin-top: 6px; }
}
body #calc-root .service-card[data-box="internet"] .internet-marketing-title { font-weight: 400 !important; color: var(--dn-ink-2, #2b4054) !important; }
body #calc-root .service-card[data-box="internet"] .internet-marketing { justify-content: center !important; text-align: center; } body #calc-root .service-card[data-box="internet"] .internet-marketing > div:last-child { flex: 0 1 auto !important; }

/* ---- IP addresses: real and internal side by side ---- */
#calc-root :is(#internet-real-ips, #box-real-ips) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
#calc-root #boxArea > .row:has(#box-real-ips) > .col-md-6 { flex: 0 0 100%; max-width: 100%; width: 100%; }
#calc-root #boxArea > .row:has(#box-real-ips) > .col-md-6 + .col-md-6 { margin-top: 28px; }
body #calc-root .service-card[data-box="real_ip"] {
  grid-template-columns: auto minmax(0, 1fr) minmax(200px, 240px) !important;
  grid-template-areas: "name name name" "mkt mkt mkt" "price tag row" "pbox pbox row" "msg msg msg" !important;
  column-gap: 16px;
}
body #calc-root .service-card[data-box="real_ip"] .card-row { padding: 0 !important; border: 0 !important; margin-top: 14px !important; align-self: end; }
body #calc-root .service-card[data-box="real_ip"] .price { align-self: end; margin-top: 14px !important; }
@media (max-width: 991.98px) {
  #calc-root :is(#internet-real-ips, #box-real-ips) { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 575.98px) {
  body #calc-root .service-card[data-box="real_ip"] { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-areas: "name name" "mkt mkt" "price tag" "pbox pbox" "row row" "msg msg" !important; }
}
body #calc-root .service-card[data-box="real_ip"] { grid-template-columns: auto minmax(0, 1fr) minmax(0, 200px) !important; column-gap: 12px; } body #calc-root .service-card[data-box="real_ip"] .badge { white-space: normal; }
body #calc-root .service-card[data-box="real_ip"] { grid-template-columns: minmax(0, 1fr) 236px !important; grid-template-areas: "name name" "mkt mkt" "price row" "tag row" "pbox row" "msg msg" !important; grid-template-rows: auto auto auto 1fr auto auto !important; } body #calc-root .service-card[data-box="real_ip"] .badge { justify-self: start !important; align-self: start !important; padding: 4px 0 0 !important; } body #calc-root .service-card[data-box="real_ip"] .card-row { align-self: center !important; }
body #calc-root .service-card[data-slug="nat-ip-address"] .qty-wrap { display: none !important; }
body #calc-root .service-card[data-box="real_ip"] { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-areas: "name name" "mkt mkt" "price tag" "pbox pbox" "row row" "msg msg" !important; grid-template-rows: auto auto auto auto 1fr auto !important; column-gap: 0 !important; } body #calc-root .service-card[data-box="real_ip"] .badge { align-self: end !important; padding: 0 0 2px 6px !important; white-space: nowrap !important; } body #calc-root .service-card[data-box="real_ip"] .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-self: end !important; } body #calc-root .service-card[data-box="real_ip"] .card-row > * { grid-column: auto !important; margin: 0 !important; } body #calc-root .service-card[data-slug="nat-ip-address"] .card-row > .card-actions { grid-column: 1 / -1 !important; }
body #calc-root .service-card .card-row .srv-speeds::before { content: "\f05a" !important; font-size: 13px; } body #calc-root .service-card[data-slug="real-ip-address"] .internet-marketing-icon i::before { content: "\f05a" !important; }
body #calc-root .service-card .form-switch:not(:has(.srv-toggle:disabled))::before { content: none !important; display: none !important; }
body #calc-root .service-card[data-slug="nat-ip-address"] .form-switch:has(.srv-toggle:checked) .form-check-label { font-size: 0 !important; } body #calc-root .service-card[data-slug="nat-ip-address"] .form-switch:has(.srv-toggle:checked) .form-check-label::after { content: "Включен в плана"; font-size: 15px; }
body #calc-root .service-card .internet-speed-short .speed-plus { font-size: 0 !important; color: transparent !important; background: linear-gradient(var(--dn-blue, #2a96c8), var(--dn-blue, #2a96c8)) center / 10px 2px no-repeat, linear-gradient(var(--dn-blue, #2a96c8), var(--dn-blue, #2a96c8)) center / 2px 10px no-repeat, #fff !important; }
body #calc-root .service-card .channel-count-badge .speed-unit::before { content: none !important; display: none !important; }
body #calc-root .service-card[data-box="receivers"] { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-areas: "name name" "mkt mkt" "price tag" "pbox pbox" "row row" "msg msg" !important; grid-template-rows: auto auto auto auto 1fr auto !important; column-gap: 0 !important; } body #calc-root .service-card[data-box="receivers"] .price { align-self: end !important; margin-top: 14px !important; padding: 0 !important; border: 0 !important; } body #calc-root .service-card[data-box="receivers"] .badge { align-self: end !important; margin: 0 !important; padding: 0 0 2px 6px !important; white-space: nowrap !important; } body #calc-root .service-card[data-box="receivers"] .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-self: end !important; padding: 0 !important; border: 0 !important; margin-top: 14px !important; max-width: 560px; } body #calc-root .service-card[data-box="receivers"] .card-row > * { grid-column: auto !important; margin: 0 !important; } body #calc-root .service-card[data-box="receivers"] .card-row > .srv-goto { grid-column: 1 / -1 !important; margin-top: 4px !important; }
body #calc-root .service-card[data-box="receivers"] { grid-template-columns: auto minmax(0, 1fr) minmax(220px, 300px) !important; grid-template-areas: "name name row" "mkt mkt row" "price tag row" "pbox pbox row" "msg msg msg" !important; grid-template-rows: auto auto auto 1fr auto !important; } body #calc-root .service-card[data-box="receivers"] .card-row { grid-template-columns: 1fr !important; align-self: center !important; margin: 0 0 0 20px !important; padding: 0 0 0 20px !important; border-left: 1px solid var(--dn-line, #e2e9ef) !important; max-width: none; gap: 8px !important; } body #calc-root .service-card[data-box="receivers"] .card-row > * { grid-column: 1 / -1 !important; } body #calc-root .service-card[data-box="receivers"] .card-row > .srv-goto { margin-top: 0 !important; } @media (max-width: 767.98px) { body #calc-root .service-card[data-box="receivers"] { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-areas: "name name" "mkt mkt" "price tag" "pbox pbox" "row row" "msg msg" !important; } body #calc-root .service-card[data-box="receivers"] .card-row { margin: 14px 0 0 !important; padding: 0 !important; border-left: 0 !important; } }
body #calc-root .service-card[data-box="tv"] .internet-marketing-icon { display: none !important; }
body #calc-root .service-card[data-box="tv"] .channel-count-badge { background: linear-gradient(120deg, var(--dn-orange, #fcb13e), var(--dn-orange-600, #e59a22)) !important; border: 0 !important; } body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-num, body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-unit { color: #fff !important; }
body #calc-root .service-card[data-box="tv"] .channel-count-badge { background: linear-gradient(120deg, var(--dn-blue, #2a96c8), var(--dn-blue-600, #1f7aa3)) !important; }
body #calc-root .service-card[data-box="tv"] .channel-count-badge { background: linear-gradient(135deg, var(--dn-blue-50, #eef7fc), #f7fbfe) !important; border: 1px solid var(--dn-blue-100, #d8edf8) !important; } body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-num { color: var(--dn-blue-600, #1f7aa3) !important; } body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-unit { color: var(--dn-blue, #2a96c8) !important; }
body #calc-root .service-card[data-box="tv"] .channel-count-badge { background: linear-gradient(120deg, var(--dn-orange, #fcb13e), var(--dn-orange-600, #e59a22)) !important; border: 0 !important; } body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-num { color: var(--dn-blue-700, #165f80) !important; } body #calc-root .service-card[data-box="tv"] .channel-count-badge .speed-unit { color: var(--dn-blue-700, #165f80) !important; }
body #calc-root .service-card[data-box="addons"] .internet-marketing-icon { display: none !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] { grid-template-areas: "name name price" "pbox pbox tag" "metric mkt mkt" "act . ." "sbtn sbtn sbtn" "speeds speeds speeds" "goto goto goto" "msg msg msg" "ch ch ch"; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .srv-speeds { margin-top: 6px !important; justify-self: start; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] { grid-template-areas: "name name price" "pbox pbox tag" "metric row row" "mkt mkt mkt" "msg msg msg" "ch ch ch" !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; align-self: center; align-content: center; margin: 14px 0 0 !important; padding: 0 !important; border: 0 !important; gap: 4px 8px !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] .card-row > .card-actions { grid-column: 1 / -1 !important; margin: 0 0 4px !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] .card-row > .btn { grid-column: auto !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] .internet-marketing { margin-top: 16px !important; padding-top: 14px !important; border-top: 1px solid var(--dn-line, #e2e9ef) !important; } @media (max-width: 1199.98px) { body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] { grid-template-areas: "name price" "pbox tag" "metric metric" "row row" "mkt mkt" "msg msg" "ch ch" !important; } }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] { grid-template-areas: "name name price" "pbox pbox tag" "metric act act" "metric sbtn goto" "speeds speeds speeds" "mkt mkt mkt" "msg msg msg" "ch ch ch" !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .card-actions { margin-top: 14px !important; align-self: end; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .srv-speeds { margin-top: 4px !important; justify-self: stretch; align-self: start; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .card-row > .srv-goto { margin-top: 4px !important; align-self: start; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .internet-speed-short { align-self: center; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .internet-marketing { margin-top: 16px !important; padding-top: 14px !important; border-top: 1px solid var(--dn-line, #e2e9ef) !important; } @media (max-width: 1199.98px) { body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] { grid-template-areas: "name price" "pbox tag" "metric metric" "act act" "sbtn goto" "speeds speeds" "mkt mkt" "msg msg" "ch ch" !important; } }

/* ---- /box: layout from owner's mockup (internet + tv) ---- */
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) {
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) auto !important;
  grid-template-areas: "name name price" "pbox pbox tag" "metric . ." "mkt mkt mkt" "act act ." "sbtn . goto" "speeds speeds speeds" "msg msg msg" "ch ch ch" !important;
  grid-template-rows: none !important;
}
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .card-row { display: contents !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .card-row > .card-actions { grid-area: act; margin: 16px 0 4px !important; width: min(290px, 100%); align-self: start; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .card-row > :is(.srv-speeds, .srv-channels) { grid-area: sbtn; margin: 0 !important; width: auto !important; justify-self: start; align-self: center; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .card-row > .srv-goto { grid-area: goto; margin: 0 !important; width: auto !important; justify-self: end; align-self: center; gap: 10px; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .internet-marketing { margin-top: 12px !important; padding-top: 0 !important; border-top: 0 !important; justify-content: flex-start !important; text-align: left !important; align-self: start; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .internet-marketing > div:last-child { flex: 1 1 auto !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) :is(.internet-speed-short, .channel-count-badge) { align-self: start; }
@media (max-width: 575.98px) {
  body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) { grid-template-columns: minmax(0, 1fr) auto !important; grid-template-areas: "name price" "pbox tag" "metric metric" "mkt mkt" "act act" "sbtn goto" "speeds speeds" "msg msg" "ch ch" !important; }
}
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .card-row > .card-actions { grid-area: act !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .card-row > :is(.srv-speeds, .srv-channels) { grid-area: sbtn !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .card-row > .srv-goto { grid-area: goto !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) auto auto !important; grid-template-areas: "name name price tag" "pbox pbox pbox pbox" "metric . . ." "mkt mkt mkt mkt" "act act . ." "sbtn . goto goto" "speeds speeds speeds speeds" "msg msg msg msg" "ch ch ch ch" !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .badge { justify-self: start !important; align-self: center !important; padding: 6px 0 0 6px !important; margin: 0 !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .price { align-self: center !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .price-box { margin-top: 2px !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) { grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) auto !important; grid-template-areas: "name name price" "pbox pbox tag" "metric . ." "mkt mkt mkt" "act act ." "sbtn . goto" "speeds speeds speeds" "msg msg msg" "ch ch ch" !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .badge { justify-self: end !important; align-self: start !important; padding: 4px 0 0 !important; margin: 0 !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) .badge::before { content: none !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card .internet-speed-short .speed-num { font-size: 34px !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card .internet-speed-short .speed-col { padding: 12px 16px 11px 12px !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card .internet-speed-short .speed-plus + .speed-col { padding-left: 18px !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .internet-speed-short { width: max-content; max-width: 100%; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card:is([data-box="internet"], [data-box="tv"]) { grid-template-columns: minmax(0, 260px) minmax(0, 1fr) auto !important; } body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="internet"] .internet-speed-short { width: 100% !important; }
#calc-root #boxArea > .row:has(#box-real-ips) > .col-md-6 { flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important; } #calc-root #boxArea > .row:has(#box-real-ips) > .col-md-6 + .col-md-6 { margin-top: 0 !important; } #calc-root #box-real-ips { grid-template-columns: minmax(0, 1fr) !important; } @media (max-width: 991.98px) { #calc-root #boxArea > .row:has(#box-real-ips) > .col-md-6 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; } #calc-root #boxArea > .row:has(#box-real-ips) > .col-md-6 + .col-md-6 { margin-top: 28px !important; } }
body #calc-root #boxArea .service-card[data-box="receivers"] { grid-template-columns: auto minmax(0, 1fr) !important; grid-template-areas: "name name" "mkt mkt" "price tag" "pbox pbox" "row row" "msg msg" !important; grid-template-rows: auto auto auto auto 1fr auto !important; } body #calc-root #boxArea .service-card[data-box="receivers"] .card-row { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; margin: 14px 0 0 !important; padding: 0 !important; border-left: 0 !important; align-self: end !important; } body #calc-root #boxArea .service-card[data-box="receivers"] .card-row > * { grid-column: auto !important; }
body #calc-root .service-card .badge::before { content: none !important; } body #calc-root .service-card .price, body #calc-root .service-card .badge { align-self: baseline !important; } body #calc-root .service-card .badge { padding-bottom: 0 !important; padding-left: 6px !important; } body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .badge { display: block !important; }
body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .badge { position: relative; top: 1px; }
body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .badge { align-self: stretch !important; display: flex !important; align-items: flex-end !important; padding-bottom: 0 !important; } body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .price { align-self: stretch !important; align-items: flex-end !important; }
#calc-root #internet-real-ips > :has(.service-card[data-slug="nat-ip-address"]), #calc-root #box-real-ips > .service-card[data-slug="nat-ip-address"] { order: -1; }
#calc-root :is(#tv-addons, #box-addons) { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } @media (max-width: 575.98px) { #calc-root :is(#tv-addons, #box-addons) { grid-template-columns: minmax(0, 1fr) !important; } }
body #calc-root .pkg-logos { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important; gap: 8px !important; } body #calc-root .pkg-logo-wrap { gap: 5px; } body #calc-root .pkg-logos img { height: 56px !important; padding: 8px 10px !important; border-radius: 12px !important; background: #fff !important; } body #calc-root .pkg-logo-name { display: block !important; width: 100%; font-size: 11px; line-height: 1.25; text-align: center; color: var(--dn-muted, #5d6f80); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; order: 2; } body #calc-root .service-card .pkg-channels.open { max-height: 360px; }
body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .badge { position: relative; top: -4px; } body #calc-root .service-card:is([data-box="real_ip"], [data-box="receivers"]) .badge { top: -3px !important; }
body #calc-root :is(#serviceArea, #tv-main, #tv-addons, #box-addons) .service-card .badge { top: 0 !important; padding-bottom: 4px !important; }
body #calc-root .service-card .channel-count-badge { flex-direction: column !important; align-items: flex-start !important; gap: 2px !important; } body #calc-root .service-card .channel-count-badge .speed-num { line-height: 1 !important; } body #calc-root .service-card .channel-count-badge .speed-unit { padding: 0 !important; line-height: 1.2 !important; }
body #calc-root #calc-root, body #calc-root :is(#boxArea, #tvArea, #serviceArea) .service-card .channel-count-badge { align-items: flex-start !important; justify-content: center !important; text-align: left !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] .channel-count-badge, body #calc-root #tvArea #tv-main .service-card[data-box="tv"] .channel-count-badge, body #calc-root #tvArea #tv-addons .service-card .channel-count-badge, body #calc-root #boxArea #box-addons .service-card .channel-count-badge { align-items: flex-start !important; }
body #calc-root :is(#boxArea, #tvArea, #serviceArea) .service-card .channel-count-badge .speed-num, body #calc-root #boxArea :is(#box-left, #box-right, #box-addons) .service-card .channel-count-badge .speed-num, body #calc-root #tvArea :is(#tv-main, #tv-addons) .service-card .channel-count-badge .speed-num, body #calc-root :is(#boxArea, #serviceArea) .service-card .internet-speed-short .speed-num, body #calc-root #boxArea :is(#box-left, #box-right) .service-card .internet-speed-short .speed-num { font-size: 34px !important; } body #calc-root :is(#boxArea, #tvArea) .service-card .channel-count-badge .speed-unit { font-size: 13px !important; }
body #calc-root #boxArea :is(#box-left, #box-right) .service-card[data-box="tv"] .channel-count-badge, body #calc-root #tvArea #tv-main .service-card[data-box="tv"] .channel-count-badge, body #calc-root #tvArea #tv-addons .service-card .channel-count-badge, body #calc-root #boxArea #box-addons .service-card .channel-count-badge { flex-direction: row !important; align-items: baseline !important; justify-content: flex-start !important; gap: 6px !important; }
body #calc-root .service-card .internet-marketing-title, body #calc-root .service-card .internet-marketing-text, body #calc-root .service-card .internet-speed-line { font-size: 14px !important; line-height: 1.5 !important; }
body #calc-root .service-card[data-box="internet"] .internet-marketing-title { font-weight: 700 !important; color: var(--dn-ink, #0f2233) !important; }

/* price + "месечен абонамент" on one baseline */
body #calc-root :is(#serviceArea,#tv-main,#tv-addons,#box-addons) .service-card .badge{transform:translateY(2.5px)!important}
body #calc-root :is(#internet-real-ips,#tv-receivers,#box-real-ips,#box-receivers) .service-card .badge{transform:translateY(3.5px)!important}

/* price + "месечен абонамент": real typographic baseline (replaces the translateY rules) */
body #calc-root :is(#serviceArea,#tv-main,#tv-addons,#box-addons,#internet-real-ips,#tv-receivers,#box-real-ips,#box-receivers) .service-card .card-price-col > :is(.price,.badge){align-self:last baseline!important;transform:none!important;top:0!important}

/* price + "месечен абонамент": same top line AND same text baseline (badge gets an invisible strut with the price's font size) */
body #calc-root :is(#serviceArea,#tv-main,#tv-addons,#box-addons) .service-card .card-price-col > :is(.price,.badge){align-self:start!important;display:block!important;transform:none!important;top:0!important}
body #calc-root :is(#serviceArea,#tv-main,#tv-addons,#box-addons) .service-card .card-price-col > .price{line-height:var(--dn-price-fs,25px)!important}
body #calc-root :is(#serviceArea,#tv-main,#tv-addons,#box-addons) .service-card .card-price-col > .badge{line-height:1!important;padding-bottom:0!important;text-align:left!important}
body #calc-root :is(#serviceArea,#tv-main,#tv-addons,#box-addons) .service-card .card-price-col > .badge::before{content:"0"!important;display:inline-block!important;width:0!important;overflow:visible!important;color:transparent!important;font-size:var(--dn-price-fs,25px)!important;line-height:var(--dn-price-fs,25px)!important;font-weight:800!important;margin:0!important;padding:0!important;border:0!important}

/* light orange box (channels in Допълнителни ТВ пакети) — editable from admin theme */
body #calc-root .service-card .channel-count-badge{background:linear-gradient(135deg,var(--dn-orange-50,#fff5e3),var(--dn-orange-50b,#fffaf1));border-color:var(--dn-orange-line,#fbe3b8)}

/* Допълнителни ТВ пакети: channel box like the main TV plans (orange gradient, dark-blue digits) */
body #calc-root .service-card[data-box="addons"] .channel-count-badge{background:linear-gradient(120deg,var(--dn-orange,#fcb13e),var(--dn-orange-600,#e59a22))!important;border:0!important}
body #calc-root .service-card[data-box="addons"] .channel-count-badge :is(.speed-num,.speed-unit){color:var(--dn-blue-700,#165f80)!important}

/* channel box text colour — editable from admin theme */
body #calc-root .service-card:is([data-box="tv"],[data-box="addons"]) .channel-count-badge :is(.speed-num,.speed-unit){color:var(--dn-channels-ink,var(--dn-blue-700,#165f80))!important}

/* internet speed box (90 Mbps + 90 Mbps) — colours editable from admin theme; defaults = current look */
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short{background-image:linear-gradient(135deg,var(--dn-speed-bg,#eef7fc),var(--dn-speed-bg2,#f7fbfe))!important;border-color:var(--dn-speed-line,#d8edf8)!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-col+.speed-col,body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-plus+.speed-col{border-left-color:var(--dn-speed-line,#d8edf8)!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-num{color:var(--dn-speed-num,var(--dn-blue-600,#1f7aa3))!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-unit{color:var(--dn-speed-unit,var(--dn-blue,#2a96c8))!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-col small{color:var(--dn-speed-label,#5d6f80)!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-plus{background-image:linear-gradient(var(--dn-speed-plus,var(--dn-blue,#2a96c8)),var(--dn-speed-plus,var(--dn-blue,#2a96c8))),linear-gradient(var(--dn-speed-plus,var(--dn-blue,#2a96c8)),var(--dn-speed-plus,var(--dn-blue,#2a96c8))),none!important;border-color:var(--dn-speed-line,#d8edf8)!important}

/* "Mbps" at the top, next to the number (calculator: Интернет + Пакети) */
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-col .speed-unit{align-self:start!important;margin-top:2px!important}

/* ===== Mobile fixes (≤575px): term label visible, no horizontal scroll, IP/receivers rows, speed box side by side, /box cards ===== */
@media (max-width:575.98px){
html{overflow-x:clip}
body #calc-root .dn-seg-ready{flex-wrap:wrap!important;row-gap:8px!important}
body #calc-root .dn-seg-ready label[for="globalTerm"]{display:block!important;flex:0 0 100%;margin:0!important;font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--dn-muted,#5d6f80)}
body #calc-root .dn-seg-ready .dn-seg{flex:1 1 100%}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .card-row-grid{grid-template-columns:minmax(0,1fr)!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .card-row-grid>*{grid-column:1/-1!important;min-width:0}
body #calc-root .service-card .qty-wrap{justify-content:space-between;flex-wrap:wrap}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short{flex-direction:row!important;align-items:stretch!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-col{flex:1 1 0!important;min-width:0!important;width:auto!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-plus+.speed-col{border-top:0!important;border-left:1px solid var(--dn-speed-line,#d8edf8)!important}
body #calc-root:not(#dn-a):not(#dn-b) .service-card .internet-speed-short .speed-plus{align-self:center!important;margin:0 -12px!important;position:relative;z-index:1;flex:0 0 24px}
body #calc-root:not(#dn-a) #boxArea :is(#box-left,#box-right) .service-card:is([data-box="internet"],[data-box="tv"]){grid-template-columns:minmax(0,1fr) auto!important;grid-template-areas:"name price" "pbox tag" "metric metric" "mkt mkt" "act act" "sbtn goto" "speeds speeds" "msg msg" "ch ch"!important}
body #calc-root:not(#dn-a) #boxArea :is(#box-left,#box-right) .service-card:is([data-box="internet"],[data-box="tv"]) .card-row>.card-actions{width:100%!important}
body #calc-root:not(#dn-a) #boxArea :is(#box-left,#box-right) .service-card .internet-speed-short{width:100%!important;justify-self:stretch!important}
body #calc-root:not(#dn-a) #boxArea :is(#box-left,#box-right) .service-card .channel-count-badge{justify-self:start!important}
body #calc-root:not(#dn-a) #boxArea :is(#box-left,#box-right) .service-card.is-combo-blocked .price{font-size:16px!important;white-space:nowrap}
body #calc-root:not(#dn-a) #boxArea :is(#box-left,#box-right) .service-card .card-actions .form-check-label{white-space:nowrap}
}

/* Mobile: term + total bar stays visible while scrolling (compact) */
@media (max-width:575.98px){
body #calc-root:not(#dn-a) .container>.d-flex:first-child{position:sticky!important;top:calc(var(--dn-header-h,64px) + 6px)!important;z-index:20;padding:8px 10px!important;gap:6px 8px!important;box-shadow:0 8px 24px rgba(15,34,51,.10)}
body #calc-root:not(#dn-a) .container>.d-flex:first-child .dn-seg-ready{row-gap:4px!important}
body #calc-root:not(#dn-a) .container>.d-flex:first-child .dn-seg-ready label[for="globalTerm"]{font-size:10.5px!important}
body #calc-root:not(#dn-a) .container>.d-flex:first-child .dn-seg button{padding-top:7px!important;padding-bottom:7px!important}
body #calc-root:not(#dn-a) .container>.d-flex:first-child>.btn-outline-secondary{order:2;flex:0 0 auto;margin:0!important;padding:6px 8px!important;font-size:0!important;width:40px;height:40px;justify-content:center}
body #calc-root:not(#dn-a) .container>.d-flex:first-child>.btn-outline-secondary::before{font-size:15px!important;margin:0!important}
body #calc-root:not(#dn-a) .container>.d-flex:first-child>.small.text-muted{order:3;flex:1 1 0!important;min-width:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:nowrap!important;padding:6px 6px 6px 12px!important;gap:8px;min-height:0!important;font-size:0!important}
body #calc-root:not(#dn-a) .container>.d-flex:first-child>.small.text-muted strong{font-size:20px!important;white-space:nowrap}
body #calc-root:not(#dn-a) .container>.d-flex:first-child>.small.text-muted .btn{margin:0!important;padding:6px 10px!important;white-space:nowrap;font-size:13px!important}
}

/* Mobile sticky bar: bigger text */
@media (max-width:575.98px){
body #calc-root:not(#dn-a) .container>.d-flex:first-child .dn-seg-ready label[for="globalTerm"]{font-size:12.5px!important;font-weight:700}
body #calc-root:not(#dn-a) .container>.d-flex:first-child .dn-seg button{font-size:15px!important;padding-top:8px!important;padding-bottom:8px!important}
body #calc-root:not(#dn-a) .container>.d-flex:first-child>.small.text-muted strong{font-size:22px!important}
body #calc-root:not(#dn-a) .container>.d-flex:first-child>.small.text-muted .btn{font-size:14px!important}
}

/* IP addresses + receivers: same divider line above the price as the TV add-on packages (same baseline trick) */
body #calc-root:not(#dn-a) :is(#internet-real-ips,#tv-receivers,#box-real-ips,#box-receivers) .service-card .card-price-col>:is(.price,.badge){border-top:1px solid var(--dn-line,#e2e9ef)!important;padding-top:14px!important;margin-top:16px!important;align-self:start!important;display:block!important;transform:none!important;top:0!important}
body #calc-root:not(#dn-a) :is(#internet-real-ips,#tv-receivers,#box-real-ips,#box-receivers) .service-card .card-price-col>.price{line-height:22px!important}
body #calc-root:not(#dn-a) :is(#internet-real-ips,#tv-receivers,#box-real-ips,#box-receivers) .service-card .card-price-col>.badge{justify-self:stretch!important;line-height:1!important;padding-bottom:0!important;text-align:left!important}
body #calc-root:not(#dn-a) :is(#internet-real-ips,#tv-receivers,#box-real-ips,#box-receivers) .service-card .card-price-col>.badge::before{content:"0"!important;display:inline-block!important;width:0!important;color:transparent!important;font-size:22px!important;line-height:22px!important;font-weight:800!important;margin:0!important;padding:0!important;border:0!important}
