/**
 * Cyberspace Jung Commerce — elegant BuddyBoss/WooCommerce mini cart.
 * Kept separate from the landing bundle because the site header is global.
 */

.site-header .header-cart-link-wrap .notification-dropdown {
	right: -14px;
	top: calc(100% - 6px);
	width: 440px;
	min-width: 440px;
	max-width: 440px;
	overflow: hidden;
	border: 1px solid rgba(82, 15, 125, .12);
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(37, 16, 52, .16), 0 4px 16px rgba(15, 23, 42, .07);
}

.site-header .header-cart-link-wrap .notification-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 66px;
	padding: 17px 20px;
	border-bottom: 1px solid #ece7f0;
	background:
		radial-gradient(circle at 96% 0, rgba(118, 49, 159, .09), transparent 42%),
		#fff;
}

.site-header .header-cart-link-wrap .notification-header .title {
	margin: 0;
	color: #1b2333;
	font-size: 18px;
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -.02em;
}

.site-header .header-cart-link-wrap .notification-header .header-view-cart-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 7px 12px;
	border: 1px solid rgba(82, 15, 125, .14);
	border-radius: 999px;
	background: #f8f3fb;
	color: #520f7d;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none;
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.site-header .header-cart-link-wrap .notification-header .header-view-cart-link:hover,
.site-header .header-cart-link-wrap .notification-header .header-view-cart-link:focus-visible {
	border-color: rgba(82, 15, 125, .28);
	background: #f0e5f6;
	color: #3e095f;
	transform: translateY(-1px);
}

.site-header .header-mini-cart {
	overflow: hidden;
	background: #fff;
}

.site-header .header-mini-cart ul.cart_list {
	margin: 0;
	padding: 8px 0;
	background: #fff;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item {
	display: block;
	position: relative;
	min-height: 98px;
	padding: 17px 52px 17px 112px;
	border: 0;
	background: transparent;
	transition: background-color .18s ease;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item + li.mini_cart_item::before {
	content: "";
	position: absolute;
	top: 0;
	right: 18px;
	left: 18px;
	height: 1px;
	background: #f0edf2;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item:hover {
	background: #fbf9fc;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a:not(.remove) {
	display: block;
	max-width: none;
	margin: 0;
	overflow: visible;
	color: #252b3a;
	font-size: 14px;
	font-weight: 750;
	line-height: 1.38;
	white-space: normal;
	text-overflow: clip;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a:not(.remove):hover {
	color: #520f7d;
}

.site-header .header-mini-cart ul.cart_list img.attachment-woocommerce_thumbnail,
.site-header .header-mini-cart ul.cart_list img.woocommerce-placeholder,
.site-header .header-mini-cart ul.cart_list img.csp-jung-cart-product-image {
	position: absolute;
	top: 17px;
	left: 18px;
	float: none;
	width: 78px;
	max-width: 78px;
	height: 64px;
	margin: 0;
	border: 1px solid rgba(82, 15, 125, .09);
	border-radius: 13px;
	background: #f6f3f8;
	box-shadow: 0 8px 20px rgba(40, 18, 54, .11);
	object-fit: cover;
	object-position: center;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item span.quantity {
	display: block;
	margin: 7px 0 0;
	color: #7c7183;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
	white-space: normal;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item span.quantity .amount {
	color: #520f7d;
	font-weight: 850;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove {
	display: grid;
	position: absolute;
	top: 50%;
	right: 17px;
	width: 28px;
	height: 28px;
	margin: 0;
	padding: 0;
	place-items: center;
	border: 1px solid #ebe5ee;
	border-radius: 50%;
	background: #fff;
	color: transparent;
	font-size: 0;
	line-height: 1;
	transform: translateY(-50%);
	transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove::before {
	content: "\00d7";
	color: #776b7e;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove:hover,
.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove:focus-visible {
	border-color: #e5d5ec;
	background: #f7effa;
	transform: translateY(-50%) scale(1.04);
}

.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove:hover::before,
.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove:focus-visible::before {
	color: #520f7d;
}

.site-header .header-mini-cart p.woocommerce-mini-cart__total {
	display: flex;
	float: none;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 58px;
	margin: 0;
	padding: 13px 20px 8px;
	border-top: 1px solid #ece7f0;
	background: #fff;
	color: #7a7180;
	font-size: 13px;
	line-height: 1.35;
}

.site-header .header-mini-cart p.woocommerce-mini-cart__total strong {
	color: #7a7180;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .02em;
}

.site-header .header-mini-cart p.woocommerce-mini-cart__total .amount {
	color: #202637;
	font-size: 18px;
	font-weight: 850;
	letter-spacing: -.02em;
}

.site-header .header-mini-cart p.woocommerce-mini-cart__buttons {
	display: block;
	float: none;
	width: 100%;
	margin: 0;
	padding: 7px 20px 20px;
	background: #fff;
	line-height: 1;
}

.site-header .header-mini-cart p.woocommerce-mini-cart__buttons a.button.checkout {
	display: inline-flex;
	float: none;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #661497, #4d0c76);
	box-shadow: 0 11px 24px rgba(82, 15, 125, .23);
	color: #fff;
	font-size: 14px;
	font-weight: 850;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: box-shadow .18s ease, transform .18s ease, filter .18s ease;
}

.site-header .header-mini-cart p.woocommerce-mini-cart__buttons a.button.checkout:hover,
.site-header .header-mini-cart p.woocommerce-mini-cart__buttons a.button.checkout:focus-visible {
	filter: brightness(1.06);
	box-shadow: 0 14px 28px rgba(82, 15, 125, .3);
	transform: translateY(-1px);
}

.site-header .header-mini-cart p.woocommerce-mini-cart__empty-message {
	margin: 0;
	padding: 28px 20px;
	background: #fff;
	color: #756b7c;
	font-size: 13px;
	text-align: center;
}

.site-header a.header-cart-link span.count {
	min-width: 18px;
	height: 18px;
	padding: 1px 5px;
	border: 2px solid var(--bb-header-background, #fff);
	border-radius: 999px;
	box-shadow: 0 3px 9px rgba(82, 15, 125, .24);
	font-size: 9px;
	font-weight: 800;
	line-height: 12px;
	text-align: center;
}

@media (max-width: 543px) {
	.site-header .header-cart-link-wrap .notification-dropdown {
		right: -10px;
		width: calc(100vw - 24px);
		min-width: calc(100vw - 24px);
		max-width: calc(100vw - 24px);
		border-radius: 18px;
	}

	.site-header .header-cart-link-wrap .notification-header {
		min-height: 60px;
		padding: 14px 16px;
	}

	.site-header .header-mini-cart ul.cart_list li.mini_cart_item {
		min-height: 88px;
		padding: 14px 46px 14px 94px;
	}

	.site-header .header-mini-cart ul.cart_list img.attachment-woocommerce_thumbnail,
	.site-header .header-mini-cart ul.cart_list img.woocommerce-placeholder,
	.site-header .header-mini-cart ul.cart_list img.csp-jung-cart-product-image {
		top: 14px;
		left: 16px;
		width: 64px;
		max-width: 64px;
		height: 58px;
		border-radius: 11px;
	}

	.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove {
		right: 13px;
	}

	.site-header .header-mini-cart p.woocommerce-mini-cart__total {
		padding-right: 16px;
		padding-left: 16px;
	}

	.site-header .header-mini-cart p.woocommerce-mini-cart__buttons {
		padding-right: 16px;
		padding-bottom: 16px;
		padding-left: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header .header-cart-link-wrap .notification-header .header-view-cart-link,
	.site-header .header-mini-cart ul.cart_list li.mini_cart_item,
	.site-header .header-mini-cart ul.cart_list li.mini_cart_item > a.remove,
	.site-header .header-mini-cart p.woocommerce-mini-cart__buttons a.button.checkout {
		transition: none;
	}
}
