.hgwa-product-notice,
.hgwa-checkout-consent {
	border: 1px solid #123f33;
	border-left: 4px solid #c9971a;
	border-radius: 6px;
	background: #123f33;
	color: #fff;
	padding: 11px 12px 12px;
	margin: 12px 0;
	font-size: 12.5px;
	box-shadow: 0 2px 7px rgba(10, 45, 36, 0.18);
}

.hgwa-checkout-consent h3 {
	margin: 0 0 8px !important;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #fff;
	font-size: 13.5px !important;
	font-weight: 700;
	line-height: 1.3;
}

.hgwa-checkout-consent p {
	margin: 0 0 7px;
	color: #fff;
	font-size: 12.5px;
	line-height: 1.4;
}

.hgwa-checkout-consent .hgwa-amounts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px;
	padding: 4px 0 7px;
}

.hgwa-checkout-consent .hgwa-amounts > span {
	padding: 5px 7px;
	border: 1px solid #d4a62f;
	border-radius: 4px;
	background: #fff;
	color: #27463b;
	font-size: 11.5px;
	line-height: 1.3;
}

.hgwa-checkout-consent .hgwa-amounts strong {
	display: block;
	margin-top: 1px;
	color: #173f32;
	font-size: 12.5px;
}

.hgwa-checkout-consent .hgwa-checkbox-row {
	margin: 1px 0 0 !important;
	padding: 7px 8px;
	border: 1px solid #d4a62f;
	border-radius: 4px;
	background: #fff;
	color: #132c24;
}

.hgwa-checkout-consent .woocommerce-form__label-for-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 7px;
	color: #132c24;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}

.hgwa-checkout-consent input[type="checkbox"] {
	width: 15px;
	height: 15px;
	margin-top: 1px;
	flex: 0 0 auto;
}

.hgwa-product-notice {
	font-size: 14px;
}

.hgwa-cart-authorization-notice {
	display: block;
	margin: 14px 0 12px;
	padding: 13px 14px;
	border: 1px solid #123f33;
	border-left: 4px solid #c9971a;
	border-radius: 8px;
	background: #123f33;
	color: #fff;
	box-shadow: 0 2px 7px rgba(10, 45, 36, 0.18);
}

.hgwa-cart-notice-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.hgwa-cart-notice-header > strong {
	color: #fff;
	font-size: 14px;
	line-height: 1.3;
}

.hgwa-cart-notice-badge {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	background: #c9971a;
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
}

.hgwa-cart-authorization-notice p {
	margin: 7px 0 10px;
	color: #fff;
	font-size: 12.5px;
	line-height: 1.4;
}

.hgwa-cart-notice-amounts {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
}

.hgwa-cart-notice-amounts > span {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 7px 8px;
	border: 1px solid #d4a62f;
	border-radius: 6px;
	background: #fff;
	color: #27463b;
	font-size: 11.5px;
	line-height: 1.3;
}

.hgwa-cart-notice-amounts strong {
	color: #173f32;
	font-size: 12.5px;
}

.woocommerce .cart_totals tr.fee th,
.woocommerce .cart_totals tr.fee td,
.cart_totals tr.fee th,
.cart_totals tr.fee td,
.woocommerce-checkout-review-order-table tr.fee th,
.woocommerce-checkout-review-order-table tr.fee td,
.woocommerce-checkout .shop_table tr.fee th,
.woocommerce-checkout .shop_table tr.fee td {
	padding: 9px 16px !important;
	padding-right: 16px !important;
	padding-left: 16px !important;
	border-top: 1px solid #c9971a !important;
	border-bottom: 1px solid #c9971a !important;
	background: #123f33 !important;
	color: #fff !important;
	font-size: 10.5px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	box-sizing: border-box !important;
	vertical-align: middle !important;
}

.woocommerce .cart_totals tr.fee th,
.cart_totals tr.fee th,
.woocommerce-checkout-review-order-table tr.fee th,
.woocommerce-checkout .shop_table tr.fee th {
	border-left: 4px solid #c9971a !important;
	border-radius: 5px 0 0 5px !important;
	width: 78% !important;
}

.woocommerce .cart_totals tr.fee td,
.cart_totals tr.fee td,
.woocommerce-checkout-review-order-table tr.fee td,
.woocommerce-checkout .shop_table tr.fee td {
	border-right: 1px solid #c9971a !important;
	border-radius: 0 5px 5px 0 !important;
	color: #fff !important;
	font-weight: 800 !important;
	text-align: right !important;
	white-space: nowrap !important;
	width: 22% !important;
}

.woocommerce .cart_totals tr.fee th *,
.woocommerce .cart_totals tr.fee td *,
.cart_totals tr.fee th *,
.cart_totals tr.fee td *,
.woocommerce-checkout-review-order-table tr.fee th *,
.woocommerce-checkout-review-order-table tr.fee td *,
.woocommerce-checkout .shop_table tr.fee th *,
.woocommerce-checkout .shop_table tr.fee td * {
	color: #fff !important;
	font-size: inherit !important;
	font-weight: inherit !important;
}

/* XStore reapplies muted colours during the AJAX checkout refresh. */
#order_review table.woocommerce-checkout-review-order-table tr.fee > th,
#order_review table.woocommerce-checkout-review-order-table tr.fee > td,
#order_review table.woocommerce-checkout-review-order-table tr.fee > th *,
#order_review table.woocommerce-checkout-review-order-table tr.fee > td * {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	opacity: 1 !important;
	text-shadow: none !important;
}

@media (max-width: 600px) {
	.hgwa-checkout-consent .hgwa-amounts {
		grid-template-columns: 1fr;
	}

	.hgwa-cart-authorization-notice {
		padding: 12px;
	}

	.hgwa-cart-notice-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 6px;
	}

	.hgwa-cart-notice-amounts {
		grid-template-columns: 1fr;
	}
}
