/* TRIDAAGRO calculator #АгроПідбір (OCMOD tridaagro_calc 1.0.0). Everything is under .tcl / .tcl-modal with tcl- classes; the
   first screen uses the homepage's tdh- classes (tridaagro_home: home.css). */
.tcl, .tcl-modal { --tcl-green: #008032; --tcl-green-2: #21941f; --tcl-soft: #e8f6e5; --tcl-line: #e3e6eb; --tcl-ink: #1d2420; --tcl-muted: #5f6b64; --tcl-warn: #fff6dc; --tcl-warn-line: #f0d68a; color: var(--tcl-ink); }
.tcl { max-width: 1040px; margin: 0 auto; padding: 4px 0 24px; font-family: inherit; }
.tcl *, .tcl *::before, .tcl *::after, .tcl-modal *, .tcl-modal *::before, .tcl-modal *::after { box-sizing: border-box; }
.tcl { scroll-margin-top: 84px; }

/* first screen = the homepage's (tridaagro_home: home.css, home.js, map and «Щойно додано»); the calculator only
   swaps the headline and puts its button where the homepage has the two doors and the search */
.tcl-hero-cta { display: flex; margin-top: 24px; }
.tcl-hero-cta i { font-style: normal; }
@media (max-width: 1023px) {
  .tcl-hero .tdh-hero-in > .tcl-hero-cta { order: 5; margin-top: 12px; }
  .tcl-hero-cta .tdh-btn { flex: 1; }
}

.tcl-grid { display: grid; gap: 16px; }
@media (min-width: 992px) {
  .tcl-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: 24px; }
  .tcl-result { position: sticky; top: 96px; }
}

.tcl-step { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.tcl-step legend, .tcl-legend { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; margin: 0 0 10px; padding: 0; float: none; width: auto; }
.tcl-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--tcl-green); color: var(--tcl-green); font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.tcl-n.is-done { background: var(--tcl-green); color: transparent; position: relative; }
.tcl-n.is-done::after { content: "✓"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }

/* step 1: tiles with the site's category icons, 4 in a row (3 on phones); the long names break at a soft hyphen */
.tcl-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 439px) { .tcl-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tcl-type { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; padding: 8px 4px 9px; border: 1.5px solid var(--tcl-line); border-radius: 12px; background: #fff; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.tcl-type input { position: absolute; opacity: 0; width: 1px; height: 1px; }
/* the icons are drawn on white: multiply lets the chosen tile's tint through */
.tcl .tcl-type img { display: block; width: 100%; max-width: 84px; height: auto; aspect-ratio: 9 / 8; object-fit: contain; mix-blend-mode: multiply; }
.tcl-type span { font-size: 13px; font-weight: 600; line-height: 1.2; -webkit-hyphens: manual; hyphens: manual; }
.tcl-type:hover { border-color: #9ccf95; }
.tcl-type:has(input:checked) { border-color: var(--tcl-green); background: var(--tcl-soft); box-shadow: inset 0 0 0 1px var(--tcl-green); }
.tcl-type:has(input:checked) span { color: #0b5e27; }
.tcl-type:has(input:focus-visible) { outline: 2px solid var(--tcl-green); outline-offset: 2px; }
@media (max-width: 439px) { .tcl-type span { font-size: 12px; } }

.tcl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
/* step 3: the popular countries, then «Ще N країн» opens the rest */
.tcl-chips:not(.is-all) .tcl-chip-more, .tcl-chips.is-all .tcl-more { display: none; }
.tcl .tcl-more { min-height: 44px; margin: 0; padding: 8px 14px; border: 1.5px dashed #9ccf95; border-radius: 12px; background: #fff; color: var(--tcl-green); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.tcl .tcl-more:hover { background: var(--tcl-soft); }
.tcl .tcl-more:focus-visible { outline: 2px solid var(--tcl-green); outline-offset: 2px; }
.tcl .tcl-link { display: inline; margin: 0; padding: 0; border: 0; background: none; color: var(--tcl-green); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.tcl-chip { position: relative; margin: 0; cursor: pointer; }
.tcl-chip input, .tcl-ride input, .tcl-channel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tcl-chip span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--tcl-line); border-radius: 12px; background: #fff; font-size: 15px; font-weight: 500; text-align: center; line-height: 1.2; transition: border-color .15s, background .15s, color .15s; }
.tcl-chip:hover span { border-color: #9ccf95; }
.tcl-chip input:checked + span { border-color: var(--tcl-green); background: var(--tcl-soft); color: #0b5e27; font-weight: 600; }
.tcl-chip input:focus-visible + span, .tcl-channel input:focus-visible + span, .tcl-ride:has(input:focus-visible) { outline: 2px solid var(--tcl-green); outline-offset: 2px; }

.tcl-rides { display: grid; gap: 8px; }
.tcl-ride { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 14px 12px 44px; border: 1.5px solid var(--tcl-line); border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.tcl-ride::before { content: ""; position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid #b9c2bd; border-radius: 50%; background: #fff; }
.tcl-ride:hover { border-color: #9ccf95; }
.tcl-ride:has(input:checked) { border-color: var(--tcl-green); background: var(--tcl-soft); }
.tcl-ride:has(input:checked)::before { border-color: var(--tcl-green); box-shadow: inset 0 0 0 4px #fff; background: var(--tcl-green); }
.tcl-ride-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tcl-ride-name { font-size: 16px; font-weight: 700; }
.tcl-ride-note { font-size: 13px; color: var(--tcl-muted); line-height: 1.35; }
.tcl-ride-price { flex: none; font-size: 15px; font-weight: 700; white-space: nowrap; }
.tcl-hint { margin: 8px 2px 0; font-size: 13px; color: var(--tcl-muted); }

.tcl-price { display: flex; align-items: center; border: 1.5px solid var(--tcl-line); border-radius: 12px; background: #fff; padding: 0 14px; transition: border-color .15s; }
.tcl-price:focus-within { border-color: var(--tcl-green); }
.tcl-price input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 20px; font-weight: 600; color: var(--tcl-ink); }
.tcl-price input::placeholder { color: #9aa49e; font-weight: 400; font-size: 16px; }
.tcl-price span { font-size: 20px; font-weight: 600; color: var(--tcl-muted); }

.tcl-result { background: #fff; border-radius: 18px; box-shadow: 0 4px 18px rgba(0, 0, 0, .10); padding: 16px; scroll-margin-top: 90px; }
.tcl-result-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.tcl-line { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: baseline; gap: 4px 6px; padding: 9px 0; border-bottom: 1px solid #eef0ee; font-size: 15px; }
.tcl-sign { color: var(--tcl-muted); font-weight: 700; text-align: center; }
.tcl-line-label small { display: block; color: var(--tcl-muted); font-size: 12.5px; margin-top: 1px; line-height: 1.35; }
.tcl-line b { font-weight: 600; white-space: nowrap; }
.tcl-line b i { font-style: normal; color: #b0b8b3; }
.tcl-line-sub { background: #f7f9f8; margin: 0 -8px; padding: 9px 8px; border-radius: 8px; border-bottom: 0; }
.tcl-line-sub .tcl-line-label { font-weight: 600; }
.tcl-total { display: flex; flex-direction: column; gap: 2px; margin: 12px 0 12px; padding: 12px 14px; border-radius: 14px; background: #f3f6f4; }
.tcl-total span { font-size: 14px; color: var(--tcl-muted); font-weight: 500; }
.tcl-total b { font-size: 28px; line-height: 1.15; color: var(--tcl-green); }
.tcl-total em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--tcl-ink); }
.is-ready .tcl-total { background: var(--tcl-soft); }
.tcl-pays-title { font-size: 13px; font-weight: 600; color: var(--tcl-muted); margin: 0 0 6px; }
.tcl-result:not(.is-ready) .tcl-pays-title { display: none; }
.tcl-pays { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.tcl-pays:empty { display: none; }
.tcl-pay { display: flex; flex-direction: column; gap: 1px; padding: 8px 6px; border: 1.5px solid var(--tcl-line); border-radius: 12px; text-align: center; }
.tcl-pay span { font-size: 12.5px; font-weight: 600; }
.tcl-pay b { font-size: 14px; white-space: nowrap; }
.tcl-pay small { font-size: 11.5px; color: var(--tcl-muted); }
.tcl-pay.is-main { border-color: var(--tcl-green); }
.tcl-warn { margin: 12px 0 0; padding: 10px 12px; border: 1px solid var(--tcl-warn-line); border-radius: 12px; background: var(--tcl-warn); font-size: 13px; line-height: 1.45; }
.tcl-btn { display: block; width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: 12px; background: var(--tcl-green); color: #fff !important; font: inherit; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none !important; cursor: pointer; }
.tcl-btn:hover { background: var(--tcl-green-2); }
.tcl-btn:disabled { opacity: .6; cursor: default; }
.tcl-or { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; color: var(--tcl-muted); text-align: center; }
.tcl-or a { color: var(--tcl-green) !important; font-weight: 600; }

/* step 5: the optional services as two cards that tick on and off (illustration, name, what it is, price);
   a ticked one is a line of the calculation and part of the total */
.tcl-step legend small { margin-left: 2px; color: var(--tcl-muted); font-size: 13px; font-weight: 500; }
.tcl-adds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tcl-add { position: relative; display: flex; flex-direction: column; align-items: center; margin: 0; padding: 12px 12px 12px; border: 1.5px solid var(--tcl-line); border-radius: 16px; background: #fff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.tcl-add input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tcl-add:hover { border-color: #9ccf95; }
.tcl-add:has(input:checked) { border-color: var(--tcl-green); background: var(--tcl-soft); box-shadow: inset 0 0 0 1px var(--tcl-green); }
.tcl-add:has(input:focus-visible) { outline: 2px solid var(--tcl-green); outline-offset: 2px; }
.tcl-add-pic { display: flex; align-items: center; justify-content: center; width: 100%; height: 104px; margin-bottom: 10px; border-radius: 12px; background: var(--tcl-soft); }
.tcl-add:has(input:checked) .tcl-add-pic { background: #fff; }
.tcl .tcl-add-pic img { display: block; width: auto; max-width: 78%; height: 82px; object-fit: contain; }
.tcl-add b { display: block; font-size: 15px; line-height: 1.25; }
.tcl-add small { display: block; margin-top: 4px; color: var(--tcl-muted); font-size: 13px; line-height: 1.35; }
.tcl-add-price { margin-top: auto; padding-top: 8px; color: var(--tcl-green); font-size: 19px; font-weight: 800; white-space: nowrap; }
/* the switch under the price: «+ Додати до суми» → «✓ Додано» (the words come from calc.js, in the page language) */
.tcl-add-state { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 38px; margin-top: 8px; border: 1.5px solid var(--tcl-green); border-radius: 10px; color: var(--tcl-green); font-size: 14px; font-weight: 700; }
.tcl-add-state::before { content: attr(data-off); }
.tcl-add:has(input:checked) .tcl-add-state { background: var(--tcl-green); color: #fff; }
.tcl-add:has(input:checked) .tcl-add-state::before { content: attr(data-on); }
@media (max-width: 420px) {
  .tcl-add { padding: 10px 8px; }
  .tcl-add-pic { height: 88px; }
  .tcl .tcl-add-pic img { height: 68px; }
  .tcl-add b { font-size: 14px; }
  .tcl-add small { font-size: 12px; }
  .tcl-add-price { font-size: 17px; }
  .tcl-add-state { font-size: 13px; }
  .tcl-add:not(:has(input:checked)) .tcl-add-state::before { content: attr(data-short); }
}

.tcl-bar { display: none; }
@media (max-width: 991.98px) {
  .tcl.is-ready:not(.tcl-result-visible) .tcl-bar { position: fixed; left: 10px; right: 10px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 1040; display: flex; align-items: stretch; gap: 6px; padding: 6px; border-radius: 16px; background: #10301c; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
  .tcl-bar button { border: 0; font: inherit; cursor: pointer; }
  .tcl-bar-sum { flex: 1; min-width: 0; padding: 8px 8px; background: transparent; color: #fff; font-size: 14px; text-align: left; }
  .tcl-bar-sum b { font-size: 16px; }
  .tcl-bar-go { flex: none; padding: 8px 16px; border-radius: 11px; background: #3fbf4a; color: #062b12; font-weight: 700; font-size: 15px; }
}

/* request form: bottom sheet on phones, centred dialog on wider screens */
.tcl-modal { position: fixed; inset: 0; z-index: 12500; /* above the theme's fixed header / phone bottom bar (12100) */ display: flex; align-items: flex-end; justify-content: center; background: rgba(12, 22, 16, .55); }
.tcl-modal[hidden] { display: none; }
html.tcl-modal-open { overflow: hidden; }
.tcl-dialog { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 600px) { .tcl-modal { align-items: center; } .tcl-dialog { border-radius: 18px; } }
.tcl-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tcl-dialog-head h3 { margin: 0; font-size: 19px; font-weight: 700; }
.tcl-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f3f2; font-size: 22px; line-height: 1; cursor: pointer; }
.tcl-summary { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; margin-bottom: 12px; border-radius: 12px; background: var(--tcl-soft); font-size: 14px; }
.tcl-summary b { color: var(--tcl-green); font-size: 16px; }
.tcl-summary em { font-style: normal; color: var(--tcl-muted); }
.tcl-field { display: block; margin: 0 0 10px; border: 0; padding: 0; min-width: 0; }
.tcl-field > span, .tcl-field legend { display: block; margin: 0 0 4px; font-size: 14px; font-weight: 600; float: none; width: auto; padding: 0; }
.tcl-field i { color: #c62828; font-style: normal; }
.tcl-field em { font-style: normal; font-weight: 400; color: var(--tcl-muted); }
.tcl-field input, .tcl-field textarea { display: block; width: 100%; border: 1.5px solid var(--tcl-line); border-radius: 12px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--tcl-ink); background: #fff; }
.tcl-field input:focus, .tcl-field textarea:focus { border-color: var(--tcl-green); outline: 0; }
.tcl-channel { display: flex; flex-wrap: wrap; gap: 8px; }
.tcl-channel legend { width: 100%; }
.tcl-channel label { position: relative; margin: 0; cursor: pointer; }
.tcl-channel span { display: block; padding: 8px 14px; border: 1.5px solid var(--tcl-line); border-radius: 20px; font-size: 14px; font-weight: 500; }
.tcl-channel input:checked + span { border-color: var(--tcl-green); background: var(--tcl-soft); color: #0b5e27; font-weight: 600; }
.tcl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tcl-form-msg { margin-top: 8px; color: #b3261e; font-size: 14px; }
.tcl-form-msg:empty { display: none; }
.tcl-promise { margin: 10px 0 0; font-size: 13px; color: var(--tcl-muted); text-align: center; }
.tcl-done { text-align: center; padding: 8px 0 4px; }
.tcl-ok { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--tcl-soft); color: var(--tcl-green); font-size: 30px; display: flex; align-items: center; justify-content: center; }
.tcl-done h4 { font-size: 19px; font-weight: 700; margin: 0 0 6px; }
.tcl-done p { color: var(--tcl-muted); margin: 0; }
.tcl-btn-plain { background: #f1f3f2; color: var(--tcl-ink) !important; }
.tcl-btn-plain:hover { background: #e4e8e6; }
