.my-mini-cart-popup {
	display: none;
	position: fixed;
	z-index: 9999;
	top: var(--wp-admin--admin-bar--height, 0px);
	right: -657px;
	width: 657px;
	height: calc(100% - var(--wp-admin--admin-bar--height, 0px));
	overflow-y: auto;
	transition: right 0.3s ease-in-out;
	background: linear-gradient(180deg, #FFFFFF 4.33%, #B7D3D6 47.12%, #FFFFFF 91.91%);
	box-shadow: 0 4px 10px 0 #00000040;
	border-radius: 15px 0 0 15px;
}

body.my-mini-cart-open .my-mini-cart-popup {
	right: 0;
}

.my-mini-cart-popup-content {
	height: 100%;
	position: relative;
	box-shadow: 0 -4px 1px 0 rgba(99, 156, 161, 0.3);
	display: flex;
	flex-direction: column;
}

.my-mini-cart-popup-content--head {
	padding: 22px 30px 15px 39px;
	display: flex;
	justify-content: space-between;
}

.my-mini-cart-popup-content--head h4 {
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: 1px;
	margin: 0;
}

.my-mini-cart-close-button {
	cursor: pointer;
	z-index: 10;
	justify-content: space-between;
}

.my-mini-cart-close-button:hover,
.my-mini-cart-close-button:focus {
	opacity: 0.7;
	text-decoration: none;
	cursor: pointer;
}


.my-mini-cart-items {
	flex-grow: 1;
	background: #fff;
	box-shadow: 0 -4px 1px 0 #639CA14D;
	overflow-y: auto;
	padding: 16px 20px 16px 39px;
	border-radius: 0 0 0 15px;
	margin-bottom: 7px;
}

.my-mini-cart-items:has(.my-mini-cart-empty) {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.my-mini-cart-table {
	width: 100%;
	table-layout: fixed;
}

.my-mini-cart-items ul {
	list-style: none;
	margin: 0;
	padding: 0;
}


.woocommerce-mini-cart-item.mini_cart_item td.total-column {
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 1px;
	padding: 20px 0 15px !important;
}

.original-price {
	color: #004856CC;
	font-weight: 400;
	font-size: 15px;
	letter-spacing: 1px;
	margin-left: 10px;
}

@media (max-width: 800px) {
	.my-mini-cart-items td.total-column {
		font-size: 12px;
	}

	.original-price {
		font-size: 12px;
		margin-left: 0px;
	}

	.price-col {
		display: flex;
		flex-direction: column;
	}
}

.my-mini-cart-items .quantity {
	border: 1.5px solid #00485680;
	border-radius: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	padding: 0 8px;
	justify-content: space-between;
	gap: 10px;
	max-width: 92px;
}

.my-mini-cart-items .quantity-column--mobile {
	display: none;
}

.my-mini-cart-items .product-short-description {
	display: -webkit-box;
	font-weight: 400;
	font-size: 10px;
	line-height: 1.2;
	letter-spacing: 0;
	margin: 7px 0 0;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	max-width: 116px;
}

.my-mini-cart-items .quantity input {
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	letter-spacing: -0.9px;
	border: 0;
	padding: 0;
	-moz-appearance: textfield;
	text-align: center;
	color: var(--wp--preset--color--midnight-green);
	width: 100%;
}

.my-mini-cart-items .quantity input::-webkit-outer-spin-button,
.my-mini-cart-items .quantity input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.my-mini-cart-items .quantity button {
	font-weight: 400;
	font-size: 20px;
	line-height: 1;
	letter-spacing: -0.9px;
	border: 0;
	background: unset;
	padding: 0;
	color: var(--wp--preset--color--midnight-green);
}

.woocommerce-mini-cart-item.mini_cart_item td {
	border-bottom: 0.5px solid #00485633;
}

.woocommerce-mini-cart-item.mini_cart_item td.total-column {
	position: relative;
}

.my-mini-cart-items .remove {
	content: url("/wp-content/themes/honest-peptide/src/assets/img/mdi_bin-outline.svg");
	bottom: 8px;
	position: absolute;
	right: 0;
}

.my-mini-cart-footer {
	padding-top: 30px;
	border-radius: 15px 0 0 0;
	background: #fff;
}

.my-mini-cart-footer--bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 50px 0 39px;
	font-weight: 700;
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 1px;
	margin: 0;
}

.my-mini-cart-footer--bottom span {
	font-size: 18px;
	line-height: 1.2;
	letter-spacing: 1px;
}

.my-checkout-agree-label {
	padding: 22px 0 22px 41px;
	display: flex;
	gap: 12px;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0;
	align-items: center;
}

.my-checkout-agree-label::before {
	display: block;
	width: 14px;
	min-width: 14px;
	height: 14px;
	border: 1px solid #004856;
	border-radius: 2px;
	content: '';
}

.my-checkout-agree-label input {
	opacity: 0;
	position: absolute;
	z-index: 1;
}

.my-checkout-agree-label:has(input:checked)::before {
	content: url("/wp-content/themes/honest-peptide/src/assets/img/checked.svg");
	border: 0;
}

/* Error feedback for checkout agreement */
/*.my-checkout-agree-label.has-error::before {*/
/*	border-color: #D93025;*/
/*	box-shadow: 0 0 0 1px #D93025 inset;*/
/*}*/
.my-checkout-agree-label.has-error {
	padding: 22px 0 5px 41px;
}

.my-checkout-agree-error {
	display: none;
	color: #A40000;
	font-size: 10px;
	letter-spacing: 0;
	font-style: italic;
	line-height: 1.3;
	padding: 0 27px 34px 68px;
}

.my-checkout-agree-error.is-visible {
	display: block;
}

@keyframes my-mini-cart-shake {
	0%, 100% {
		transform: translateX(0);
	}
	20% {
		transform: translateX(-3px);
	}
	40% {
		transform: translateX(3px);
	}
	60% {
		transform: translateX(-2px);
	}
	80% {
		transform: translateX(2px);
	}
}

.my-checkout-agree-label.shake {
	animation: my-mini-cart-shake 0.4s ease;
}

.my-mini-cart-footer .my-checkout-button, .my-mini-cart-empty-button {
	margin: 0 27px 35px 39px;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 42px;
	background: #004856;
	border-radius: 30px;
	color: white;
	text-decoration: none;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 1px;
	transition: all 0.3s ease-in-out;
	border: none;
	cursor: pointer;
}

.my-mini-cart-empty-button {
	max-width: 237px;
	text-decoration: none;
	width: 100%;
}

.my-mini-cart-footer .my-checkout-button:hover, .my-mini-cart-empty-button:hover {
	cursor: pointer;
	box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.6);
}

.my-mini-cart-empty {
	text-align: center;
	padding: 0;
	margin: 0 0 20px;
}

body.my-mini-cart-open {
	overflow: hidden;
}

.my-mini-cart-table .product-column {
	width: 50%;
}

@media (max-width: 768px) {
	.my-mini-cart-table .product-column {
		width: 70%;
	}
}

.my-mini-cart-table thead th {
	border-bottom: 0.5px solid #00485633;
	padding: 0 0 7px;
}

.my-mini-cart-table thead th {
	text-align: start;
	font-weight: 400;
	font-size: 14px;
	line-height: 1.2;
	letter-spacing: 0;
	color: #004856B2;
}

.my-mini-cart-table .product-details {
	display: flex;
	gap: 22px;
	text-decoration: none;
}

.woocommerce-mini-cart-item.mini_cart_item td {
	padding: 12px 0 15px !important;
	vertical-align: top;
}

.my-mini-cart-table .attachment-woocommerce_thumbnail.size-woocommerce_thumbnail {
	width: 75px;
	height: 85px;
	object-fit: cover;
	border-radius: 5px;
}

.my-mini-cart-table .product-info a {
	text-decoration: none;
}

.my-mini-cart-table .product-name {
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
	letter-spacing: 0;
	text-decoration: none;
}

.my-mini-cart-popup-content:has(.my-mini-cart-empty) .my-mini-cart-footer {
	display: none !important;
}

@media (max-width: 800px) {
	.my-mini-cart-popup {
		right: -300px;
		width: 100%;
	}

	.my-mini-cart-items .quantity button {
		font-size: 12px;
		padding: 0;
		font-weight: 500;
		min-width: 15px;
		text-align: start;
	}

	.my-mini-cart-items .quantity button.plus-button {
		text-align: end;
	}

	.my-mini-cart-popup .product-info {
		display: flex;
		flex-direction: column;
	}

	.my-mini-cart-table thead {
		display: none;
	}

	.my-mini-cart-table {
		border-top: 0.5px solid #00485633
	}

	.my-mini-cart-popup-content--head {
		padding: 22px 15px 15px 18px;
	}

	.my-mini-cart-items {
		padding: 11px 16px 16px 18px;
		margin-bottom: 10px;
	}

	.my-mini-cart-items .total-column {
		/*font-weight: 400 !important;*/
		/*font-size: 10px !important;*/
		text-align: end;
	}

	.woocommerce-mini-cart-item.mini_cart_item td.total-column {
		font-size: 14px;
		line-height: 1.2;
	}

	.my-mini-cart-items .quantity input {
		font-size: 12px;
	}

	.my-mini-cart-items .quantity-column {
		display: none;
	}

	.my-mini-cart-table .product-details {
		gap: 11px;
	}

	.my-mini-cart-items .quantity-column--mobile {
		display: flex;
		margin-block-start: auto;
		flex-direction: column;
	}

	.my-mini-cart-items .product-short-description {
		margin: 2px 0 0;
		-webkit-line-clamp: 1;
		max-width: 76px;
	}

	.my-mini-cart-items .quantity {
		padding: 0 6.5px;
		max-width: 76px;
		margin-top: 12px;
		height: 22px;
		gap: 0 !important;
	}

	.woocommerce-mini-cart-item.mini_cart_item td {
		padding: 16px 0 15px !important;
	}

	.my-mini-cart-items .remove {
		bottom: 15px;
		right: 0;
	}

	.my-mini-cart-table .product-name {
		font-size: 14px;
		font-weight: 600;
	}

	.my-mini-cart-footer {
		padding-top: 26px;
	}

	.my-mini-cart-footer--bottom {
		padding: 0 20px;
		font-size: 16px;
	}

	.my-mini-cart-footer--bottom span {
		font-size: 16px;
	}

	.my-checkout-agree-label {
		padding: 20px 20px 18px 24px;
		gap: 9px;
		font-size: 12px;
	}

	.my-checkout-agree-label::before {
		width: 18px;
		min-width: 18px;
		height: 18px;

	}

	.my-checkout-agree-label:has(input:checked)::before {
		content: url("/wp-content/themes/honest-peptide/src/assets/img/mobile-check.svg");
		border: 0;
	}

	.my-mini-cart-footer .my-checkout-button {
		margin: 0 20px 20px;
	}

	.my-mini-cart-empty-button {
		margin: 0 0 20px;
	}
}
