/* PNT Mini Cart v1.0.2 */

.pnt-mc-root {
	--pnt-mc-accent: #c1121f;
	--pnt-mc-bg: #ffffff;
	--pnt-mc-text: #222222;
	--pnt-mc-muted: #777777;
	--pnt-mc-border: #e8e8e8;
	--pnt-mc-width: 400px;
	font-size: 15px;
	line-height: 1.4;
}

.pnt-mc-root.pnt-mc-dark {
	--pnt-mc-bg: #1d1d1f;
	--pnt-mc-text: #f2f2f2;
	--pnt-mc-muted: #a5a5a5;
	--pnt-mc-border: #383838;
}

.pnt-mc-hidden { display: none !important; }
body.pnt-mc-lock { overflow: hidden; }

/* ---------- Overlay ---------- */

.pnt-mc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
	z-index: 999998;
}

.pnt-mc-root.is-open .pnt-mc-overlay {
	opacity: 1;
	visibility: visible;
}

/* ---------- Panel ---------- */

.pnt-mc-panel {
	position: fixed;
	top: 0;
	right: 0;
	height: 100%;
	height: 100dvh;
	width: var(--pnt-mc-width);
	max-width: 92vw;
	background: var(--pnt-mc-bg);
	color: var(--pnt-mc-text);
	transform: translateX(105%);
	transition: transform 0.3s ease;
	z-index: 999999;
	box-shadow: -8px 0 30px rgba(0, 0, 0, 0.18);
	outline: none;
}

.pnt-mc-root.is-open .pnt-mc-panel { transform: translateX(0); }

.pnt-mc-panel-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
}

/* ---------- Nagłówek ---------- */

.pnt-mc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid var(--pnt-mc-border);
	flex: 0 0 auto;
}

.pnt-mc-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: inherit;
	line-height: 1.2;
}

.pnt-mc-count {
	color: var(--pnt-mc-muted);
	font-weight: 500;
}

.pnt-mc-close {
	background: none;
	border: 0;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: var(--pnt-mc-muted);
	padding: 2px 8px;
}

.pnt-mc-close:hover { color: var(--pnt-mc-text); }

/* ---------- Pasek darmowej dostawy ---------- */

.pnt-mc-shipbar {
	padding: 14px 20px;
	border-bottom: 1px solid var(--pnt-mc-border);
	background: rgba(0, 0, 0, 0.02);
	flex: 0 0 auto;
}

.pnt-mc-dark .pnt-mc-shipbar { background: rgba(255, 255, 255, 0.04); }

.pnt-mc-shipbar-text {
	font-size: 13px;
	margin-bottom: 8px;
}

.pnt-mc-shipbar-track {
	height: 8px;
	border-radius: 99px;
	background: var(--pnt-mc-border);
	overflow: hidden;
}

.pnt-mc-shipbar-fill {
	height: 100%;
	border-radius: 99px;
	background: var(--pnt-mc-accent);
	transition: width 0.4s ease;
}

.pnt-mc-shipbar.is-reached .pnt-mc-shipbar-fill { background: #2fa84f; }

/* ---------- Lista pozycji ---------- */

.pnt-mc-items {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 4px 20px;
	min-height: 0;
}

.pnt-mc-item {
	display: flex;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--pnt-mc-border);
	position: relative;
	transition: opacity 0.15s ease;
}

.pnt-mc-item:last-child { border-bottom: 0; }

.pnt-mc-item.is-loading {
	opacity: 0.45;
	pointer-events: none;
}

.pnt-mc-thumb { flex: 0 0 auto; }

.pnt-mc-thumb img {
	width: 64px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}

.pnt-mc-item-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.pnt-mc-item-name {
	color: var(--pnt-mc-text) !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	padding-right: 20px;
}

.pnt-mc-item-price,
.pnt-mc-item-solo {
	color: var(--pnt-mc-muted);
	font-size: 13px;
}

.pnt-mc-item-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

/* Stepper ilości */

.pnt-mc-qty {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--pnt-mc-border);
	border-radius: 8px;
	overflow: hidden;
	background: var(--pnt-mc-bg);
}

.pnt-mc-qty-btn {
	width: 30px;
	height: 32px;
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 16px;
	color: var(--pnt-mc-text);
	line-height: 1;
}

.pnt-mc-qty-btn:hover { background: rgba(0, 0, 0, 0.06); }
.pnt-mc-dark .pnt-mc-qty-btn:hover { background: rgba(255, 255, 255, 0.08); }

.pnt-mc-qty-input {
	width: 52px;
	height: 32px;
	border: 0;
	border-left: 1px solid var(--pnt-mc-border);
	border-right: 1px solid var(--pnt-mc-border);
	border-radius: 0;
	text-align: center;
	font-size: 14px;
	background: transparent;
	color: var(--pnt-mc-text);
	appearance: textfield;
	-moz-appearance: textfield;
}

.pnt-mc-qty-input::-webkit-outer-spin-button,
.pnt-mc-qty-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.pnt-mc-item-subtotal {
	font-weight: 700;
	font-size: 14px;
	white-space: nowrap;
}

.pnt-mc-remove {
	position: absolute;
	top: 12px;
	right: 0;
	background: none;
	border: 0;
	color: var(--pnt-mc-muted);
	font-size: 19px;
	cursor: pointer;
	line-height: 1;
	padding: 2px 4px;
}

.pnt-mc-remove:hover { color: #d63638; }

/* ---------- Stopka ---------- */

.pnt-mc-foot {
	padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--pnt-mc-border);
	flex: 0 0 auto;
}

.pnt-mc-subtotal {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 15px;
	margin-bottom: 12px;
}

.pnt-mc-actions {
	display: flex;
	gap: 10px;
}

.pnt-mc-btn {
	flex: 1 1 0;
	text-align: center;
	padding: 12px 10px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none !important;
	transition: filter 0.15s ease;
	box-sizing: border-box;
}

.pnt-mc-btn-solid {
	background: var(--pnt-mc-accent);
	color: #ffffff !important;
	border: 2px solid var(--pnt-mc-accent);
}

.pnt-mc-btn-outline {
	border: 2px solid var(--pnt-mc-accent);
	color: var(--pnt-mc-accent) !important;
	background: transparent;
}

.pnt-mc-btn:hover { filter: brightness(0.92); }

/* ---------- Pusty koszyk ---------- */

.pnt-mc-empty {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 30px 24px;
	text-align: center;
	color: var(--pnt-mc-muted);
}

.pnt-mc-empty .pnt-mc-btn { flex: 0 0 auto; }

/* ---------- Pływająca ikona ---------- */

.pnt-mc-float {
	position: fixed;
	bottom: 24px;
	right: 24px;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--pnt-mc-accent);
	color: #ffffff;
	border: 0;
	cursor: pointer;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999990;
	transition: transform 0.15s ease;
}

.pnt-mc-pos-left .pnt-mc-float {
	left: 24px;
	right: auto;
}

.pnt-mc-float:hover { transform: scale(1.06); }

.pnt-mc-float svg {
	width: 26px;
	height: 26px;
}

.pnt-mc-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 22px;
	height: 22px;
	border-radius: 99px;
	background: #ffffff;
	color: var(--pnt-mc-accent);
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 5px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
}

/* ---------- Pasek mobilny ---------- */

.pnt-mc-bar {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--pnt-mc-accent);
	color: #ffffff;
	padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
	z-index: 999991;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.pnt-mc-bar svg {
	width: 20px;
	height: 20px;
	vertical-align: -4px;
	margin-right: 8px;
}

.pnt-mc-bar-total,
.pnt-mc-bar-total .amount {
	color: #ffffff !important;
}

.pnt-mc-bar.is-empty { display: none !important; }

/* ---------- Mobile ---------- */

@media (max-width: 768px) {
	.pnt-mc-bar:not(.is-empty) { display: flex; }
	.pnt-mc-float.pnt-mc-has-bar { display: none; }

	/* Cookiebot / Usercentrics: podnieś widget zgód nad pasek mini-koszyka */
	body.pnt-mc-bar-on #CookiebotWidget,
	body.pnt-mc-bar-on #usercentrics-root {
		bottom: calc(62px + env(safe-area-inset-bottom)) !important;
		transition: bottom .3s ease; } }