/* ==== AquaSan Porosity – Kalkulačka spotřeby ==== */
/* Vzhled vychází z kalkulačky AquaStop Cream (plugin aquastop-cream-kalkulator). */
.aspk-calc { --gap:16px; --radius:14px; --border:1px solid rgba(0,0,0,.12); --shadow:0 6px 20px rgba(0,0,0,.06);
  --cart-red:#F50E0E; --accent:#2563eb; --btn:#0ea5e9;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;
  color:#1f2937; line-height:1.4; text-align:left;
  max-width:960px; margin:0 auto; padding:16px; border:var(--border); border-radius:var(--radius); box-shadow:var(--shadow); background:#fff; }
.aspk-calc * { box-sizing:border-box; }
.aspk-calc [hidden] { display:none !important; }
.aspk-calc .aspk-row { display:grid; gap:var(--gap); }

/* Neutralizace stylů šablony (Hello Elementor reset apod.) */
.aspk-calc fieldset { border:0; margin:0; padding:0; min-width:0; }
.aspk-calc legend { padding:0; float:none; width:100%; font-size:inherit; }
.aspk-calc label { line-height:1.4; vertical-align:baseline; }

/* Tlačítka */
.aspk-calc .aspk-btn { border:1px solid rgba(0,0,0,.15); background:var(--btn); color:#fff; border-radius:10px; padding:8px 12px; font:inherit; font-weight:700; line-height:1.2; cursor:pointer; text-transform:none; }
.aspk-calc .aspk-btn:hover,
.aspk-calc .aspk-btn:focus { background:var(--btn); color:#fff; filter:brightness(.95); }
.aspk-calc .aspk-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.aspk-calc .aspk-btn:disabled { opacity:.5; cursor:not-allowed; filter:none; }
.aspk-calc .aspk-btn.aspk-btn-del,
.aspk-calc .aspk-btn.aspk-btn-del:hover,
.aspk-calc .aspk-btn.aspk-btn-del:focus { background:#ef4444; }

/* STĚNY */
.aspk-calc .aspk-walls-grid { display:grid; gap:16px; grid-template-columns:1fr; }
.aspk-calc .aspk-walls-footer { display:flex; justify-content:flex-start; margin-top:8px; }
.aspk-calc .aspk-wall { border:var(--border); border-radius:var(--radius); padding:12px; background:#fff; }
.aspk-calc .aspk-wall-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; min-height:36px; }
.aspk-calc .aspk-wall-title { font-weight:800; }
.aspk-calc .aspk-wall-area { font-weight:400; font-size:13px; color:#64748b; margin-left:6px; }

.aspk-calc .aspk-sliders { grid-template-columns:repeat(3, minmax(0, 1fr)); align-items:end; }
.aspk-calc .aspk-field label { display:block; font-weight:600; }
.aspk-calc .aspk-field input[type="range"] { display:block; width:100%; margin:10px 0 0; accent-color:var(--accent); }

/* Způsob přípravy omítky */
.aspk-calc .aspk-method legend { display:block; font-weight:700; margin:28px 0 20px; text-align:center; padding-bottom:10px; }
.aspk-calc .aspk-method-grid { display:grid; grid-template-columns:repeat(2, 1fr); gap:16px; }
.aspk-calc .aspk-method-card { position:relative; display:flex; align-items:center; gap:12px; text-align:left; padding:14px 16px; border:var(--border); border-radius:var(--radius);
  cursor:pointer; font-weight:600; transition:transform .08s ease, box-shadow .08s ease, border-color .08s ease; }
.aspk-calc .aspk-method-num { font-size:40px; font-weight:400; line-height:1; }
.aspk-calc .aspk-method-title { flex:1; }
.aspk-calc .aspk-method-title small { display:block; font-weight:400; font-size:13px; color:#64748b; margin-top:2px; }
.aspk-calc .aspk-method-card:hover { transform:translateY(-1px); box-shadow:0 8px 24px rgba(0,0,0,.08); }
.aspk-calc .aspk-method-card input[type="radio"] { position:absolute; opacity:0; pointer-events:none; }
.aspk-calc .aspk-method-card:has(input[type="radio"]:checked) { border-color:var(--accent); box-shadow:0 0 0 3px rgba(37,99,235,.15); }
.aspk-calc .aspk-method-card:has(input[type="radio"]:focus-visible) { outline:2px solid var(--accent); outline-offset:2px; }

/* Výsledek – červený box */
.aspk-calc .aspk-result { justify-items:center; }
.aspk-calc .aspk-result-card { display:grid; row-gap:6px; place-items:center; text-align:center; background:var(--cart-red); color:#fff; border-radius:14px; padding:16px 20px; margin:30px 0 24px; }
.aspk-calc .aspk-result-title { font-weight:700; font-size:14px; letter-spacing:.02em; text-transform:uppercase; }
.aspk-calc .aspk-result-value { font-size:32px; font-weight:800; line-height:1.1; }
.aspk-calc .aspk-result-sub { font-size:13px; opacity:.9; }

/* Panely (vrstvy omítky, suroviny) */
.aspk-calc .aspk-layers,
.aspk-calc .aspk-materials { margin-bottom:16px; }
.aspk-calc .aspk-panel { padding:16px; border-radius:14px; background:#f8fafc; border:1px solid rgba(0,0,0,.06); }
.aspk-calc .aspk-panel-title { font-weight:800; margin-bottom:10px; text-transform:uppercase; font-size:14px; color:#334155; }
.aspk-calc .aspk-stats { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:8px; }
.aspk-calc .aspk-stats.aspk-stats-3 { grid-template-columns:repeat(3, minmax(0,1fr)); }
.aspk-calc .aspk-stats .box,
.aspk-calc .aspk-pack-stats .box { background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:10px; padding:10px 12px; text-align:center; }
.aspk-calc .aspk-stats .box strong { display:block; font-size:20px; margin-top:2px; }
.aspk-calc .aspk-mat-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.aspk-calc .aspk-mat-list li { display:flex; justify-content:space-between; align-items:center; gap:10px; margin:0; padding:10px 12px; background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:10px; }
.aspk-calc .aspk-mat-list li strong { white-space:nowrap; }

/* Doporučené balení + miniatury */
.aspk-calc .aspk-pack { justify-items:stretch; }
.aspk-calc .aspk-pack-card { padding:16px; border-radius:14px; background:#f8fafc; border:1px solid rgba(0,0,0,.06); }
.aspk-calc .aspk-pack-title { font-weight:800; margin-bottom:6px; text-transform:uppercase; font-size:14px; color:#334155; }
.aspk-calc .aspk-pack-summary { font-weight:600; margin-bottom:8px; }
.aspk-calc .aspk-pack-summary a { color:var(--accent); }
.aspk-calc .aspk-pack-list { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.aspk-calc .aspk-pack-list li { display:grid; grid-template-columns:1fr auto; gap:10px; align-items:center; margin:0; padding:10px 12px; background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:10px; }
.aspk-calc .aspk-pack-list li .left { display:grid; grid-template-columns:auto 1fr; gap:10px; align-items:center; }
.aspk-calc .aspk-pack-list .pack-thumb { width:36px; height:36px; object-fit:contain; border-radius:6px; border:1px solid rgba(0,0,0,.08); background:#f3f4f6; }
.aspk-calc .aspk-pack-list .meta { font-size:13px; color:#334155; opacity:.9; }
.aspk-calc .aspk-pack-list .price { font-weight:700; white-space:nowrap; }
.aspk-calc .aspk-pack-list .actions { display:flex; gap:8px; align-items:center; }
.aspk-calc .aspk-pack-list a.button { display:inline-flex; align-items:center; gap:8px; padding:8px 12px; border-radius:10px; border:1px solid rgba(0,0,0,.12); background:var(--cart-red); color:#fff; text-decoration:none; font-weight:700; line-height:1.2; white-space:nowrap; }
.aspk-calc .aspk-pack-list a.button:hover,
.aspk-calc .aspk-pack-list a.button:focus { color:#fff; filter:brightness(.95); }
.aspk-calc .aspk-pack-list a.button .aspk-icon { width:14px; height:14px; }
.aspk-calc .aspk-pack-list a.button.loading { opacity:.6; pointer-events:none; }
.aspk-calc .aspk-pack-list a.button.added::after { content:"✓"; margin-left:2px; }
.aspk-calc .aspk-pack-list .actions { flex-wrap:wrap; justify-content:flex-end; }
.aspk-calc .aspk-pack-list a.added_to_cart { font-size:13px; font-weight:600; color:var(--accent); text-decoration:underline; padding:0; background:none; border:0; }

/* Spodní statistiky: 2 sloupce nahoře, dole 1 box přes celou šířku */
.aspk-calc .aspk-pack-stats { margin-top:10px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.aspk-calc .aspk-pack-stats:empty { display:none; }
.aspk-calc .aspk-pack-stats .box.full { grid-column:1 / -1; }

@media (max-width: 640px) {
  .aspk-calc .aspk-sliders { grid-template-columns:1fr; }
  .aspk-calc .aspk-stats.aspk-stats-3 { grid-template-columns:1fr; }
  .aspk-calc .aspk-pack-stats { grid-template-columns:1fr; }
  /* Karty způsobu přípravy zůstávají vedle sebe i na mobilu – text se zalomí. */
  .aspk-calc .aspk-method-grid { gap:8px; }
  .aspk-calc .aspk-method-card { padding:10px 8px; font-size:14px; gap:8px; }
  .aspk-calc .aspk-method-num { font-size:38px; }
  .aspk-calc .aspk-pack-list li { grid-template-columns:1fr; }
  .aspk-calc .aspk-pack-list .actions { justify-content:space-between; }
}
