/* --------------------------------------------------------------------------
 * GRZ Gaming — compact purchase rail and clean payment separation (v2.0.5).
 *
 * Removes the shadow bloom between native purchase actions and PayPal,
 * restores optical cart-icon centering, tightens the receipt hierarchy, and
 * applies a crisp cobalt/graphite GRZ commerce palette.
 * ----------------------------------------------------------------------- */

body.single-product.grz-product-design .grz-tp-rail {
	--grz-rail-buy: var(--grz-product-buy, #175cd3);
	--grz-rail-buy-dark: var(--grz-product-buy-dark, #1447a6);
	--grz-rail-buy-rgb: var(--grz-product-buy-rgb, 23, 92, 211);
	--grz-rail-cart: var(--grz-product-cart, #344054);
	--grz-rail-cart-dark: var(--grz-product-cart-dark, #1d2939);
	--grz-rail-cart-rgb: var(--grz-product-cart-rgb, 52, 64, 84);
	--grz-rail-total: var(--grz-product-total, #101828);
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary {
	box-shadow: 0 14px 32px rgba(4, 25, 52, .16);
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary > .grz-tp-card__head {
	min-height: 52px;
	padding: 11px 16px !important;
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary > .grz-tp-card__body {
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto !important;
	align-items: start !important;
	gap: 12px !important;
	min-height: 64px !important;
	padding: 12px 16px 8px !important;
	border: 0 !important;
	background: #fff !important;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__label {
	align-self: start;
	justify-self: start;
	padding: 4px 0 0 !important;
	color: #1d2939;
	font-size: 16px;
	font-weight: 760;
	line-height: 1.1;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__prices {
	display: flex;
	min-width: 0;
	flex-direction: column;
	align-items: flex-end;
	justify-self: end;
	gap: 1px;
	text-align: right;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__now,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__now .amount,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__now bdi {
	color: var(--grz-rail-total);
	font-size: 27px;
	line-height: 1;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__was {
	font-size: 10px;
	line-height: 1.1;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-summary-list {
	display: grid !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 16px !important;
	padding: 0 0 7px !important;
	border-bottom: 1px solid #e1e7ef;
	box-sizing: border-box;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-summary-row {
	grid-template-columns: minmax(0, 1fr) auto !important;
	column-gap: 14px;
	width: 100%;
	min-height: 32px;
	padding: 4px 0;
	border: 0;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-summary-row dt,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-summary-row dd {
	margin: 0;
	line-height: 1.2;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .woocommerce-variation-add-to-cart,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-cart-actions {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 8px 16px !important;
	background: #fff;
	box-sizing: border-box;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-action-row,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-action-row.has-quantity,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-action-row:not(.has-quantity) {
	display: grid !important;
	grid-template-columns: 86px minmax(0, 1fr) !important;
	align-items: stretch !important;
	gap: 8px !important;
	width: 100% !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.grz-tp-add-cart-secondary,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .single_add_to_cart_button,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.single_add_to_cart_button.button.alt {
	align-self: stretch !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	border-radius: 6px;
	box-shadow: none !important;
	box-sizing: border-box;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.grz-tp-add-cart-secondary {
	position: relative;
	display: grid !important;
	width: auto !important;
	min-width: 0 !important;
	place-items: center;
	border-color: var(--grz-rail-cart);
	background: var(--grz-rail-cart);
	color: #fff;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.grz-tp-add-cart-secondary:hover:not(:disabled):not(.disabled) {
	border-color: var(--grz-rail-cart-dark);
	background: var(--grz-rail-cart-dark);
	box-shadow: none !important;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-add-cart-secondary__label {
	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;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-add-cart-secondary__icon,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-add-cart-secondary__icon svg {
	display: block;
	width: 21px;
	height: 21px;
	margin: 0;
	line-height: 0;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .single_add_to_cart_button,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.single_add_to_cart_button.button.alt {
	border-color: var(--grz-rail-buy-dark);
	background: var(--grz-rail-buy);
	color: #fff;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .single_add_to_cart_button:hover:not(:disabled):not(.disabled),
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.single_add_to_cart_button.button.alt:hover:not(:disabled):not(.disabled) {
	border-color: var(--grz-rail-buy-dark);
	background: var(--grz-rail-buy-dark);
	filter: none;
	box-shadow: none !important;
	transform: none;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.grz-tp-add-cart-secondary:focus-visible,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .single_add_to_cart_button:focus-visible {
	outline: 3px solid rgba(var(--grz-rail-buy-rgb), .24);
	outline-offset: 2px;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-express-slot:not(:empty) {
	display: block !important;
	align-self: stretch !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 16px 14px !important;
	padding: 0 !important;
	background: #fff;
	box-sizing: border-box;
	line-height: 0;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-express-slot :is(
	.ppc-button-wrapper,
	[id^="ppc-button-"]
) {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	box-sizing: border-box;
	line-height: 0;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-express-slot .ppcp-messages:not(:empty) {
	margin: 0 0 8px !important;
	line-height: normal;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-express-slot iframe {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	border: 0 !important;
	vertical-align: top;
}

@media (max-width: 620px) {
	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary > .grz-tp-card__head {
		min-height: 50px;
		padding: 10px 14px !important;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total {
		gap: 12px !important;
		min-height: 62px !important;
		padding: 11px 14px 8px !important;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__now,
	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__now .amount,
	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total__now bdi {
		font-size: 26px;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-summary-list {
		margin: 0 14px !important;
		padding: 0 0 6px !important;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-summary-row {
		min-height: 31px;
		padding: 4px 0;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .woocommerce-variation-add-to-cart,
	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-cart-actions {
		padding: 8px 14px !important;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-action-row,
	body.single-product.grz-product-design .grz-tp-rail .grz-tp-action-row.has-quantity,
	body.single-product.grz-product-design .grz-tp-rail .grz-tp-action-row:not(.has-quantity) {
		grid-template-columns: 72px minmax(0, 1fr) !important;
		gap: 8px !important;
		height: 48px !important;
		min-height: 48px !important;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.grz-tp-add-cart-secondary {
		width: auto !important;
		min-width: 0 !important;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-express-slot:not(:empty) {
		margin: 0 14px 14px !important;
	}
}

@media (forced-colors: active) {
	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary :is(
		button.grz-tp-add-cart-secondary,
		.single_add_to_cart_button
	) {
		border-color: ButtonText;
	}
}
