/* Panel minikoszyka: markup pochodzi z woocommerce/cart/mini-cart.php. */
.pw-cart-drawer {
	width: min(440px, 100%);
	padding: 28px 24px;
	border: 0;
	background: #fff;
	box-shadow: -12px 0 40px rgb(0 0 0 / 15%);
}

.pw-cart-drawer__top {
	min-height: 44px;
	margin-bottom: 18px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--pw-line);
}

.pw-cart-drawer__top h2 {
	margin: 0;
	font-size: 23px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

.pw-cart-drawer__top button,
.pw-cart-drawer [data-pw-cart-close] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 1px solid var(--pw-border);
	border-radius: 50%;
	background: transparent;
	color: var(--pw-ink);
	font-size: 22px;
	font-weight: 300;
	line-height: 1;
	box-shadow: none;
}

.pw-cart-drawer__top button:hover,
.pw-cart-drawer [data-pw-cart-close]:hover {
	border-color: var(--pw-green);
	background: var(--pw-green);
	color: #fff;
}

.pw-mini-cart__items {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pw-site .pw-cart-drawer .woocommerce-mini-cart-item.pw-mini-cart__item {
	position: relative;
	display: block;
	min-height: 102px;
	margin: 0 !important;
	padding: 0 32px 18px 0;
	border-bottom: 1px solid var(--pw-line);
}

.pw-site .pw-cart-drawer .woocommerce-mini-cart-item.pw-mini-cart__item + .woocommerce-mini-cart-item.pw-mini-cart__item {
	padding-top: 18px;
}

.pw-site .pw-cart-drawer .pw-mini-cart__product {
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 13px;
	align-items: stretch;
	min-width: 0;
	color: var(--pw-ink);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}

.pw-mini-cart__product:hover {
	color: var(--pw-green);
}

.pw-site .pw-cart-drawer .pw-mini-cart__product img {
	position: static;
	float: none;
	display: block;
	width: 70px;
	max-width: none;
	height: 84px;
	margin: 0;
	object-fit: contain;
	background: var(--pw-thumb);
}

.pw-mini-cart__copy {
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	gap: 7px;
	min-width: 0;
}

.pw-mini-cart__name {
	min-width: 0;
}

.pw-mini-cart__product .quantity {
	display: block;
	align-self: end;
	color: var(--pw-ink-muted);
	font-size: 12px;
	line-height: 1.4;
	text-align: right;
	white-space: nowrap;
}

.pw-mini-cart__item .remove,
.pw-mini-cart__item .remove_from_cart_button {
	position: absolute;
	top: 0;
	right: 0;
	left: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--pw-ink-muted);
	font-size: 23px;
	font-weight: 300;
	line-height: 1;
	opacity: 1;
}

.pw-mini-cart__item .remove:hover,
.pw-mini-cart__item .remove_from_cart_button:hover {
	background: transparent;
	color: var(--pw-green);
}

.pw-cart-drawer .woocommerce-mini-cart__total {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 21px 0;
	border-bottom: 1px solid var(--pw-line);
	color: var(--pw-ink);
	font-size: 15px;
}

.pw-cart-drawer .woocommerce-mini-cart__total strong {
	font-weight: 400;
}

.pw-cart-drawer .woocommerce-mini-cart__buttons {
	display: grid;
	gap: 9px;
	margin: 20px 0 0;
}

.pw-cart-drawer .woocommerce-mini-cart__buttons .button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 46px;
	margin: 0;
	padding: 10px 16px;
	border: 1px solid var(--pw-green);
	border-radius: 0;
	background: #fff;
	color: var(--pw-green);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: .07em;
	text-transform: uppercase;
	box-shadow: none;
}

.pw-cart-drawer .woocommerce-mini-cart__buttons .checkout {
	background: var(--pw-green);
	color: #fff;
}

.pw-cart-drawer .woocommerce-mini-cart__buttons .button:hover {
	background: var(--pw-green);
	color: #fff;
}

.pw-mini-cart__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	padding: 38px 10px;
	text-align: center;
}

.pw-mini-cart__empty p {
	margin: 0;
	color: var(--pw-ink-muted);
	font-size: 13px;
}

.pw-mini-cart__empty .button {
	min-height: 44px;
	margin: 0;
	border-radius: 0;
	font-size: 10px;
}

@media (max-width: 599px) {
	.pw-cart-drawer {
		padding: 22px 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pw-cart-drawer * {
		transition: none !important;
	}
}

.pw-site .pw-cart-drawer [data-pw-cart-close] {
	flex: 0 0 36px;
	min-height: 36px;
	max-height: 36px;
	height: 36px;
	width: 36px;
}
