/*
 * Porovnávač s jedním polem (komponenta compareSearch).
 * Barvy navazují na proměnné z themes/slagcz/assets/css/layout.css (--sn-*).
 */
.cs {
    --cs-ink: var(--sn-ink, #1c2429);
    --cs-ink-2: #3d4a52;
    --cs-muted: var(--sn-muted, #6b7a84);
    --cs-line: var(--sn-line, #e3e8ec);
    --cs-tint: var(--sn-tint, #e8eff3);
    --cs-navy: var(--sn-bar, #1f3f50);
    --cs-orange: var(--sn-orange, #e46305);
    --cs-orange-600: var(--sn-orange-600, #c95604);
    background: #f4f6f8;
    border-top: 1px solid var(--cs-line);
    border-bottom: 1px solid var(--cs-line);
    padding: 64px 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--cs-ink);
}
:where(.cs) * { box-sizing: border-box; }
:where(.cs) :where(h2, p) { margin: 0; }
.cs a, .cs a:hover, .cs a:focus { text-decoration: none; }
.cs-i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cs-box { max-width: 860px; margin: 0 auto; text-align: center; }
.cs-k { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cs-orange); }
.cs h2 { font-family: inherit; font-size: 30px; font-weight: 800; letter-spacing: -.3px; line-height: 1.15; margin: 6px 0 6px; color: var(--cs-ink); text-align: center; }
.cs-sub { color: var(--cs-muted); font-size: 15.5px; margin-bottom: 22px !important; }

.cs-form { position: relative; text-align: left; }
.cs-field {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    min-height: 62px; padding: 7px 7px 7px 18px;
    background: #fff; border: 2px solid var(--cs-navy); border-radius: 16px;
    box-shadow: 0 12px 30px rgba(21, 48, 62, .08);
}
.cs-field:focus-within { box-shadow: 0 0 0 4px rgba(31, 63, 80, .12), 0 12px 30px rgba(21, 48, 62, .08); }
.cs-field > .cs-i { color: var(--cs-muted); }
.cs-field input {
    flex: 1; min-width: 160px; height: 44px; border: 0; outline: 0; background: none;
    font: inherit; font-size: 16.5px; color: var(--cs-ink);
}
.cs-field input::placeholder { color: #98a6af; }
.cs-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; background: var(--cs-tint); color: var(--cs-navy); border-radius: 10px; padding: 6px 6px 6px 11px; font-weight: 700; font-size: 14.5px; }
.cs-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cs-chip button { border: 0; background: none; color: var(--cs-muted); font-size: 19px; line-height: 1; padding: 0 4px; cursor: pointer; }
.cs-chip button:hover { color: var(--cs-ink); }
.cs-vs { font-weight: 800; font-size: 13px; color: var(--cs-orange); }
.cs-chip[hidden], .cs-vs[hidden] { display: none; }

.cs-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 26px; border: 0; border-radius: 12px; cursor: pointer;
    background: var(--cs-orange); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
    box-shadow: 0 6px 16px rgba(228, 99, 5, .28); transition: background .15s;
}
.cs-btn:hover { background: var(--cs-orange-600); }
.cs-btn:disabled { opacity: .6; cursor: default; }

/* napovídání */
.cs-drop {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 20;
    max-height: 420px; overflow-y: auto;
    background: #fff; border: 1px solid var(--cs-line); border-radius: 14px;
    box-shadow: 0 18px 40px rgba(21, 48, 62, .16);
}
.cs-drop[hidden] { display: none; }
.cs-group { padding: 8px 14px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cs-muted); background: #fafbfc; border-top: 1px solid var(--cs-line); }
.cs-group:first-child { border-top: 0; }
.cs-opt { display: flex; align-items: center; gap: 12px; padding: 9px 14px; cursor: pointer; }
.cs-opt + .cs-opt { border-top: 1px solid #f0f3f5; }
.cs-opt.is-active, .cs-opt:hover { background: var(--cs-tint); }
.cs-opt-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--cs-tint); color: var(--cs-navy); display: grid; place-items: center; flex: none; }
.cs-opt.is-active .cs-opt-ic { background: #fff; }
.cs-opt-ic .cs-i { width: 18px; height: 18px; }
.cs-opt-txt { min-width: 0; }
.cs-opt-txt b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.cs-opt-txt small { display: block; color: var(--cs-muted); font-size: 12.5px; line-height: 1.3; }
.cs-opt-price { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; padding-left: 10px; }
.cs-empty { padding: 14px; color: var(--cs-muted); font-size: 14px; }

.cs-hint { margin-top: 12px !important; font-size: 13.5px; color: var(--cs-muted); }
.cs-hint[hidden] { display: none; }
.cs-error { margin-top: 12px !important; font-size: 14px; color: #b42318; font-weight: 600; }
.cs-error[hidden] { display: none; }

.cs-tips { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.cs-tips > span { white-space: nowrap; font-size: 13.5px; font-weight: 600; color: var(--cs-muted); margin-right: 2px; }
.cs-tip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--cs-line); border-radius: 99px; padding: 7px 14px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: border-color .15s; }
a.cs-tip, a.cs-tip:hover, a.cs-tip:focus { color: var(--cs-ink); }
.cs-tip:hover { border-color: var(--cs-navy); }
.cs-tip em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--cs-orange); }

@media (max-width: 600px) {
    .cs { padding: 44px 0; }
    .cs h2 { font-size: 25px; }
    .cs-sub { font-size: 15px; }
    .cs-field { padding: 7px 7px 7px 14px; }
    .cs-field input { min-width: 120px; font-size: 16px; }
    .cs-btn { width: 100%; order: 9; }
    .cs-opt-txt small { display: none; }
    .cs-tips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 20px -15px 0; padding: 0 15px 4px; scrollbar-width: none; }
}

/* jen pole (hero stránky kategorie) - bez pozadí a centrování sekce */
.cs--field { background: none; border: 0; padding: 0; }
.cs--field .cs-box { max-width: none; text-align: left; }
.cs--field .cs-tips { justify-content: flex-start; margin-top: 16px; }
@media (max-width: 600px) {
    .cs--field { padding: 0; }
}
