/* Digital code product page. */
.dh-nav a[aria-current="location"] { border-bottom-color: var(--gp-primary); }
.code-product-page {
	position: relative;
	isolation: isolate;
	overflow-wrap: anywhere;
}
.code-product-page::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 365px;
	z-index: -1;
	background: linear-gradient(180deg, rgba(34,33,33,.78), var(--gp-bg) 96%), var(--code-art, none) center 44% / cover no-repeat;
	filter: blur(5px);
	clip-path: inset(0);
	pointer-events: none;
}
.gp .code-product-wrap { padding: 0; }
.code-crumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 8px;
	padding: 4px 16px;
	font-size: 14px;
	color: var(--gp-text);
}
.code-crumb a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.code-product-stack { min-width: 0; }
.code-pack {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 250px;
	padding: 34px 16px 12px;
	overflow: hidden;
	background: #fff;
}
.code-pack > .pbar { position: absolute; inset: 0 0 auto; min-height: 29px; }
.code-pack-image { width: min(200px,100%); height: auto; aspect-ratio: 1; object-fit: contain; }
.code-glance {
	display: none;
	padding: 24px;
	border: 1px solid var(--gp-line);
	border-radius: 16px;
	background: var(--gp-surface);
}
.gp .code-glance h2 { font-size: 20px; margin-bottom: 12px; }
.gp .code-glance dl {
	display: grid;
	grid-template-columns: auto minmax(0,1fr);
	gap: 8px 16px;
	font-size: 14px;
}
.code-glance dt, .code-help dt { color: var(--gp-text-muted); }
.code-glance dd, .code-help dd { color: var(--gp-heading); }
.code-buy {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 16px 16px 0;
}
.gp .code-buy > .tags { margin: 0; }
.gp .code-buy h1 { font-size: 32px; }
.gp .code-email .row { align-items: start; }
.gp .code-email .ic { flex: 0 0 20px; }
.gp .code-email .row span { font-size: 14px; }
.code-purchase { display: grid; gap: 14px; }
.gp .code-purchase legend { margin-bottom: 4px; font-size: 14px; font-weight: 600; color: var(--gp-heading); }
.code-option-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gp .code-option-list button {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	max-width: 100%;
	padding: 8px 14px;
	border: 1px solid var(--gp-line-strong);
	border-radius: var(--gp-radius);
	background: var(--gp-surface);
	color: var(--gp-heading);
	font-size: 16px;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
}
.gp .code-option-list button:hover { border-color: var(--gp-cyan); }
.gp .code-option-list button[aria-pressed="true"] { border-color: var(--gp-primary); background: #3d2e23; }
.gp .code-amount-list button { min-width: 90px; min-height: 54px; gap: 3px; padding-inline: 9px; font-size: 16px; }
.gp .code-amount-list small { color: var(--gp-text); font-size: 14px; font-variant-numeric: tabular-nums; }
.gp .code-amount-list button:disabled { border-style: dashed; color: var(--gp-text-muted); cursor: default; }
.gp .code-amount-list button:disabled small { color: var(--gp-text-muted); }
.gp .code-region-help { margin-top: 8px; font-size: 14px; }
.code-price-state { display: grid; gap: 4px; }
.gp .code-current-price { color: var(--gp-heading); font: 600 32px/1.15 Outfit,system-ui,sans-serif; font-variant-numeric: tabular-nums; }
.gp .code-selection-summary { font-size: 14px; }
.gp .code-warning { padding: 12px; border: 1px solid var(--gp-primary); border-radius: 6px; background: var(--gp-surface); font-size: 14px; }
.gp .code-warning strong { color: var(--gp-heading); }
.gp.g16 .code-add {
	width: 100%;
	min-height: 48px;
	border: 1px solid transparent;
	color: var(--gp-on-primary);
	cursor: pointer;
}
.gp.g16 .code-add:disabled { border-color: var(--gp-line-strong); background: var(--gp-surface); color: var(--gp-text-muted); cursor: default; }
.code-help { min-width: 0; }
.gp .code-steps { display: grid; gap: 8px; counter-reset: code-step; }
.gp .code-steps li {
	display: grid;
	grid-template-columns: 24px minmax(0,1fr);
	align-items: start;
	gap: 8px;
	counter-increment: code-step;
}
.gp .code-steps li::before {
	content: counter(code-step);
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--gp-surface);
	color: var(--gp-heading);
	font-size: 14px;
}
.code-help dd + dt { margin-top: 8px; }
.code-help dd { margin-top: 4px; }
.gp .code-help dd a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gp-cyan); }
.gp .code-related .rail .card-img.full { aspect-ratio: 3/4; }
.gp .code-related .rail .card-img.full img { object-fit: cover; }
.gp .code-related .rail .price { font-size: 14px; }
.gp .code-product-page .woocommerce-error, .gp .code-product-page .woocommerce-message {
	margin: 8px 16px;
	padding: 12px 16px;
	border: 1px solid var(--gp-line-strong);
	border-radius: 6px;
	background: var(--gp-surface);
	color: var(--gp-heading);
}
@media (width < 600px) {
	.gp .code-related .rail .card:nth-child(n + 4) { display: none; }
	.gp.g16 .code-product-page .ask .hero-cta { flex-direction: column; }
}
@media (600px <= width < 1024px) {
	.code-product-hero { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); align-items: start; gap: 16px; padding-inline: 16px; }
	.code-pack { border-radius: 16px; }
	.code-buy { padding: 0; }
	.gp .code-related .rail { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); overflow: visible; margin: 0; padding: 0; }
}
@media (min-width: 1024px) {
	.gp .code-product-wrap { padding-inline: 24px; }
	.code-crumb { padding: 8px 0 12px; }
	.code-crumb a { min-width: 0; min-height: 36px; }
	.code-product-hero { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 48px; align-items: start; }
	.code-product-stack { display: grid; gap: 16px; }
	.code-pack { min-height: 340px; border-radius: 16px; }
	.code-pack-image { width: min(300px,100%); }
	.code-glance { display: block; }
	.code-buy { padding: 0; gap: 16px; }
	.gp .code-email { display: none; }
	.gp .code-amount-list button { min-width: 96px; }
	.code-help { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; }
	.gp .code-help dd a { min-height: 24px; }
}
@media (prefers-reduced-motion: no-preference) {
	.code-buy h1 { animation: gameport-code-enter .4s cubic-bezier(.22,1,.36,1) both; }
	@keyframes gameport-code-enter { from { transform: translateY(8px); } to { transform: none; } }
}

/* "Choose variant" card: Platform, Type, Region (inc/code-variant.php, template-parts/code-variant.php). */
.gp .code-variant { position: relative; display: grid; gap: 14px; margin: 18px 0 16px; padding: 22px 16px 16px; border: 1px solid var(--gp-line-strong, #4a4848); border-radius: 12px; }
.gp .code-variant-title { position: absolute; top: -9px; left: 12px; margin: 0; padding: 0 6px; background: var(--gp-bg, #191818); font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #b9b6b6; }
.code-variant-row { display: flex; align-items: center; gap: 12px; }
.code-variant-tiles { display: flex; gap: 6px; }
.code-variant-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--gp-line-strong, #4a4848); background: var(--gp-surface, #302f2f); color: var(--gp-heading, #fff); }
.code-variant-tile.is-brand { border-color: transparent; background: var(--tile); color: #fff; }
.code-variant-tile svg { width: 26px; height: 26px; }
.code-variant-text { display: grid; line-height: 1.3; }
.code-variant-text > span { font-size: 14px; color: #c9c7c7; }
.gp .code-variant-text b { font-size: 16px; color: var(--gp-heading, #fff); }
.code-region-form { display: grid; gap: 6px; }
.gp .code-region-label { font-size: 14px; font-weight: 700; color: var(--gp-heading, #fff); }
.code-region-select { position: relative; display: flex; align-items: center; }
.code-region-select select { width: 100%; min-height: 48px; padding: 0 44px 0 48px; border: 1px solid var(--gp-line-strong, #4a4848); border-radius: 10px; background: var(--gp-surface, #302f2f); color: var(--gp-heading, #fff); font: inherit; font-weight: 600; text-transform: uppercase; letter-spacing: .02em; appearance: none; -webkit-appearance: none; cursor: pointer; }
.code-region-select select:hover { border-color: var(--gp-cyan, #20c8df); }
.code-region-select select:focus-visible { outline: 3px solid var(--gp-cyan, #20c8df); outline-offset: 2px; }
.code-region-select > .gp-ic { position: absolute; right: 14px; width: 20px; height: 20px; pointer-events: none; color: var(--gp-heading, #fff); }
.code-region-select .code-flag { position: absolute; left: 14px; display: flex; pointer-events: none; }
.code-region-select.is-fixed { min-height: 48px; padding: 0 16px 0 48px; border: 1px solid var(--gp-line-strong, #4a4848); border-radius: 10px; background: var(--gp-surface, #302f2f); }
.code-region-value { font-weight: 600; text-transform: uppercase; letter-spacing: .02em; color: var(--gp-heading, #fff); }
.code-flag [hidden] { display: none; }
.code-flag-svg { display: block; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.code-variant .code-region-help { margin: 2px 0 0; }
.code-variant .gp-ic { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.code-variant-tile .gp-ic { width: 24px; height: 24px; }

.code-variant-tile.is-brand > svg { width: 24px; height: 24px; }
