/* Hermio – vartų, tvorų ir turėklų skaičiuoklė. Spalvas keiskite čia: */
.hvt {
  --hvt-accent: #d9480f;
  --hvt-accent-ink: #fff;
  --hvt-ink: #1f2933;
  --hvt-muted: #5f6b76;
  --hvt-line: #dfe3e7;
  --hvt-bg: #f6f7f8;
  --hvt-card: #fff;
  --hvt-radius: 10px;
  color: var(--hvt-ink);
  font-size: 16px;
  line-height: 1.5;
}
.hvt *, .hvt *::before, .hvt *::after { box-sizing: border-box; }
.hvt [hidden] { display: none !important; }
.hvt .hvt-h { margin: 0 0 .4em; font-size: 1.35em; line-height: 1.25; }
.hvt .hvt-sub, .hvt .hvt-disc { color: var(--hvt-muted); font-size: .92em; margin: 0 0 1em; }
.hvt .hvt-ico { display: block; color: var(--hvt-ink); }
.hvt .hvt-ico svg { display: block; width: 100%; height: auto; max-height: 90px; }

/* Skaičiuoklė */
#hvt-calc { display: grid; gap: 20px; grid-template-columns: 1fr; scroll-margin-top: 90px; }
@media (min-width: 900px) { #hvt-calc { grid-template-columns: 1.5fr 1fr; align-items: start; } .hvt-cartbox { position: sticky; top: 100px; } }
.hvt-box { background: var(--hvt-bg); border: 1px solid var(--hvt-line); border-radius: var(--hvt-radius); padding: 20px; }
.hvt-step { display: flex; align-items: center; gap: 8px; font-weight: 700; margin: 18px 0 10px; }
.hvt-step span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--hvt-ink); color: #fff; font-size: .85em; }
.hvt-types, .hvt-styles { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.hvt-opt { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: center; background: var(--hvt-card); border: 2px solid var(--hvt-line); border-radius: var(--hvt-radius); padding: 8px; font: inherit; font-size: .88em; line-height: 1.25; color: var(--hvt-ink); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.hvt-opt:hover { border-color: #b9c0c7; }
.hvt-opt.is-on { border-color: var(--hvt-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hvt-accent) 18%, transparent); }
.hvt-opt.is-on .hvt-ico { color: var(--hvt-accent); }
.hvt-opt .hvt-ico svg { max-height: 54px; }
.hvt-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.hvt label { display: flex; flex-direction: column; gap: 4px; font-size: .9em; font-weight: 600; }
.hvt input:not([type=checkbox]), .hvt select, .hvt textarea { width: 100%; font: inherit; font-weight: 400; font-size: 16px; padding: 10px 12px; border: 1px solid #c4cbd2; border-radius: 8px; background: #fff; color: var(--hvt-ink); }
.hvt input:focus, .hvt select:focus, .hvt textarea:focus { outline: 2px solid var(--hvt-accent); outline-offset: 1px; border-color: transparent; }
.hvt .hvt-chk { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; align-self: end; padding: 10px 0; }
.hvt .hvt-chk input { width: 20px; height: 20px; accent-color: var(--hvt-accent); margin: 0; }
.hvt-line { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 12px; padding-top: 14px; border-top: 1px dashed var(--hvt-line); }
.hvt-line strong { font-size: 1.3em; }

.hvt-btn { display: inline-block; width: 100%; text-align: center; background: var(--hvt-accent); color: var(--hvt-accent-ink) !important; border: 0; border-radius: 8px; padding: 13px 18px; font: inherit; font-weight: 700; text-decoration: none !important; cursor: pointer; }
.hvt-btn:hover { filter: brightness(1.08); }
.hvt-btn:disabled { opacity: .45; cursor: not-allowed; }
.hvt-btn--alt { background: var(--hvt-ink); }

/* Sąmata */
.hvt-cart { list-style: none; margin: 0 0 12px; padding: 0; }
.hvt-cart li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; background: var(--hvt-card); border: 1px solid var(--hvt-line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.hvt-cart li small { display: block; color: var(--hvt-muted); font-size: .82em; }
.hvt-cart li span { font-weight: 700; white-space: nowrap; }
.hvt-cart .hvt-empty { display: block; color: var(--hvt-muted); font-style: italic; background: none; border-style: dashed; }
.hvt-x { background: none; border: 0; font-size: 22px; line-height: 1; color: var(--hvt-muted); cursor: pointer; padding: 0 4px; }
.hvt-x:hover { color: #c92a2a; }
.hvt-km { margin-bottom: 12px; }
.hvt-total { background: var(--hvt-ink); color: #fff; border-radius: 8px; padding: 14px; margin-bottom: 10px; }
.hvt-total span { display: block; font-size: .85em; opacity: .8; }
.hvt-total strong { display: block; font-size: 1.6em; line-height: 1.2; }
.hvt-total small { display: block; font-size: .8em; opacity: .8; margin-top: 2px; }
.hvt-send { display: grid; gap: 10px; margin-top: 12px; }
.hvt-hp { position: absolute !important; left: -9999px !important; }
.hvt-msg { margin: 0; font-size: .92em; }
.hvt-msg.is-ok { color: #2b8a3e; font-weight: 600; }
.hvt-msg.is-err { color: #c92a2a; }
.hvt-phone { text-align: center; font-size: .92em; margin: 12px 0 0; }

/* Pavyzdžiai */
.hvt-examples .hvt-h { margin-top: 1.2em; }
.hvt-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-bottom: 10px; }
.hvt-grid--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.hvt-card { background: var(--hvt-card); border: 1px solid var(--hvt-line); border-radius: var(--hvt-radius); padding: 16px; display: flex; flex-direction: column; }
.hvt-card .hvt-ico { background: var(--hvt-bg); border-radius: 8px; padding: 12px 18px; margin-bottom: 10px; }
.hvt-card h4 { margin: 0 0 .3em; font-size: 1.05em; }
.hvt-card p { margin: 0 0 .6em; font-size: .9em; color: var(--hvt-muted); }
.hvt-card .hvt-from { margin-top: auto; color: var(--hvt-ink); }
.hvt-card .hvt-from strong { color: var(--hvt-accent); font-size: 1.15em; }
.hvt-card .hvt-from span { display: block; font-size: .85em; color: var(--hvt-muted); }
.hvt-cta { margin: 16px 0 0; }
.hvt-cta .hvt-btn { width: auto; }
@media (max-width: 600px) {
  .hvt-grid, .hvt-grid--4 { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hvt-card { padding: 10px; }
  .hvt-card .hvt-ico { padding: 6px 10px; }
  .hvt-card .hvt-ico svg { max-height: 60px; }
  .hvt-card p:not(.hvt-from) { font-size: .82em; }
}
/* RAL spalvos */
.hvt .hvt-ral { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.hvt .hvt-lbl { font-size: .9em; font-weight: 600; }
.hvt .hvt-sws { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
.hvt .hvt-sw { flex-direction: row; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--hvt-line); border-radius: 8px; padding: 6px 8px; cursor: pointer; font-weight: 600; line-height: 1.15; }
.hvt .hvt-sw input { position: absolute; opacity: 0; pointer-events: none; }
.hvt .hvt-sw span { min-width: 0; overflow-wrap: anywhere; }
.hvt .hvt-sw i { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); display: grid; place-items: center; font-style: normal; color: var(--hvt-muted); }
.hvt .hvt-sw small { display: block; font-weight: 400; font-size: .78em; color: var(--hvt-muted); }
.hvt .hvt-sw:has(input:checked) { border-color: var(--hvt-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hvt-accent) 18%, transparent); }
.hvt .hvt-sw:has(input:focus-visible) { outline: 2px solid var(--hvt-accent); outline-offset: 1px; }
.hvt .hvt-sw-other { background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 10px 10px; }
