/* Side cart (mini-cart) — Blipworth palette */
.bgf-mc-head {
	padding: 12px 20px 14px;
	background: #f4efe4;
	border-bottom: 1px solid #e2e8e3;
	text-align: center;
}
.bgf-mc-urgent {
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #1c2620;
}
.bgf-mc-ship {
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 600;
	color: #466f4e;
}
.bgf-mc-bar {
	height: 8px;
	border-radius: 8px;
	background: #e2e8e3;
	overflow: hidden;
}
.bgf-mc-bar span {
	display: block;
	height: 100%;
	width: 100%;
	border-radius: 8px;
	background: #466f4e;
}

/* item prices */
.widget_shopping_cart .bgf-mc-price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
}
.widget_shopping_cart .bgf-mc-price del {
	color: #8a948c;
	font-size: 13px;
}
.widget_shopping_cart .bgf-mc-price ins {
	text-decoration: none;
	font-weight: 600;
	color: #1c2620;
}
.widget_shopping_cart .bgf-mc-save {
	flex-basis: 100%;
	font-style: normal;
	font-size: 12px;
	font-weight: 600;
	color: #466f4e;
}
.widget_shopping_cart .bgf-mc-save .amount {
	color: inherit;
}

/* shipping protection toggle */
.bgf-protect {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 14px;
	padding: 12px;
	border: 1px solid #e2e8e3;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	position: relative;
}
.bgf-protect.is-loading {
	opacity: .6;
	pointer-events: none;
}
.bgf-protect-ic {
	flex: 0 0 40px;
	height: 40px;
	border-radius: 8px;
	background: #f4efe4;
	color: #466f4e;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bgf-protect-txt {
	flex: 1;
	min-width: 0;
	line-height: 1.3;
}
.bgf-protect-txt strong {
	display: block;
	font-size: 14px;
	color: #1c2620;
}
.bgf-protect-txt strong b {
	font-weight: 600;
	color: #466f4e;
	margin-left: 4px;
}
.bgf-protect-txt small {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: #5a665d;
}
.bgf-protect-input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}
.bgf-switch {
	flex: 0 0 44px;
	height: 24px;
	border-radius: 24px;
	background: #c9d1cb;
	position: relative;
	transition: background .2s;
}
.bgf-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
	transition: transform .2s;
}
.bgf-protect-input:checked + .bgf-switch {
	background: #466f4e;
}
.bgf-protect-input:checked + .bgf-switch::after {
	transform: translateX(20px);
}
.bgf-protect-input:focus-visible + .bgf-switch {
	outline: 2px solid #466f4e;
	outline-offset: 2px;
}
.bgf-protect--checkout {
	margin: 16px 0;
}

/* order summary */
.shopping-cart-widget-footer .woocommerce-mini-cart__total {
	display: none;
}
.bgf-mc-sum {
	margin: 0 0 14px;
	font-size: 14px;
	color: #5a665d;
}
.bgf-mc-sum > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 4px 0;
}
.bgf-mc-sum > div > span:last-child {
	color: #1c2620;
	font-weight: 600;
}
.bgf-mc-disc > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.bgf-mc-disc em {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: #d64545;
	border-radius: 6px;
	padding: 2px 8px;
	margin-right: 4px;
}
.bgf-mc-disc .amount {
	color: #d64545;
}
.bgf-mc-sum .bgf-free {
	color: #466f4e !important;
	font-weight: 700 !important;
}

/* buttons */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons {
	display: block;
}
.shopping-cart-widget-footer .bgf-mc-checkout {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 52px;
	font-size: 16px;
	margin: 0 !important;
}
.shopping-cart-widget-footer .bgf-mc-viewcart {
	display: block;
	margin-top: 10px;
	text-align: center;
	font-size: 14px;
	color: #466f4e;
	text-decoration: underline;
}
.bgf-mc-pay {
	margin-top: 14px;
	text-align: center;
}
.bgf-mc-pay img {
	max-width: 260px;
	width: 100%;
	height: auto;
}
.bgf-mc-pay p {
	margin: 6px 0 0;
	font-size: 12px;
	color: #5a665d;
}

/* quantity stepper: one clean pill */
.widget_shopping_cart .cart-info div.quantity {
	display: inline-flex !important;
	align-items: center;
	height: 34px;
	margin: 8px 0 6px !important;
	border: 1px solid #d5dcd7;
	border-radius: 34px;
	background: #fff;
	overflow: hidden;
}
.widget_shopping_cart .cart-info div.quantity .minus,
.widget_shopping_cart .cart-info div.quantity .plus {
	width: 34px !important;
	min-width: 34px !important;
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #1c2620 !important;
	font-size: 18px !important;
	line-height: 32px !important;
}
.widget_shopping_cart .cart-info div.quantity .minus:hover,
.widget_shopping_cart .cart-info div.quantity .plus:hover {
	background: #f4efe4 !important;
}
.widget_shopping_cart .cart-info div.quantity input.qty {
	width: 34px !important;
	min-width: 34px !important;
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: transparent !important;
	font-size: 15px !important;
	font-weight: 600;
	color: #1c2620;
	text-align: center;
}

/* price line: saving on its own row */
.widget_shopping_cart .bgf-mc-price .bgf-mc-save {
	display: block !important;
	width: 100%;
	margin-top: 2px;
}
.shopping-cart-widget-footer .bgf-mc-checkout {
	white-space: nowrap;
}

/* single full-width checkout button (theme lays buttons out in 2 columns) */
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons {
	display: block !important;
	grid-template-columns: 1fr !important;
	width: 100%;
}
.shopping-cart-widget-footer .woocommerce-mini-cart__buttons .bgf-mc-checkout {
	grid-column: 1 / -1;
	width: 100% !important;
	max-width: none !important;
	flex: 1 1 100% !important;
}

.bgf-mc-sum > div.bgf-mc-total {
	margin-top: 6px;
	padding-top: 10px;
	border-top: 1px solid #e2e8e3;
	font-size: 16px;
	font-weight: 700;
	color: #1c2620;
}
.bgf-mc-sum > div.bgf-mc-total > span:last-child {
	font-size: 18px;
	font-weight: 700;
}

/* ---------- Checkout "Your order" box, matched to the side cart ---------- */
.woocommerce-checkout-review-order-table .bgf-protect-row td {
	padding: 14px 0 6px !important;
	border-bottom: 0 !important;
}
.woocommerce-checkout-review-order-table .bgf-protect--checkout {
	margin: 0;
}
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
	padding-block: 8px !important;
	border-bottom: 0 !important;
	font-size: 15px;
	font-weight: 400;
	color: #5a665d;
}
.woocommerce-checkout-review-order-table tfoot td {
	text-align: end;
	color: #1c2620;
	font-weight: 600;
}
.woocommerce-checkout-review-order-table .bgf-co-disc th {
	display: flex;
	align-items: center;
	gap: 6px;
}
.woocommerce-checkout-review-order-table .bgf-co-disc em {
	font-style: normal;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: #d64545;
	border-radius: 6px;
	padding: 2px 8px;
	margin-right: 4px;
}
.woocommerce-checkout-review-order-table .bgf-co-disc .amount {
	color: #d64545;
}
.woocommerce-checkout-review-order-table .woocommerce-shipping-methods {
	margin: 0;
	text-align: end;
}
.woocommerce-checkout-review-order-table .bgf-free {
	color: #466f4e;
	font-weight: 700;
}
.woocommerce-checkout-review-order-table tfoot .order-total th,
.woocommerce-checkout-review-order-table tfoot .order-total td {
	padding-top: 12px !important;
	border-top: 1px solid #e2e8e3 !important;
	font-size: 17px;
	font-weight: 700;
	color: #1c2620;
}
.woocommerce-checkout-review-order-table tfoot .order-total .amount {
	font-size: 19px;
	color: #466f4e;
}

/* checkout quantity steppers: same pill as the side cart */
.woocommerce-checkout-review-order-table div.quantity {
	display: inline-flex !important;
	align-items: center;
	height: 34px;
	border: 1px solid #d5dcd7;
	border-radius: 34px;
	background: #fff;
	overflow: hidden;
}
.woocommerce-checkout-review-order-table div.quantity .minus,
.woocommerce-checkout-review-order-table div.quantity .plus,
.woocommerce-checkout-review-order-table div.quantity input.qty {
	width: 34px !important;
	min-width: 34px !important;
	height: 32px !important;
	min-height: 32px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #1c2620 !important;
	line-height: 32px !important;
	text-align: center;
}
.woocommerce-checkout-review-order-table div.quantity .minus,
.woocommerce-checkout-review-order-table div.quantity .plus {
	font-size: 18px !important;
}
.woocommerce-checkout-review-order-table div.quantity .minus:hover,
.woocommerce-checkout-review-order-table div.quantity .plus:hover {
	background: #f4efe4 !important;
}

/* theme forces children of the product title to 100% width; keep the pill compact */
.woocommerce-checkout-review-order-table .wd-checkout-prod-title > div.quantity {
	width: auto !important;
	max-width: max-content !important;
	flex: 0 0 auto !important;
}

/* ---------- Checkout place order button ---------- */
.woocommerce-checkout #place_order {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100% !important;
	min-height: 56px;
	border-radius: 56px !important;
	font-size: 17px !important;
	font-weight: 600;
	text-transform: none !important;
	white-space: nowrap;
}
.woocommerce-checkout #place_order::before {
	content: "";
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10' width='16' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 018 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}
.woocommerce-checkout .place-order .bgf-mc-pay {
	margin-top: 14px;
}
.woocommerce-checkout .place-order .bgf-mc-pay img {
	width: 100% !important;
	max-width: 400px !important;
	height: auto !important;
	margin: 0 auto;
}
