/* GricGroup mini-cart drawer. Loaded after the legacy theme stylesheet. */
.gg-native-theme .gg-cart-panel {
	--gg-cart-drawer-width: 430px;
	--gg-cart-edge: 24px;
	--gg-cart-control: 34px;
	right: calc(-1 * var(--gg-cart-drawer-width)) !important;
	width: var(--gg-cart-drawer-width) !important;
	max-width: 100vw !important;
	padding: 0 !important;
	background: #f7f9fc !important;
	color: #162d57 !important;
	box-shadow: -12px 0 28px rgba(10, 28, 58, 0.18) !important;
}

.gg-native-theme .gg-cart-panel.is-open {
	right: 0 !important;
}

.gg-native-theme .gg-cart-panel .gg-panel-close {
	top: 20px;
	right: 20px;
	left: auto;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 4px;
	color: #fff;
	font-size: 27px;
	font-weight: 300;
	transition: background-color 180ms ease-out, border-color 180ms ease-out;
}

.gg-native-theme .gg-cart-panel .gg-panel-close::before {
	content: none;
}

.gg-native-theme .gg-cart-panel .gg-panel-close:hover,
.gg-native-theme .gg-cart-panel .gg-panel-close:focus-visible {
	border-color: #77afe8;
	background: #77afe8;
	outline: none;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart {
	height: 100%;
	color: #162d57;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__header {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	min-height: 82px;
	padding: 17px 72px 17px var(--gg-cart-edge);
	background: #162d57;
	color: #fff;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__header h2,
.gg-native-theme .gg-cart-panel .gg-mini-cart__header p {
	margin: 0;
	color: inherit;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__header h2 {
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__header p {
	margin-top: 3px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	opacity: 0.76;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart {
	flex: 1 1 auto;
	max-height: none !important;
	padding: 18px var(--gg-cart-edge) 10px;
	background: #f7f9fc;
	scrollbar-width: thin;
	scrollbar-color: #a9b8cb transparent;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item {
	min-height: 0;
	margin: 0 0 12px;
	padding: 16px !important;
	border: 1px solid #dce4ee;
	border-radius: 6px;
	background: #fff;
	color: #162d57;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item + .woocommerce-mini-cart-item {
	padding-top: 16px !important;
	border-top: 1px solid #dce4ee;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__product-link,
.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item > .gg-mini-cart__product-link {
	display: grid;
	box-sizing: border-box;
	width: 100% !important;
	grid-template-columns: 76px minmax(0, 1fr);
	gap: 14px;
	align-items: start;
	padding: 0 54px 0 0;
	color: #162d57;
	text-decoration: none;
}

.gg-native-theme .gg-cart-panel a.gg-mini-cart__product-link:hover strong {
	color: #4f93d8;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__media,
.gg-native-theme .gg-cart-panel .gg-mini-cart__media img {
	display: block;
	width: 76px !important;
	height: 76px !important;
	max-width: 76px !important;
	margin: 0 !important;
	object-fit: contain;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__media {
	overflow: hidden;
	border: 1px solid #e5ebf2;
	border-radius: 4px;
	background: #fff;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__product-copy {
	display: flex;
	box-sizing: border-box;
	min-width: 0;
	flex-direction: column;
	gap: 6px;
	padding: 2px 38px 0 0;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__product-copy strong {
	display: -webkit-box;
	overflow: hidden;
	color: #162d57;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	transition: color 180ms ease-out;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__product-copy span {
	color: #6c7889;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.25;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item .remove {
	top: 12px !important;
	right: 12px;
	width: 30px;
	height: 30px;
	border-radius: 4px;
	background: transparent !important;
	color: #6c7889 !important;
	font-size: 22px;
	transition: background-color 180ms ease-out, color 180ms ease-out;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item .remove:hover,
.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item .remove:focus-visible {
	background: #edf3f9 !important;
	color: #162d57 !important;
	outline: none;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item .variation {
	margin: 8px 0 0 90px;
	color: #6c7889;
	font-size: 12px;
}

.gg-native-theme .gg-cart-panel .mini-cart-qty {
	display: grid;
	grid-template-columns: var(--gg-cart-control) 44px var(--gg-cart-control) minmax(64px, 1fr);
	width: calc(100% - 90px);
	margin: 13px 0 0 90px;
	color: #162d57;
}

.gg-native-theme .gg-cart-panel .mini-cart-qty__btn,
.gg-native-theme .gg-cart-panel .mini-cart-qty__input {
	width: auto;
	height: var(--gg-cart-control);
	min-width: 0;
	min-height: var(--gg-cart-control);
	border: 1px solid #cad5e2;
	border-radius: 0;
	box-shadow: none;
}

.gg-native-theme .gg-cart-panel .mini-cart-qty__btn {
	background: #edf3f9;
	color: #162d57;
	font-size: 17px;
	transition: background-color 180ms ease-out, color 180ms ease-out;
}

.gg-native-theme .gg-cart-panel .mini-cart-qty__btn:first-child {
	border-radius: 4px 0 0 4px;
}

.gg-native-theme .gg-cart-panel .mini-cart-qty__btn:nth-child(3) {
	border-radius: 0 4px 4px 0;
}

.gg-native-theme .gg-cart-panel .mini-cart-qty__btn:hover,
.gg-native-theme .gg-cart-panel .mini-cart-qty__btn:focus-visible {
	background: #77afe8;
	color: #fff;
	outline: none;
}

.gg-native-theme .gg-cart-panel .mini-cart-qty__input {
	border-right: 0;
	border-left: 0;
	background: #fff;
	color: #162d57;
	font-size: 13px;
	font-weight: 700;
	line-height: var(--gg-cart-control);
}

.gg-native-theme .gg-cart-panel .mini-cart-qty__price {
	justify-self: end;
	align-self: center;
	color: #4f93d8;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__total {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 58px;
	margin: 0;
	padding: 12px var(--gg-cart-edge);
	border-top: 1px solid #dce4ee;
	background: #fff;
	color: #162d57;
	font-size: 14px;
	font-weight: 600;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__total .amount {
	color: #162d57;
	font-size: 18px;
	font-weight: 700;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__buttons {
	flex: 0 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	margin: 0;
	padding: 14px var(--gg-cart-edge) max(20px, env(safe-area-inset-bottom));
	background: #fff;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__buttons a {
	height: 48px;
	border: 1px solid #162d57;
	border-radius: 4px;
	background: #fff;
	color: #162d57;
	font-size: 14px;
	font-weight: 700;
	transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__buttons a:hover,
.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__buttons a:focus-visible {
	background: #edf3f9;
	outline: none;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__buttons .checkout {
	border-color: #4f93d8;
	background: linear-gradient(100deg, #162d57 0%, #77afe8 100%);
	color: #fff;
}

.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__buttons .checkout:hover,
.gg-native-theme .gg-cart-panel .woocommerce-mini-cart__buttons .checkout:focus-visible {
	border-color: #162d57;
	background: #162d57;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__empty {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 40px 32px;
	text-align: center;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__empty-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 22px;
	border-radius: 50%;
	background: #e8f2fc;
	color: #4f93d8;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__empty-icon svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__empty h3 {
	margin: 0;
	color: #162d57;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__empty p {
	max-width: 290px;
	margin: 10px 0 22px;
	color: #5f6e82;
	font-size: 14px;
	line-height: 1.55;
}

.gg-native-theme .gg-cart-panel .gg-mini-cart__empty a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 22px;
	border-radius: 4px;
	background: linear-gradient(100deg, #162d57 0%, #77afe8 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

@media (min-width: 761px) {
	.gg-native-theme .gg-cart-panel {
		right: calc(-1 * var(--gg-cart-drawer-width)) !important;
		width: var(--gg-cart-drawer-width) !important;
		padding: 0 !important;
	}
}

@media (max-width: 760px) {
	.gg-native-theme .gg-cart-panel {
		--gg-cart-drawer-width: 100vw;
		--gg-cart-edge: 18px;
		left: 0 !important;
		right: -100vw !important;
		width: 100vw !important;
		padding: 0 !important;
	}

	.gg-native-theme .gg-cart-panel.is-open {
		right: 0 !important;
	}

	.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item {
		padding: 14px !important;
	}

	.gg-native-theme .gg-cart-panel .gg-mini-cart__product-link,
	.gg-native-theme .gg-cart-panel .woocommerce-mini-cart-item > .gg-mini-cart__product-link {
		grid-template-columns: 70px minmax(0, 1fr);
		gap: 12px;
	}

	.gg-native-theme .gg-cart-panel .gg-mini-cart__media,
	.gg-native-theme .gg-cart-panel .gg-mini-cart__media img {
		width: 70px !important;
		height: 70px !important;
		max-width: 70px !important;
	}

	.gg-native-theme .gg-cart-panel .mini-cart-qty {
		width: calc(100% - 82px);
		margin-left: 82px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gg-native-theme .gg-cart-panel *,
	.gg-native-theme .gg-cart-panel *::before,
	.gg-native-theme .gg-cart-panel *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}

/* Pack selectors replace three unit controls and need a full-width layout. */
body.gg-native-theme .gg-cart-panel .mini-cart-qty:has(> .gric-pack-picker) {
 display: flex !important; flex-direction: column; align-items: flex-start; gap: 8px;
 width: 100%; min-width: 0; margin: 14px 0 0;
}
body.gg-native-theme .gg-cart-panel .mini-cart-qty > .gric-pack-picker {
 width: 100%; min-width: 0; max-width: 100%; margin: 0; align-items: flex-start; gap: 8px;
}
body.gg-native-theme .gg-cart-panel .mini-cart-qty .gric-pack-caption {
 display: block; width: 100%; text-align: left; line-height: 1.4; overflow-wrap: break-word;
}
body.gg-native-theme .gg-cart-panel .mini-cart-qty:has(> .gric-pack-picker) > .mini-cart-qty__price {
 position: static; align-self: flex-start; width: auto; margin: 0; line-height: 1.4;
}
body.gg-native-theme .gg-cart-panel .mini-cart-qty:has(> .gric-pack-picker) > .mini-cart-qty__price .amount { white-space: nowrap; }
body.gg-native-theme .gg-cart-panel .mini-cart-qty:has(> .gric-pack-picker) > .mini-cart-qty__price small { display: inline; white-space: normal; font-weight: 400; }
