/* MOOS koszyk v2 — układ z prototypu, typografia strony (DM Sans + Montserrat). */
.moos-cart-v2 .mk {
	--mk-red: #d6191f;
	--mk-wine: #3a1c23;
	--mk-rose: #fff5f7;
	--mk-line: #f6d5dc;
	--mk-muted: #a77b86;
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px 40px;
	color: var(--mk-wine);
	font-family: "DM Sans", system-ui, sans-serif;
}
.moos-cart-v2 .mk [hidden] { display: none !important; }

/* kroki */
.mk-steps { display: flex; justify-content: center; gap: 10px; list-style: none; margin: 8px 0 18px; padding: 0;
	font: 600 12px/1 "Montserrat", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #b98490; }
.mk-steps li { display: flex; align-items: center; gap: 7px; }
.mk-steps li + li::before { content: ""; width: 28px; height: 1px; background: #e2a9b6; margin-right: 3px; }
.mk-steps span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid #e2a9b6; background: #fff; }
.mk-steps .on { color: var(--mk-red); }
.mk-steps .on span { background: var(--mk-red); border-color: var(--mk-red); color: #fff; }
.mk-steps .done span { background: #f6b9c4; border-color: #f6b9c4; color: #fff; }

/* pasek darmowej dostawy */
.mk-free { margin: 0 0 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--mk-line); border-radius: 14px; font-size: 14px; line-height: 1.4; }
.mk-free p { margin: 0 0 8px; }
.mk-free b { color: var(--mk-red); }
.mk-free small { display: block; margin-top: 7px; color: var(--mk-muted); font-size: 12px; }
.mk-free__bar { height: 8px; border-radius: 999px; background: #fbdbe1; overflow: hidden; }
.mk-free__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #f05a6a, var(--mk-red)); transition: width .4s; }
.mk-free.is-done .mk-free__bar span { background: #2e9b55; }
.mk-free.is-done b { color: #2e7d4a; }

/* karty */
.mk-card { margin: 0 0 14px; padding: 18px; background: var(--mk-rose); border-radius: 16px; box-shadow: 0 4px 14px rgba(150, 30, 60, .07); }
.mk-sum { background: #fff; }
.mk-h2 { margin: 0 0 12px; font: 700 18px/1.25 "Montserrat", sans-serif; letter-spacing: 0; color: var(--mk-red); }
.mk-h2.mk-red { margin-left: 0; }

/* lista produktów */
.mk-cols { display: flex; justify-content: space-between; padding-bottom: 8px; border-bottom: 2px solid #f8c9d2; font: 600 11px/1 "Montserrat", sans-serif; letter-spacing: .1em; color: var(--mk-muted); }
.mk-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--mk-line); }
.mk-line:last-of-type { border-bottom: 0; }
.mk-line__img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: #fde7ea; display: block; }
.mk-line__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; line-height: 1.35; }
.mk-line__name, .mk-line__name a { font: 600 15px/1.25 "Montserrat", sans-serif; color: var(--mk-wine); text-decoration: none; }
.mk-line__price { color: var(--mk-red); font-weight: 700; }
.mk-line__ship { color: var(--mk-muted); font-size: 12px; }
.mk-line__sub { font: 700 15px/1.25 "Montserrat", sans-serif; color: var(--mk-red); white-space: nowrap; }
.mk-line__actions { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.mk-qty .quantity { display: inline-flex; border: 1px solid #f1b9c4; border-radius: 999px; background: #fff; overflow: hidden; }
.mk-qty .quantity input.qty { width: 44px; height: 38px; border: 0; background: none; text-align: center; font: 600 14px/1 "Montserrat", sans-serif; -moz-appearance: textfield; padding: 0; }
.mk-qty .quantity input.qty::-webkit-outer-spin-button, .mk-qty .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mk-qty .quantity .ct-increase, .mk-qty .quantity .ct-decrease { width: 34px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--mk-wine); }
.mk-remove { display: grid; place-items: center; width: 34px; height: 34px; color: var(--mk-red); background: none !important; }
.mk-remove svg { width: 20px; height: 20px; }
.mk-update { display: none; }

/* Dobierz — karty z prototypu, bez zaokrągleń */
.mk-pick { margin: 0 0 14px; }
.mk-pick__list { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.mk-pick__list::-webkit-scrollbar { display: none; }
.mk-pick__item { flex: 0 0 min(300px, 86%); display: grid; grid-template-columns: 68px 1fr auto; align-items: center; gap: 12px; padding: 10px; background: #fff; border: 1px solid var(--mk-line); border-radius: 0; scroll-snap-align: start; }
.mk-pick__img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; display: block; }
.mk-pick__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 12px; line-height: 1.3; }
.mk-pick__name { font: 600 13px/1.25 "Montserrat", sans-serif; color: var(--mk-wine); text-decoration: none; }
.mk-pick__desc { color: var(--mk-muted); }
.mk-pick__price, .mk-pick__price * { color: var(--mk-red); font-size: 13px; font-weight: 700; }
.mk-pick__add { padding: 10px 14px; border: 0; border-radius: 0 !important; background: var(--mk-red); color: #fff; font: 600 13px/1 "Montserrat", sans-serif; cursor: pointer; }
.mk-pick__add[disabled] { opacity: .6; }
.mk-pick__all { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; color: var(--mk-red); text-decoration: none; font: 600 13px/1 "Montserrat", sans-serif; }
.mk-pick__all span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: 50%; }
.mk-pick__all svg { width: 13px; height: 13px; }

/* kupony */
.mk-coupons { border-bottom: 1px solid var(--mk-line); padding: 2px 0 14px; }
.mk-coupons summary { display: flex; justify-content: space-between; list-style: none; cursor: pointer; color: var(--mk-red); font: 600 14px/1.4 "Montserrat", sans-serif; }
.mk-coupons summary::-webkit-details-marker { display: none; }
.mk-coupons__row { display: flex; gap: 8px; margin-top: 12px; }
.mk-input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid #efc9d2; border-radius: 12px; background: #fff; font: 400 14px/1 "DM Sans", sans-serif; }
.mk-btn-light { padding: 0 18px; border: 1px solid var(--mk-red); border-radius: 12px; background: #fff; color: var(--mk-red); font: 600 13px/1 "Montserrat", sans-serif; cursor: pointer; }
.mk-btn-light[disabled] { opacity: .6; }
.mk-coupons__hint { margin: 16px 0 0; font: 500 13px/1.35 "DM Sans", sans-serif; color: #8d5a66; }
.mk-coupons__note { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdeef1; font-size: 12.5px; line-height: 1.45; color: #8d5a66; }
.mk-coupons__note b { display: block; margin-top: 5px; color: var(--mk-red); }
.mk-coupons__gift { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #e8f5ec; color: #1d4d37; font-size: 13px; }
.mk-applied { margin: 8px 0 0; font-size: 13px; color: #2e7d4a; }
.mk-applied b { letter-spacing: .04em; }
.mk-applied__pct { font-weight: 700; }
.mk-applied__pct.is-off { font-weight: 400; color: var(--mk-muted); }
.mk-link { font-weight: 600; color: var(--mk-red); text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; font-size: 12px; }
.mk-volume { margin: 12px 0 0; padding: 9px 12px; border-radius: 10px; background: #fdeef1; font-size: 12.5px; color: #8d5a66; }
.mk-volume b { color: var(--mk-red); }

/* sumy (domyślna tabela WooCommerce w nowych szatach) */
.mk-sum .cart_totals { width: 100% !important; float: none !important; margin: 0; padding: 0; }
.mk-sum .cart_totals > h2 { display: none; }
.mk-sum .shop_table { width: 100%; border: 0; margin: 0; }
.mk-sum .shop_table th, .mk-sum .shop_table td { padding: 10px 0; border: 0; border-bottom: 1px solid var(--mk-line); font-size: 14px; background: none; }
.mk-sum .shop_table th { font-weight: 500; text-align: left; width: 40%; }
.mk-sum .shop_table td { text-align: right; font-weight: 700; }
.mk-sum .order-total th, .mk-sum .order-total td { border-bottom: 0; color: var(--mk-red); font: 700 17px/1.2 "Montserrat", sans-serif; padding-top: 16px; }
.mk-sum .includes_tax { display: block; margin-top: 3px; color: var(--mk-red); font: 600 12px/1.3 "DM Sans", sans-serif; }
.mk-sum .wc-proceed-to-checkout { padding: 14px 0 0; }
.mk-sum .checkout-button { display: flex !important; align-items: center; justify-content: center; width: 100%; margin: 0 !important; padding: 16px !important; border: 0 !important; border-radius: 999px !important; background: var(--mk-red) !important; color: #fff !important; font: 700 14px/1 "Montserrat", sans-serif !important; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(214, 25, 31, .28); }
.mk-sum .cart-discount .woocommerce-remove-coupon { color: var(--mk-red); font-size: 12px; margin-left: 6px; }

.mk-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 20px; margin: 4px 0 0; padding: 0; list-style: none; font: 500 13px/1.3 "DM Sans", sans-serif; color: #8d5a66; }
.mk-trust li { display: flex; align-items: center; gap: 6px; }
.mk-trust svg { width: 18px; height: 18px; color: var(--mk-red); }

@media (min-width: 900px) {
	.moos-cart-v2 .mk { max-width: 880px; }
	.mk-pick__item { flex-basis: 320px; }
}

/* --- poprawki po pierwszym podglądzie --- */
.mk-sum .ct-cart-totals-modules { display: none; }               /* karuzelę „Sugerowane" zastępuje „Dobierz do darmowej dostawy" */
.mk-sum .woocommerce-shipping-totals th { display: block; width: 100%; padding-bottom: 4px; border: 0; }
.mk-sum .woocommerce-shipping-totals td { display: block; width: 100%; text-align: left; font-weight: 500; }
.mk-sum .woocommerce-shipping-methods { margin: 0; padding: 0; list-style: none; }
.mk-sum .woocommerce-shipping-methods li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #efc9d2; border-radius: 12px; background: #fff; }
.mk-sum .woocommerce-shipping-methods li:has(input:checked) { border-color: var(--mk-red); box-shadow: 0 0 0 1px var(--mk-red); }
.mk-sum .woocommerce-shipping-destination { margin: 6px 0 0; font-size: 12px; font-weight: 400; color: var(--mk-muted); }
.mk-sum .woocommerce-shipping-methods img { max-height: 28px; width: auto; }
.mk-sum .order-total th, .mk-sum .order-total td { text-align: left; }
.mk-sum .order-total td { text-align: right; }
.mk-sum .woocommerce-shipping-methods li { width: 100%; box-sizing: border-box; }
.mk-sum .woocommerce-shipping-methods li label { flex: 1; }

/* --- sugerowane produkty wracają (upsell); pusty koszyk --- */
.mk-sum .ct-cart-totals-modules { display: block; margin-top: 18px; }
.mk-empty { text-align: center; padding: 28px 18px; }
.mk-empty p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.mk-empty__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; margin: 0 0 10px !important; border-radius: 50%; background: #fff; color: var(--mk-red); box-shadow: 0 0 0 8px rgba(214, 25, 31, .08); }
.mk-empty__icon svg { width: 30px; height: 30px; }
.mk-cta { display: inline-flex; align-items: center; justify-content: center; margin-top: 14px; padding: 15px 30px; border-radius: 999px; background: var(--mk-red); color: #fff !important; text-decoration: none; font: 700 13px/1 "Montserrat", sans-serif; letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(214, 25, 31, .28); }
.mk-pick--grid .mk-pick__list { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; gap: 10px; }
.mk-pick__item--tile { flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.mk-pick__item--tile .mk-pick__add { width: 100%; }
@media (min-width: 760px) { .mk-pick--grid .mk-pick__list { grid-template-columns: repeat(4, 1fr); } .moos-cart-v2 .mk--empty { max-width: 880px; } }

/* === Runda 3: marginesy, kroki na telefonie, karty „Dobierz", przyciski jak na reszcie strony === */
.ct-cart-totals-modules, .mk-sum .ct-cart-totals-modules { display: none !important; }  /* sugestie mają własną sekcję pod przyciskiem */
.moos-cart-v2 .mk { padding: 0 clamp(20px, 6vw, 36px) 48px; }
.mk-card { padding: 20px; }
.mk-free { padding: 14px 18px; }
@media (max-width: 999px) { .moos-cart-v2 .hero-section { display: none; } }   /* „Koszyk" dubluje kroki 1-2-3 */

.mk-steps { gap: 6px; font-size: 10.5px; letter-spacing: .03em; flex-wrap: nowrap; }
.mk-steps li { gap: 5px; white-space: nowrap; }
.mk-steps li + li::before { width: clamp(8px, 3vw, 28px); margin-right: 0; }
.mk-steps span { width: 22px; height: 22px; font-size: 11px; flex: none; }
@media (min-width: 560px) { .mk-steps { gap: 10px; font-size: 12px; } .mk-steps span { width: 26px; height: 26px; } }

/* karty „Dobierz": zaokrąglone, przycisk na dole, więcej kart w jednym rzędzie */
.mk-pick__item { flex: 0 0 min(220px, 68%); grid-template-columns: 62px 1fr; align-items: start; gap: 10px; padding: 10px; border-radius: 16px; }
.mk-pick__img img { border-radius: 11px; }
.mk-pick__item .mk-pick__add { grid-column: 1 / -1; width: 100%; }
.mk-pick__item--tile { display: flex; border-radius: 16px; }

/* przyciski „Dodaj" / „Przejdź do płatności" jak na pozostałych stronach: gradient, pigułka, poświata */
.moos-cart-v2 .mk-pick__add,
.moos-cart-v2 .mk-cta,
.moos-cart-v2 .mk-sum .checkout-button {
	background-color: #d6191f !important;
	background-image: linear-gradient(180deg, #ff1f26, #c4060d) !important;
	border: 0 !important;
	corner-shape: round !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 22px rgba(255, 30, 40, .3) !important;
}
.moos-cart-v2 .mk-pick__add { padding: 12px 16px; }
.moos-cart-v2 .mk-pick__add:hover, .moos-cart-v2 .mk-cta:hover, .moos-cart-v2 .mk-sum .checkout-button:hover { background-image: none !important; background-color: #9b0409 !important; }

@media (max-width: 559px) {
	.mk-line { grid-template-columns: 60px minmax(0, 1fr); gap: 4px 12px; }
	.mk-line__img { grid-row: span 2; }
	.mk-line__name, .mk-line__name a { font-size: 14px; overflow-wrap: normal; word-break: normal; hyphens: auto; }
	.mk-line__sub { grid-column: 2; font-size: 14px; }
	.mk-line__sub::before { content: "Razem: "; font-weight: 500; color: var(--mk-muted); }
}
.mk-pick__item--tile .mk-pick__add { white-space: nowrap; font-size: 12px; padding: 12px 8px; }

/* === Runda 4 === */
/* termin dostawy InPost: obramowanie kropkowane było 2,7 px */
.inpost_pl_shipping_meta { border-width: 1px !important; }

/* ilość: Blocksy daje inputowi po 38 px paddingu na przyciski, przez co liczba znikała */
.mk-qty .quantity { display: inline-flex; align-items: center; }
.mk-qty .quantity input.qty { padding: 0 !important; width: 40px !important; min-width: 0; color: var(--mk-wine); opacity: 1; }
.mk-qty .quantity .ct-increase, .mk-qty .quantity .ct-decrease { position: static !important; flex: none; }

/* sugestie: przyciski równo na dole kart */
.mk-pick--grid .mk-pick__list { align-items: stretch; }
.mk-pick__item--tile { height: 100%; }
.mk-pick__item--tile .mk-pick__body { flex: 1 1 auto; }
.mk-pick__item--tile .mk-pick__add { margin-top: auto; }

/* marginesy strony: na telefonie sekcje prawie na całą szerokość */
@media (max-width: 559px) {
	.moos-cart-v2 .mk { padding-left: 10px; padding-right: 10px; }
	.mk-card { padding: 16px 14px; }
	.mk-free { padding: 12px 14px; }
	.mk-pick__list { padding-left: 0; }
}

/* === Runda 4b === */
.mk-qty .quantity .ct-decrease { order: 1; }
.mk-qty .quantity input.qty { order: 2; }
.mk-qty .quantity .ct-increase { order: 3; }

.mk-steps { --mk-red: #d6191f; }

/* marginesy: motyw daje ~17 px po bokach, więc sekcje wysuwamy o 7 px — zostaje ~10 px, jak w prototypie */
@media (max-width: 559px) {
	.moos-cart-v2 .mk { padding-left: 0; padding-right: 0; margin-left: -7px; margin-right: -7px; }
	body.woocommerce-checkout .wc-block-checkout { margin-left: -7px; margin-right: -7px; }
}

/* zamówienie: ten sam układ i te same przyciski co w koszyku */
@media (max-width: 999px) { body.woocommerce-checkout .hero-section { display: none; } }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wc-block-components-button.contained {
	background-color: #d6191f !important;
	background-image: linear-gradient(180deg, #ff1f26, #c4060d) !important;
	border: 0 !important;
	corner-shape: round !important;
	border-radius: 999px !important;
	box-shadow: 0 8px 22px rgba(255, 30, 40, .3) !important;
	color: #fff !important;
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover { background-image: none !important; background-color: #9b0409 !important; }
body.woocommerce-checkout .mk-steps { margin-top: 4px; }

/* === Runda 5 === */
.mk-qty .quantity { width: 118px; justify-content: space-between; }
.mk-qty .quantity .screen-reader-text { position: absolute !important; }
.mk-qty .quantity .ct-increase, .mk-qty .quantity .ct-decrease { width: 38px; justify-content: center; }
.mk-qty .quantity input.qty { flex: 1 1 auto; width: auto !important; text-align: center; }

.mk-line:has(+ .mk-update) { border-bottom: 0; }   /* ostatnia pozycja bez kreski */

/* „Dobierz": przyciski równo na dole kart o różnej wysokości */
.mk-pick__list { align-items: stretch; }
.mk-pick__item:not(.mk-pick__item--tile) { grid-template-rows: 1fr auto; }

/* pola kodów: zaokrąglone jak przyciski */
.mk-input { border-radius: 999px; padding: 0 18px; }
.mk-btn-light { border-radius: 999px; }

/* pływający przycisk */
.mk-float { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); /* 2026-11-19: nad paskiem gestów iPhone'a */ z-index: 60; max-width: 520px; margin: 0 auto; display: none; align-items: center; justify-content: space-between; gap: 12px;
	padding: 15px 24px; border-radius: 999px; color: #fff !important; text-decoration: none; font: 700 13px/1 "Montserrat", sans-serif; letter-spacing: .08em; text-transform: uppercase;
	background-color: #d6191f; background-image: linear-gradient(180deg, #ff1f26, #c4060d); box-shadow: 0 10px 26px rgba(255, 30, 40, .38); }
.mk-float.is-on { display: flex; }
.mk-float b { font-weight: 700; letter-spacing: 0; }
.mk-float .woocommerce-Price-amount { color: #fff; }

/* === Runda 6 === */
.mk-qty .quantity { width: 128px; padding: 0 6px; box-sizing: border-box; }
.mk-ship__from { font-weight: 700; }
.mk-ship__free { color: #2e7d4a; }
.mk-ship__note { display: block; margin-top: 3px; color: var(--mk-muted); font-weight: 400; font-size: 12px; }
.mk-sum .woocommerce-shipping-totals th { display: table-cell; width: 40%; padding-bottom: 10px; border-bottom: 1px solid var(--mk-line); }
.mk-sum .woocommerce-shipping-totals td { display: table-cell; width: auto; text-align: right; font-weight: 500; }


/* === MOOS: wyraźniejsze „Masz kod rabatowy?" (2026-11-19) — koszyk (.mk-coupons) + kasa blokowa. Usunięcie tego bloku przywraca poprzedni wygląd. === */
.mk-coupons{border-bottom:0;padding:4px 0 14px}
.mk-coupons summary{align-items:center;gap:12px;padding:12px 14px;border:1.5px dashed var(--mk-red);border-radius:12px;background:#fff5f6;color:var(--mk-red);transition:background-color .15s,box-shadow .15s;-webkit-tap-highlight-color:transparent}
.mk-coupons summary:hover{background:#ffe9ec;box-shadow:0 2px 8px rgba(214,25,31,.12)}
.mk-coupons summary:focus-visible{outline:2px solid var(--mk-red);outline-offset:2px}
.mk-coupons__ico{flex:0 0 36px;width:36px;height:36px;border-radius:50%;background:var(--mk-red);color:#fff;display:flex;align-items:center;justify-content:center}
.mk-coupons__ico svg{width:20px;height:20px}
.mk-coupons__label{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;text-align:left}
.mk-coupons__label b{font:700 15px/1.25 Montserrat,sans-serif;color:var(--mk-red)}
.mk-coupons__label small{font:500 12.5px/1.3 "DM Sans",sans-serif;color:#8d5a66}
.mk-coupons__chev{flex:0 0 auto;font-size:14px;transition:transform .2s}
.mk-coupons[open] summary{border-style:solid;background:#fff}
.mk-coupons[open] .mk-coupons__chev{transform:rotate(180deg)}
/* Kasa (blok WooCommerce) — ten sam wygląd przełącznika kuponów. */
body.woocommerce-checkout .wc-block-components-totals-coupon .wc-block-components-panel__button,body.woocommerce-cart .wc-block-components-totals-coupon .wc-block-components-panel__button{padding:12px 40px 12px 14px!important;border:1.5px dashed #d6191f!important;border-radius:12px!important;background:#fff5f6!important;color:#d6191f!important;font-weight:700!important;font-size:15px!important}
.wc-block-components-totals-coupon .wc-block-components-panel__button::before{content:"🏷️";margin-right:8px}
body .wc-block-components-totals-coupon .wc-block-components-panel__button[aria-expanded="true"]{border-style:solid!important;background:#fff!important}
.wc-block-components-totals-coupon .wc-block-components-panel__button-icon{right:12px!important}
