/* Domola – Konwersja. Kolory biorą się z kolorów globalnych Elementora, jeśli są ustawione. */
:root {
	--dmk-primary: var(--e-global-color-primary, #2F5D3A);
	--dmk-text: var(--e-global-color-text, #2A2E2B);
	--dmk-muted: #5E665F;
	--dmk-soft: #F3F6F2;
	--dmk-line: #E1E7E0;
	--dmk-accent: #C9822B;
}

.dmk-ico { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Pasek korzyści ---------- */
.dmk-bar { background: var(--dmk-primary); color: #fff; font-size: 14px; line-height: 1.3; }
.dmk-bar__list { list-style: none; margin: 0 auto; padding: 9px 16px; max-width: 1200px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px; }
.dmk-bar__item { display: flex; align-items: center; gap: 6px; margin: 0; }
.dmk-bar .dmk-ico { width: 16px; height: 16px; flex-basis: 16px; }
@media (max-width: 767px) {
	.dmk-bar__list { display: grid; min-height: 36px; }
	.dmk-bar__item { grid-area: 1 / 1; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .4s; text-align: center; }
	.dmk-bar__item.is-active { opacity: 1; visibility: visible; }
}

/* ---------- Badge ---------- */
.dmk-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.dmk-badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.3; background: var(--dmk-soft); color: var(--dmk-primary); border: 1px solid var(--dmk-line); }
.dmk-badge--cert { background: #fff; border-color: var(--dmk-primary); }
.dmk-badge--hl { background: var(--dmk-accent); border-color: var(--dmk-accent); color: #fff; }

.woocommerce ul.products li.product, .elementor-widget-woocommerce-products li.product { position: relative; }
.dmk-badges--loop { position: absolute; top: 10px; left: 10px; right: 10px; z-index: 3; margin: 0; pointer-events: none; }
.dmk-badges--loop .dmk-badge { font-size: 12px; padding: 3px 8px; background: rgba(255,255,255,.95); }
.dmk-badges--loop .dmk-badge--hl { background: var(--dmk-accent); }
.dmk-compare .dmk-badges--loop { position: static; margin-top: 6px; }

/* ---------- Cena za tonę ---------- */
.dmk-unit { display: inline-block; font-size: .72em; font-weight: 400; color: var(--dmk-muted); white-space: nowrap; }

/* ---------- Box dostawy ---------- */
.dmk-box { list-style: none; margin: 18px 0; padding: 14px 16px; background: var(--dmk-soft); border: 1px solid var(--dmk-line); border-radius: 12px; display: grid; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--dmk-text); }
.dmk-box li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.dmk-box .dmk-ico { color: var(--dmk-primary); margin-top: 1px; }
.dmk-box a { color: var(--dmk-primary); }

/* ---------- Kalkulator ---------- */
.dmk-calc { margin: 18px 0; padding: 16px; border: 1px solid var(--dmk-line); border-radius: 12px; background: #fff; }
.dmk-h3 { font-size: 17px; margin: 0 0 12px; }
.dmk-calc__fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 10px; align-items: end; }
.dmk-calc label { display: grid; gap: 4px; font-size: 14px; color: var(--dmk-muted); }
.dmk-calc input, .dmk-calc select { box-sizing: border-box; width: 100%; max-width: 100%; height: 44px; margin: 0; padding: 8px 10px; border: 1px solid var(--dmk-line); border-radius: 8px; font-size: 16px; color: var(--dmk-text); background: #fff; }
.dmk-calc__res { margin: 12px 0; font-size: 15px; line-height: 1.5; }
.dmk-calc .dmk-calc__btn { display: inline-block; padding: 11px 18px; border-radius: 8px; background: var(--dmk-primary); color: #fff; font-weight: 600; text-decoration: none; line-height: 1.3; }
.dmk-calc .dmk-calc__btn:hover, .dmk-calc .dmk-calc__btn:focus-visible { filter: brightness(1.1); color: #fff; }
.dmk-calc__btn[hidden] { display: none !important; }
.dmk-calc__note { margin: 10px 0 0; font-size: 13px; color: var(--dmk-muted); }
@media (max-width: 480px) { .dmk-calc__fields { grid-template-columns: minmax(0,1fr); } }

/* ---------- Sekcje: Jak zamówić, FAQ ---------- */
.dmk-section { clear: both; max-width: 860px; margin: 40px auto; }
.dmk-h2 { font-size: 24px; line-height: 1.3; margin: 0 0 16px; }
.dmk-steps { counter-reset: dmk; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.dmk-steps li { counter-increment: dmk; margin: 0; padding: 16px; border: 1px solid var(--dmk-line); border-radius: 12px; background: #fff; display: grid; gap: 6px; align-content: start; font-size: 14px; line-height: 1.5; color: var(--dmk-muted); }
.dmk-steps li::before { content: counter(dmk); width: 30px; height: 30px; border-radius: 50%; background: var(--dmk-primary); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.dmk-steps strong { color: var(--dmk-text); font-size: 15px; }

.dmk-faq__item { border-bottom: 1px solid var(--dmk-line); }
.dmk-faq__item summary { cursor: pointer; list-style: none; padding: 14px 32px 14px 0; position: relative; font-weight: 600; font-size: 16px; }
.dmk-faq__item summary::-webkit-details-marker { display: none; }
.dmk-faq__item summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22px; font-weight: 400; color: var(--dmk-primary); }
.dmk-faq__item[open] summary::after { content: "−"; }
.dmk-faq__item summary:focus-visible { outline: 2px solid var(--dmk-primary); outline-offset: 2px; }
.dmk-faq__a { padding: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--dmk-text); }
.dmk-faq__a p { margin: 0 0 8px; }

/* ---------- Koszyk ---------- */
.dmk-cart-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-left: 3px solid var(--dmk-primary); background: var(--dmk-soft); border-radius: 0 10px 10px 0; font-size: 15px; }
.dmk-cart-note .dmk-ico { color: var(--dmk-primary); }

/* ---------- Porównanie ---------- */
.dmk-compare { overflow-x: auto; border: 1px solid var(--dmk-line); border-radius: 12px; }
.dmk-compare table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; }
.dmk-compare th, .dmk-compare td { padding: 12px 14px; text-align: left; vertical-align: middle; border: 0; border-bottom: 1px solid var(--dmk-line); }
.dmk-compare th { background: var(--dmk-soft); font-size: 13px; font-weight: 600; white-space: nowrap; }
.dmk-compare tr.is-best td { background: #FBF6EE; }
.dmk-compare td { white-space: nowrap; }
.dmk-compare td:first-child { white-space: normal; min-width: 210px; font-weight: 600; }
.dmk-compare td:first-child a { text-decoration: none; color: var(--dmk-text); }
.dmk-compare .dmk-badge { white-space: nowrap; }
.dmk-compare__note { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--dmk-muted); }
@media (max-width: 767px) {
	.dmk-compare { border: 0; }
	.dmk-compare thead { display: none; }
	.dmk-compare tr { display: block; margin: 0 0 12px; border: 1px solid var(--dmk-line); border-radius: 12px; overflow: hidden; }
	.dmk-compare td { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; text-align: right; white-space: normal; }
	.dmk-compare td:first-child { min-width: 0; }
	.dmk-compare td[data-label]::before { content: attr(data-label); color: var(--dmk-muted); font-size: 13px; text-align: left; }
	.dmk-compare td:first-child { display: block; text-align: left; font-weight: 600; }
	.dmk-compare td:first-child::before { display: none; }
}
