/* --------------------------------------------------------------------------
 * GRZ Gaming — premium purchase decision system (v1.8.6)
 *
 * The product atmosphere remains untouched. This layer concentrates contrast,
 * spacing and interaction detail inside the two places where the customer
 * makes a decision: package selection and the live WooCommerce order summary.
 * All price, variation, quantity and purchase nodes remain native/live.
 * ----------------------------------------------------------------------- */

body.single-product.grz-product-immersive {
	--grz-purchase-ink: #142039;
	--grz-purchase-muted: #647188;
	--grz-purchase-line: rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .12);
	--grz-purchase-line-strong: rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .19);
	--grz-purchase-soft: color-mix(in srgb, var(--grz-tp-accent, #0762e6) 4.5%, #fff);
	--grz-purchase-selected: color-mix(in srgb, var(--grz-tp-accent, #0762e6) 8%, #fff);
}

/* Package decision surface ------------------------------------------------ */
body.single-product.grz-product-immersive .grz-tp-card--package .grz-tp-card__head {
	position: relative;
}

body.single-product.grz-product-immersive .grz-tp-card--package .grz-tp-card__head::after {
	position: absolute;
	bottom: -1px;
	inset-inline-start: 20px;
	width: 54px;
	height: 2px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--grz-tp-accent, #0762e6), transparent);
	content: "";
	pointer-events: none;
}

body.single-product.grz-product-immersive .grz-tp-pills {
	gap: 10px;
}

body.single-product.grz-product-immersive .grz-tp-pill {
	min-height: 66px;
	border: 1px solid var(--grz-purchase-line-strong);
	border-radius: 10px;
	background: rgba(255, 255, 255, .84);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .92) inset,
		0 3px 10px rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .035);
	transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body.single-product.grz-product-immersive .grz-tp-pill:hover:not(:disabled) {
	border-color: rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .46);
	background: rgba(255, 255, 255, .97);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .94) inset,
		0 9px 22px rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .075);
	transform: translateY(-1px);
}

body.single-product.grz-product-immersive .grz-tp-pill.is-active {
	border: 2px solid var(--grz-tp-accent, #0762e6);
	background: linear-gradient(135deg, var(--grz-purchase-selected), #fff 78%);
	box-shadow:
		0 0 0 3px rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .08),
		0 10px 26px rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .115),
		0 1px 0 rgba(255, 255, 255, .96) inset;
	transform: none;
}

body.single-product.grz-product-immersive .grz-tp-pill__radio {
	inset-inline-start: 15px;
	width: 17px;
	height: 17px;
	border-color: #aebdd0;
}

body.single-product.grz-product-immersive .grz-tp-pill.is-active .grz-tp-pill__radio {
	border-color: var(--grz-tp-accent, #0762e6);
	background: var(--grz-tp-accent, #0762e6);
	box-shadow: 0 0 0 3px rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .12);
}

body.single-product.grz-product-immersive .grz-tp-pill.is-active .grz-tp-pill__radio::after {
	inset: 4px;
	background: #fff;
}

body.single-product.grz-product-immersive .grz-tp-pill__text {
	inset-inline-start: 46px;
	inset-inline-end: 148px;
}

body.single-product.grz-product-immersive .grz-tp-pill__label {
	color: #1a263a;
	font-size: 12.5px;
	font-weight: 760;
	letter-spacing: -.008em;
}

body.single-product.grz-product-immersive .grz-tp-pill__pricing {
	inset-inline-end: 13px;
	min-width: 112px;
	justify-content: flex-end;
}

body.single-product.grz-product-immersive .grz-tp-pill__price {
	color: var(--grz-tp-accent-dark, #064ec4);
	font-size: 13.5px;
	font-weight: 880;
	font-variant-numeric: tabular-nums;
}

body.single-product.grz-product-immersive .grz-tp-pill__regular {
	color: #7d899b;
}

body.single-product.grz-product-immersive .grz-tp-pill__discount {
	color: #087b45;
}

body.single-product.grz-product-immersive .grz-tp-pill:disabled,
body.single-product.grz-product-immersive .grz-tp-pill.is-unavailable {
	border-style: dashed;
	background: rgba(246, 248, 251, .82);
	box-shadow: none;
	filter: saturate(.45);
}

/* Segmented live summary -------------------------------------------------- */
body.single-product.grz-product-immersive .grz-tp-card--summary {
	overflow: clip;
	border-color: rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .17);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, .92) inset,
		0 18px 46px rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .13),
		0 34px 74px rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .06);
}

body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-card__head {
	padding: 18px 20px 15px;
	background: rgba(255, 255, 255, .7);
}

body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-card__body {
	padding: 0;
	background: rgba(253, 254, 255, .985);
}

body.single-product.grz-product-immersive .grz-tp-summary-list {
	gap: 0;
	padding: 10px 20px 8px;
}

body.single-product.grz-product-immersive .grz-tp-summary-row {
	min-height: 38px;
	align-items: center;
	padding: 8px 0;
	border-bottom: 1px solid var(--grz-purchase-line);
}

body.single-product.grz-product-immersive .grz-tp-summary-row:last-child,
body.single-product.grz-product-immersive .grz-tp-summary-row[hidden]:last-child {
	border-bottom: 0;
}

body.single-product.grz-product-immersive .grz-tp-summary-row:first-child {
	min-height: 48px;
}

body.single-product.grz-product-immersive .grz-tp-summary-row dt {
	color: var(--grz-purchase-muted);
	font-size: 11px;
	font-weight: 650;
	letter-spacing: .012em;
}

body.single-product.grz-product-immersive .grz-tp-summary-row dd {
	max-width: 68%;
	color: var(--grz-purchase-ink);
	font-size: 11.5px;
	font-weight: 790;
	line-height: 1.35;
}

body.single-product.grz-product-immersive .grz-tp-total {
	min-height: 78px;
	margin: 0;
	padding: 15px 20px 16px;
	border: 0;
	border-top: 1px solid var(--grz-purchase-line);
	border-bottom: 1px solid rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .12);
	border-radius: 0;
	background:
		linear-gradient(100deg, rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .075), rgba(255, 255, 255, .82) 62%),
		#f8fbff;
}

body.single-product.grz-product-immersive .grz-tp-total__label {
	padding-bottom: 5px;
	color: #45546c;
	font-size: 11.5px;
	font-weight: 720;
}

body.single-product.grz-product-immersive .grz-tp-total__now {
	color: var(--grz-tp-accent-dark, #064ec4);
	font-family: "Manrope", var(--grz-font, Inter, sans-serif);
	font-size: clamp(25px, 2vw, 30px);
	font-weight: 820;
	font-variant-numeric: tabular-nums;
	letter-spacing: -.045em;
}

body.single-product.grz-product-immersive .grz-tp-total__now.is-placeholder {
	max-width: 180px;
	color: #68758a;
	font-family: var(--grz-font, Inter, sans-serif);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.3;
	text-align: end;
}

body.single-product.grz-product-immersive .grz-tp-card--summary .single_variation_wrap {
	margin: 0;
	padding: 0;
}

body.single-product.grz-product-immersive .grz-tp-card--summary .woocommerce-variation-add-to-cart,
body.single-product.grz-product-immersive .grz-tp-form--simple .grz-tp-card--summary .grz-tp-cart-actions,
body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-cart-actions {
	margin: 0;
	padding: 16px 20px;
	border: 0;
	background: #fff;
}

body.single-product.grz-product-immersive .grz-tp-action-row {
	gap: 10px;
}

body.single-product.grz-product-immersive .grz-tp-action-row.has-quantity {
	grid-template-columns: 128px minmax(0, 1fr);
}

body.single-product.grz-product-immersive .grz-tp-qty--action .grz-tp-qty__compact-label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

body.single-product.grz-product-immersive .grz-tp-qty--action .quantity,
body.single-product.grz-product-immersive .grz-tp-qty--action .quantity {
	grid-template-columns: 44px 40px 44px;
	width: 128px;
	height: 48px;
	border-color: #c4d0df;
	border-radius: 8px;
	background: #fff;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
}

body.single-product.grz-product-immersive .grz-tp-qty--action .grz-tp-qty__btn {
	width: 44px;
	height: 46px;
	min-height: 46px;
	color: #34445d;
}

body.single-product.grz-product-immersive .grz-tp-qty--action .quantity .qty {
	width: 40px;
	height: 46px;
	min-height: 46px;
	line-height: 46px;
}

body.single-product.grz-product-immersive .grz-tp-qty--action .grz-tp-qty__btn:hover:not(:disabled) {
	background: var(--grz-purchase-soft);
	color: var(--grz-tp-accent-dark, #064ec4);
}

body.single-product.grz-product-immersive .grz-tp-card--summary button.grz-tp-add-cart-secondary {
	min-height: 48px;
	border: 1px solid #bfccdc;
	border-radius: 8px;
	background: #fff;
	color: var(--grz-tp-accent-dark, #064ec4);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset;
	transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

body.single-product.grz-product-immersive .grz-tp-card--summary button.grz-tp-add-cart-secondary:hover:not(:disabled) {
	border-color: rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .48);
	background: var(--grz-purchase-soft);
	box-shadow: 0 6px 16px rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .08);
	color: var(--grz-tp-accent-dark, #064ec4);
	transform: none;
}

body.single-product.grz-product-immersive .grz-tp-card--summary .single_add_to_cart_button,
body.single-product.grz-product-immersive .grz-tp-card--summary button.single_add_to_cart_button.button.alt {
	min-height: 50px;
	border: 1px solid color-mix(in srgb, var(--grz-tp-accent-dark, #064ec4) 86%, #000);
	border-radius: 8px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--grz-tp-accent, #0762e6) 88%, #fff), var(--grz-tp-accent-dark, #064ec4));
	box-shadow:
		0 12px 24px rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .22),
		0 1px 0 rgba(255, 255, 255, .25) inset;
	font-size: 12px;
	letter-spacing: .025em;
}

body.single-product.grz-product-immersive .grz-tp-card--summary .single_add_to_cart_button:hover:not(:disabled) {
	box-shadow:
		0 14px 28px rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .27),
		0 1px 0 rgba(255, 255, 255, .3) inset;
	filter: brightness(1.025);
	transform: translateY(-1px);
}

body.single-product.grz-product-immersive .grz-tp-card--summary :is(button, input):disabled,
body.single-product.grz-product-immersive .grz-tp-card--summary .wc-variation-selection-needed {
	box-shadow: none;
	filter: saturate(.45);
}

/* Product-configured reassurance is repeated at the point of purchase. */
body.single-product.grz-product-immersive .grz-tp-summary-assurance {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
	padding: 4px 20px;
	border-top: 1px solid var(--grz-purchase-line);
	background: linear-gradient(180deg, #fbfdff, #f7faff);
	list-style: none;
}

body.single-product.grz-product-immersive .grz-tp-summary-assurance__item {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr);
	align-items: center;
	gap: 9px;
	min-height: 46px;
	padding: 7px 0;
	border-bottom: 1px solid rgba(var(--grz-atmo-deep-rgb, 11, 28, 53), .075);
}

body.single-product.grz-product-immersive .grz-tp-summary-assurance__item:last-child {
	border-bottom: 0;
}

body.single-product.grz-product-immersive .grz-tp-summary-assurance__icon {
	display: grid;
	width: 28px;
	height: 28px;
	place-items: center;
	border: 1px solid rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .12);
	border-radius: 8px;
	background: rgba(var(--grz-tp-accent-rgb, 7, 98, 230), .065);
	color: var(--grz-tp-accent-dark, #064ec4);
}

body.single-product.grz-product-immersive .grz-tp-summary-assurance__icon svg {
	width: 14px;
	height: 14px;
}

body.single-product.grz-product-immersive .grz-tp-summary-assurance__copy {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

body.single-product.grz-product-immersive .grz-tp-summary-assurance__copy strong {
	color: #29374d;
	font-size: 10.5px;
	font-weight: 780;
	line-height: 1.2;
}

body.single-product.grz-product-immersive .grz-tp-summary-assurance__copy small {
	color: #5f6d82;
	font-size: 10px;
	line-height: 1.3;
}

body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-express-slot:not(:empty) {
	margin: 0;
	padding: 0 20px 14px;
	background: #fff;
}

body.single-product.grz-product-immersive .grz-tp-secure {
	min-height: 38px;
	margin: 0;
	padding: 10px 20px 11px;
	border-top: 1px solid var(--grz-purchase-line);
	background: #fff;
	color: #5f6d82;
	font-size: 10px;
}

@media (min-width: 861px) {
	body.single-product.grz-product-immersive .grz-tp-rail {
		position: sticky;
		top: calc(var(--wp-admin--admin-bar--height, 0px) + 18px);
		align-self: start;
	}
}

@media (max-width: 860px) {
	body.single-product.grz-product-immersive .grz-tp-rail {
		position: static;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary {
		max-width: 100%;
	}
}

@media (max-width: 620px) {
	body.single-product.grz-product-immersive .grz-tp-pills {
		grid-template-columns: 1fr;
	}

	body.single-product.grz-product-immersive .grz-tp-pill,
	body.single-product.grz-product-immersive .grz-tp-sheet__body .grz-tp-pill {
		min-height: 60px;
	}

	body.single-product.grz-product-immersive .grz-tp-pill:hover:not(:disabled) {
		transform: none;
	}

	/* Replace the earlier compact receipt grid with a predictable vertical
	 * sequence. This also keeps third-party account validators in normal flow. */
	body.single-product.grz-product-immersive .grz-tp-card--summary,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) {
		display: flex !important;
		grid-template-columns: none !important;
		flex-direction: column;
		align-items: stretch;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary > .grz-tp-card__head,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) > .grz-tp-card__head {
		order: initial !important;
		padding: 14px 14px 12px;
		border: 0;
		border-bottom: 1px solid var(--grz-purchase-line);
		border-radius: 0;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary > .grz-tp-card__body,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) > .grz-tp-card__body {
		display: flex !important;
		grid-template-columns: none !important;
		flex-direction: column;
		padding: 0 !important;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-summary-list {
		order: initial !important;
		padding: 8px 14px 6px !important;
		border: 0 !important;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-summary-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, auto);
		min-height: 42px;
		padding: 8px 0;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-summary-row dd {
		max-width: 58vw;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-total,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) .grz-tp-total {
		display: flex !important;
		grid-column: auto !important;
		order: initial !important;
		align-self: stretch !important;
		min-height: 72px;
		padding: 14px !important;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-total__label,
	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-total__prices {
		grid-column: auto !important;
		order: initial !important;
		align-self: auto !important;
		padding: 0 !important;
		border: 0 !important;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .single_variation_wrap {
		display: block !important;
		order: initial !important;
		margin: 0 !important;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .woocommerce-variation-add-to-cart,
	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-cart-actions {
		display: grid !important;
		grid-template-columns: 1fr !important;
		order: initial !important;
		gap: 10px;
		margin: 0 !important;
		padding: 14px !important;
		border: 0 !important;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-action-row,
	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-action-row.has-quantity {
		display: grid !important;
		grid-template-columns: 128px minmax(0, 1fr) !important;
		order: initial !important;
		gap: 9px;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-qty--action,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) .grz-tp-qty--action {
		display: block !important;
		grid-column: auto !important;
		order: initial !important;
		align-self: stretch !important;
		padding: 0 !important;
		border: 0 !important;
	}

	body.single-product.grz-product-immersive .grz-tp-qty--action .quantity,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) .grz-tp-qty--action .quantity {
		grid-template-columns: 44px 40px 44px;
		width: 128px;
		height: 48px;
	}

	body.single-product.grz-product-immersive .grz-tp-qty--action .grz-tp-qty__btn,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) .grz-tp-qty--action .grz-tp-qty__btn {
		width: 44px;
		height: 46px;
		min-height: 46px;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary button.grz-tp-add-cart-secondary,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) button.grz-tp-add-cart-secondary,
	body.single-product.grz-product-immersive .grz-tp-card--summary .single_add_to_cart_button,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) .single_add_to_cart_button {
		position: static !important;
		grid-column: auto !important;
		order: initial !important;
		width: 100% !important;
		min-width: 0 !important;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-add-cart-secondary__label,
	body.single-product.grz-product-immersive .grz-tp-card--summary:has(.grz-caller-box) .grz-tp-add-cart-secondary__label {
		position: static;
		width: auto;
		height: auto;
		overflow: visible;
		clip: auto;
		clip-path: none;
		white-space: normal;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-caller-box.grz-caller-box {
		grid-column: auto !important;
		order: initial !important;
		width: 100%;
		margin: 0 0 4px;
	}

	body.single-product.grz-product-immersive .grz-tp-summary-assurance {
		grid-column: auto !important;
		order: initial !important;
		padding-inline: 14px;
	}

	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-express-slot,
	body.single-product.grz-product-immersive .grz-tp-card--summary .grz-tp-secure {
		grid-column: auto !important;
		order: initial !important;
	}

	body.single-product.grz-product-immersive .grz-tp-secure {
		padding-inline: 14px;
	}

	body.single-product.grz-product-immersive .grz-tp-sheet__panel {
		max-height: min(86vh, 760px);
	}

	body.single-product.grz-product-immersive .grz-tp-sheet__body {
		padding: 10px 14px 16px;
	}

	body.single-product.grz-product-immersive .grz-tp-sheet__foot {
		position: sticky;
		z-index: 2;
		bottom: 0;
		padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, .97);
		box-shadow: 0 -10px 24px rgba(15, 31, 55, .1);
		backdrop-filter: blur(14px);
	}
}

@media (max-width: 390px) {
	body.single-product.grz-product-immersive .grz-tp-pill__text {
		inset-inline-end: 126px;
	}

	body.single-product.grz-product-immersive .grz-tp-pill__pricing {
		min-width: 96px;
	}

}

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

	body.single-product.grz-product-immersive .grz-tp-pill:hover:not(:disabled),
	body.single-product.grz-product-immersive .grz-tp-card--summary .single_add_to_cart_button:hover:not(:disabled) {
		transform: none;
	}
}

@media (forced-colors: active) {
	body.single-product.grz-product-immersive .grz-tp-pill.is-active,
	body.single-product.grz-product-immersive .grz-tp-total,
	body.single-product.grz-product-immersive .grz-tp-summary-assurance,
	body.single-product.grz-product-immersive .grz-tp-summary-assurance__icon {
		border-color: Highlight;
		background: Canvas;
		box-shadow: none;
	}

	body.single-product.grz-product-immersive .grz-tp-pill.is-active .grz-tp-pill__radio {
		background: Highlight;
	}
}
