/*
 * The Elementor global kit paints every bare <button> with the brand colour,
 * which turned unselected cards into solid purple blocks with dark text.
 * The card surface, text and border are therefore all declared explicitly.
 */

.hg-pkg-grid-wrap {
	margin: 0 0 18px;
}

.hg-pkg-grid-wrap .hg-pkg-heading {
	display: block;
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.hg-pkg-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hg-pkg-grid .hg-pkg-card,
form.cart .hg-pkg-grid .hg-pkg-card,
.woocommerce div.product form.cart .hg-pkg-grid .hg-pkg-card {
	position: relative;
	display: flex !important;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 4px;
	min-height: 72px;
	width: 100%;
	margin: 0 !important;
	padding: 12px 14px !important;
	border: 2px solid #dcdee8 !important;
	border-radius: 12px !important;
	background: #fff !important;
	background-color: #fff !important;
	background-image: none !important;
	color: #111111 !important;
	font: inherit;
	text-align: left;
	text-transform: none !important;
	letter-spacing: normal;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.hg-pkg-grid .hg-pkg-card:hover:not([disabled]),
.woocommerce div.product form.cart .hg-pkg-grid .hg-pkg-card:hover:not([disabled]) {
	border-color: #5e33df !important;
	background: #fff !important;
	color: #111111 !important;
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(94, 51, 223, .14);
}

.hg-pkg-grid .hg-pkg-card:focus-visible {
	outline: 3px solid #5e33df !important;
	outline-offset: 2px;
}

.hg-pkg-grid .hg-pkg-card[aria-pressed="true"],
.woocommerce div.product form.cart .hg-pkg-grid .hg-pkg-card[aria-pressed="true"] {
	border-color: #5e33df !important;
	background: #f3effd !important;
	background-color: #f3effd !important;
	color: #111111 !important;
	box-shadow: inset 0 0 0 1px #5e33df;
}

.hg-pkg-grid .hg-pkg-card[disabled] {
	opacity: .45;
	cursor: not-allowed;
}

.hg-pkg-grid .hg-pkg-name {
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: #111111;
}

.hg-pkg-grid .hg-pkg-price {
	font-size: 16px;
	font-weight: 800;
	line-height: 1.2;
	color: #5e33df;
}

.hg-pkg-grid .hg-pkg-was {
	margin-left: 6px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: line-through;
	opacity: .55;
	color: #595959;
}

.hg-pkg-grid .hg-pkg-flag {
	position: absolute;
	top: -9px;
	right: 10px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #5e33df;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .3px;
	line-height: 1.6;
}

.hg-pkg-grid-wrap .hg-pkg-reset,
.woocommerce div.product form.cart .hg-pkg-grid-wrap .hg-pkg-reset {
	display: inline-block !important;
	margin-top: 10px !important;
	min-height: 0 !important;
	font-size: 13px;
	font-weight: 600;
	color: #5e33df !important;
	background: none !important;
	background-color: transparent !important;
	border: 0 !important;
	padding: 6px 0 !important;
	cursor: pointer;
	text-decoration: underline;
	text-transform: none !important;
}

.hg-pkg-grid-wrap .hg-pkg-reset[hidden] {
	display: none !important;
}

.hg-pkg-hidden-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.hg-pkg-active table.variations th.label,
.hg-pkg-active table.variations .reset_variations {
	display: none !important;
}

.hg-pkg-active table.variations,
.hg-pkg-active table.variations tr,
.hg-pkg-active table.variations td {
	margin: 0 !important;
	padding: 0 !important;
}

@media (max-width: 480px) {
	.hg-pkg-grid {
		grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
		gap: 8px;
	}
	.hg-pkg-grid .hg-pkg-card {
		min-height: 66px;
		padding: 10px 12px !important;
	}
	.hg-pkg-grid .hg-pkg-name { font-size: 13px; }
	.hg-pkg-grid .hg-pkg-price { font-size: 15px; }
}

body.jeg_dark .hg-pkg-grid .hg-pkg-card,
body.dark-mode .hg-pkg-grid .hg-pkg-card {
	background: #16181d !important;
	background-color: #16181d !important;
	border-color: #2f323c !important;
	color: #f3f4f8 !important;
}

body.jeg_dark .hg-pkg-grid .hg-pkg-name,
body.dark-mode .hg-pkg-grid .hg-pkg-name {
	color: #f3f4f8;
}

body.jeg_dark .hg-pkg-grid .hg-pkg-price,
body.dark-mode .hg-pkg-grid .hg-pkg-price {
	color: #b79bff;
}

body.jeg_dark .hg-pkg-grid .hg-pkg-card[aria-pressed="true"],
body.dark-mode .hg-pkg-grid .hg-pkg-card[aria-pressed="true"] {
	background: #241b3d !important;
	background-color: #241b3d !important;
}
