/* --------------------------------------------------------------------------
 * GRZ Gaming — approved separated purchase rail (v1.9.8)
 *
 * Right rail only. The hero, page grid and Step 1 package selector are not
 * styled by this layer.
 * ----------------------------------------------------------------------- */

body.single-product.grz-product-design .grz-tp-rail {
	--grz-rail-ink: #10203a;
	--grz-rail-muted: #69758a;
	--grz-rail-line: #d9e1ec;
	gap: 12px;
}

body.single-product.grz-product-design .grz-tp-rail > .grz-tp-card {
	border: 1px solid var(--grz-rail-line);
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 12px 28px rgba(4, 25, 52, .13);
}

/* Selected package is a distinct first card, exactly as in the approved rail. */
body.single-product.grz-product-design .grz-tp-card--selected-package {
	overflow: hidden;
}

body.single-product.grz-product-design .grz-tp-selected-package {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) 24px;
	align-items: center;
	gap: 13px;
	width: 100%;
	min-height: 82px;
	padding: 11px 14px;
	border: 0;
	background: #fff;
	color: var(--grz-rail-ink);
	font: inherit;
	text-align: start;
	cursor: pointer;
}

body.single-product.grz-product-design .grz-tp-selected-package:hover,
body.single-product.grz-product-design .grz-tp-selected-package:focus-visible {
	background: #f8fbff;
}

body.single-product.grz-product-design .grz-tp-selected-package:focus-visible {
	outline: 3px solid rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .2);
	outline-offset: -3px;
}

body.single-product.grz-product-design .grz-tp-selected-package__media {
	display: block;
	width: 58px;
	height: 58px;
	overflow: hidden;
	border: 1px solid #d5deea;
	border-radius: 8px;
	background: #eef3f9;
}

body.single-product.grz-product-design .grz-tp-selected-package__img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: cover;
}

body.single-product.grz-product-design .grz-tp-selected-package__copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

body.single-product.grz-product-design .grz-tp-selected-package__copy strong {
	overflow: hidden;
	color: var(--grz-rail-ink);
	font-size: 14px;
	font-weight: 850;
	line-height: 1.25;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body.single-product.grz-product-design .grz-tp-selected-package__copy small {
	color: var(--grz-rail-muted);
	font-size: 10.5px;
	font-weight: 600;
}

body.single-product.grz-product-design .grz-tp-selected-package__arrow {
	display: grid;
	place-items: center;
	color: var(--grz-tp-accent, #0762e6);
}

body.single-product.grz-product-design .grz-tp-selected-package__arrow svg {
	width: 21px;
	height: 21px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.2;
}

/* Quantity stays in its own second card instead of being compressed into Total. */
body.single-product.grz-product-design .grz-tp-card--quantity > .grz-tp-card__body {
	padding: 0;
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-card--quantity .grz-tp-qty--action {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	min-height: 76px;
	padding: 12px 16px;
	border: 0;
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-card--quantity .grz-tp-qty__compact-copy {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

body.single-product.grz-product-design .grz-tp-card--quantity .grz-tp-qty__compact-label {
	position: static;
	width: auto;
	height: auto;
	overflow: visible;
	clip: auto;
	clip-path: none;
	color: var(--grz-rail-ink);
	font-size: 13px;
	font-weight: 850;
}

body.single-product.grz-product-design .grz-tp-card--quantity .grz-tp-qty__compact-copy small {
	color: var(--grz-rail-muted);
	font-size: 9.5px;
	font-weight: 600;
}

body.single-product.grz-product-design .grz-tp-card--quantity .quantity {
	display: grid;
	grid-template-columns: 38px 38px 38px;
	flex: 0 0 114px;
	width: 114px;
	height: 42px;
	overflow: hidden;
	border: 1px solid #bdc8d8;
	border-radius: 7px;
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-card--quantity .grz-tp-qty__btn,
body.single-product.grz-product-design .grz-tp-card--quantity .quantity .qty {
	width: auto;
	height: 40px;
	min-height: 40px;
	border: 0;
	background: #fff;
	line-height: 40px;
	text-align: center;
}

body.single-product.grz-product-design .grz-tp-card--quantity .quantity .qty {
	border-inline: 1px solid #dbe2ec;
}

/* Player account remains conditional and keeps the real validator/input DOM. */
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--account .grz-tp-card__head {
	min-height: 58px;
	padding: 13px 16px;
	background: #fff;
}

/* Total card mirrors the approved hierarchy: Total, savings, Diamonds, actions. */
body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary {
	overflow: hidden;
}

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

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total {
	min-height: 78px;
	padding: 16px 17px 10px;
	border: 0;
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-total__label {
	color: var(--grz-rail-ink);
	font-size: 17px;
	font-weight: 850;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-total__now {
	color: var(--grz-tp-accent-dark, #0653c9);
	font-size: clamp(25px, 2.1vw, 31px);
	font-weight: 900;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-list {
	display: grid;
	gap: 0;
	margin: 0 17px;
	padding: 4px 0 13px;
	border-bottom: 1px solid var(--grz-rail-line);
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row {
	display: grid;
	grid-template-columns: minmax(100px, 1fr) minmax(0, 1fr);
	align-items: center;
	min-height: 36px;
	padding: 5px 0;
	border: 0;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row[hidden] {
	display: none !important;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row dt {
	color: var(--grz-rail-muted);
	font-size: 11px;
	font-weight: 650;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row dd {
	color: var(--grz-rail-ink);
	font-size: 11.5px;
	font-weight: 800;
	text-align: end;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row--save dd,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row--diamonds dd strong {
	color: #078344;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row--diamonds {
	min-height: 38px;
	margin: 0;
	padding: 5px 0;
	border: 0;
	border-radius: 0;
	background: #fff;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row--diamonds dt {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--grz-rail-muted);
	font-weight: 650;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-diamond {
	display: grid;
	width: 21px;
	height: 21px;
	place-items: center;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--grz-tp-accent, #0762e6);
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-diamond svg {
	width: 16px;
	height: 16px;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row--diamonds dd {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row--diamonds dd strong {
	font-size: 11.5px;
	font-weight: 850;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-row--diamonds dd small {
	color: #7a8598;
	font-size: 8.5px;
}

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;
	padding: 14px 16px 16px;
	background: #fff;
}

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;
	grid-template-columns: 92px minmax(0, 1fr);
	gap: 10px;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary button.grz-tp-add-cart-secondary {
	width: 92px;
	min-width: 92px;
	min-height: 50px;
	padding: 0;
	border: 1px solid var(--grz-tp-accent, #0762e6);
	border-radius: 7px;
	background: #fff;
	color: var(--grz-tp-accent-dark, #0653c9);
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-action-row .grz-tp-add-cart-secondary__label {
	position: absolute;
	width: 1px !important;
	height: 1px !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 .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 {
	width: 100%;
	min-height: 50px;
	margin: 0;
	border-radius: 7px;
	font-size: 12px;
	font-weight: 850;
	letter-spacing: .02em;
}

body.single-product.grz-product-design .grz-tp-rail .grz-tp-express-slot:not(:empty) {
	width: auto;
	margin: -5px 16px 16px;
}

/* The approved total card ends after Express Pay. */
body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-assurance,
body.single-product.grz-product-design .grz-tp-rail .grz-tp-secure {
	display: none;
}

@media (max-width: 620px) {
	body.single-product.grz-product-design .grz-tp-rail {
		gap: 11px;
	}

	body.single-product.grz-product-design .grz-tp-selected-package {
		grid-template-columns: 66px minmax(0, 1fr) 26px;
		min-height: 92px;
		padding: 12px 14px;
	}

	body.single-product.grz-product-design .grz-tp-selected-package__media {
		width: 66px;
		height: 66px;
	}

	body.single-product.grz-product-design .grz-tp-selected-package__copy strong {
		font-size: 14.5px;
	}

	body.single-product.grz-product-design .grz-tp-card--quantity .grz-tp-qty--action {
		min-height: 82px;
		padding: 13px 14px;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-card--summary .grz-tp-total {
		min-height: 75px;
		padding: 15px 15px 8px !important;
	}

	body.single-product.grz-product-design .grz-tp-rail .grz-tp-summary-list {
		margin-inline: 15px;
		padding-bottom: 12px;
	}

	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: 13px 14px 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: 86px minmax(0, 1fr) !important;
		gap: 9px;
	}

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

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

@media (max-width: 355px) {
	body.single-product.grz-product-design .grz-tp-selected-package {
		grid-template-columns: 58px minmax(0, 1fr) 22px;
		gap: 10px;
	}

	body.single-product.grz-product-design .grz-tp-selected-package__media {
		width: 58px;
		height: 58px;
	}

	body.single-product.grz-product-design .grz-tp-card--quantity .quantity {
		grid-template-columns: 34px 34px 34px;
		flex-basis: 102px;
		width: 102px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product.grz-product-design .grz-tp-rail :is(button, input) {
		transition: none;
	}
}

@media (forced-colors: active) {
	body.single-product.grz-product-design .grz-tp-rail > .grz-tp-card,
	body.single-product.grz-product-design .grz-tp-card--quantity .quantity {
		border-color: CanvasText;
	}
}
