/* Pokemons Grading Wizard */
.pgw-wizard {
	--pgw-primary: #eabc00;
	--pgw-primary-dark: #c9a100;
	--pgw-secondary: #4665a3;
	--pgw-ink: #1f2430;
	--pgw-muted: #6b7280;
	--pgw-line: #e5e7eb;
	--pgw-bg: #ffffff;
	--pgw-soft: #faf6e6;
	--pgw-radius: 14px;
	max-width: 760px;
	margin: 0 auto;
	color: var(--pgw-ink);
	font-family: inherit;
	overflow-wrap: break-word;
	word-wrap: break-word;
}
.pgw-wizard *,
.pgw-wizard *::before,
.pgw-wizard *::after {
	box-sizing: border-box;
}

/* Popup: kurven ryddes */
.pgw-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(31, 36, 48, .55);
}
.pgw-modal-box {
	background: #fff;
	border-radius: var(--pgw-radius);
	padding: 26px;
	max-width: 460px;
	width: 100%;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.pgw-modal-title {
	margin: 0 0 12px;
	font-size: 20px;
	line-height: 1.25;
}
.pgw-modal-box p {
	margin: 0 0 12px;
	color: var(--pgw-muted);
}
.pgw-modal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
}
/* <a> og <button> skal have PRAECIS samme højde.
   Hoej specificitet, saa theme-resettet laengere nede (min-height: 0) ikke slaar den ud. */
.pgw-wizard .pgw-modal-actions .pgw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	min-height: 48px;
	padding: 0 22px;
	line-height: 1;
	text-decoration: none;
	box-sizing: border-box;
}

/* Progress bar */
.pgw-progress {
	display: flex;
	list-style: none;
	margin: 0 0 28px;
	padding: 0;
	counter-reset: none;
}
.pgw-progress-step {
	position: relative;
	flex: 1 1 0;
	text-align: center;
	color: var(--pgw-muted);
	font-size: 13px;
}
.pgw-progress-step::before {
	content: "";
	position: absolute;
	top: 17px;
	left: -50%;
	width: 100%;
	height: 3px;
	background: var(--pgw-line);
	z-index: 0;
}
.pgw-progress-step:first-child::before {
	display: none;
}
.pgw-progress-num {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0 auto 6px;
	border-radius: 50%;
	background: #fff;
	border: 3px solid var(--pgw-line);
	font-weight: 700;
	color: var(--pgw-muted);
	transition: all .2s ease;
}
.pgw-progress-label {
	display: block;
	line-height: 1.2;
}
.pgw-progress-step.is-active .pgw-progress-num {
	border-color: var(--pgw-primary);
	background: var(--pgw-primary);
	color: #1f2430;
}
.pgw-progress-step.is-done .pgw-progress-num {
	border-color: var(--pgw-primary);
	background: #fff;
	color: var(--pgw-primary-dark);
}
.pgw-progress-step.is-done::before,
.pgw-progress-step.is-active::before {
	background: var(--pgw-primary);
}
.pgw-progress-step.is-active .pgw-progress-label {
	color: var(--pgw-ink);
	font-weight: 700;
}

/* Steps */
.pgw-step {
	display: none;
	animation: pgw-fade .25s ease;
}
.pgw-step.is-active {
	display: block;
}
@keyframes pgw-fade {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}
.pgw-step-title {
	margin: 0 0 18px;
	font-size: 22px;
	line-height: 1.25;
}
.pgw-step-sub {
	margin: 0 0 18px;
	color: var(--pgw-muted);
}
.pgw-step-sub a {
	color: var(--pgw-secondary);
	text-decoration: underline;
}

/* Product illustration */
.pgw-illustration {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 18px;
	padding: 10px 14px;
	border: 1px solid var(--pgw-line);
	border-radius: var(--pgw-radius);
	background: #fafafa;
}
.pgw-illustration img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 8px;
	background: #fff;
	flex: 0 0 64px;
}
.pgw-illustration figcaption {
	color: var(--pgw-muted);
	font-size: 14px;
	font-weight: 600;
}

/* Radio cards */
.pgw-cards {
	display: grid;
	gap: 12px;
	margin-bottom: 18px;
}
.pgw-card {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	border: 2px solid var(--pgw-line);
	border-radius: var(--pgw-radius);
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pgw-card:hover {
	border-color: var(--pgw-secondary);
}
.pgw-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.pgw-card-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.pgw-card-title {
	font-weight: 700;
}
.pgw-card-note {
	font-size: 13px;
	color: var(--pgw-muted);
}
.pgw-card-price {
	font-weight: 800;
	color: var(--pgw-secondary);
	white-space: nowrap;
	text-align: right;
}
.pgw-card-price small {
	display: block;
	font-weight: 500;
	color: var(--pgw-muted);
}
.pgw-card::after {
	content: "";
	width: 22px;
	height: 22px;
	flex: 0 0 22px;
	border: 2px solid var(--pgw-line);
	border-radius: 50%;
	order: -1;
	transition: all .15s ease;
}
.pgw-card:has(input:checked),
.pgw-card.is-selected {
	border-color: var(--pgw-primary);
	background: var(--pgw-soft);
	box-shadow: 0 4px 14px rgba(234, 188, 0, .18);
}
.pgw-card:has(input:checked)::after,
.pgw-card.is-selected::after {
	border-color: var(--pgw-primary);
	background: var(--pgw-primary);
	box-shadow: inset 0 0 0 4px #fff;
}

/* Fields, steppers */
.pgw-field {
	margin-bottom: 16px;
}
.pgw-label {
	display: block;
	font-weight: 700;
	margin-bottom: 8px;
}
/* Service dropdown */
.pgw-select {
	display: block;
	width: 100%;
	max-width: 520px;
	padding: 14px 44px 14px 16px;
	border: 2px solid var(--pgw-line);
	border-radius: 12px;
	background-color: #fff;
	font-size: 16px;
	font-weight: 600;
	color: var(--pgw-ink);
	line-height: 1.3;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234665a3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 14px;
}
.pgw-select:focus {
	outline: none;
	border-color: var(--pgw-primary);
	box-shadow: 0 0 0 3px rgba(234, 188, 0, .2);
}
.pgw-service-note {
	margin-top: 8px;
}
.pgw-stepper {
	display: inline-flex;
	align-items: stretch;
	border: 2px solid var(--pgw-line);
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}
.pgw-stepper input {
	width: 72px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-left: 2px solid var(--pgw-line);
	border-right: 2px solid var(--pgw-line);
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	text-align: center;
	font-size: 17px;
	font-weight: 700;
	color: var(--pgw-ink);
	line-height: 48px;
	-moz-appearance: textfield;
	appearance: textfield;
}
.pgw-stepper input:focus {
	outline: none;
	box-shadow: none;
	background: #fff;
}
.pgw-stepper input::-webkit-outer-spin-button,
.pgw-stepper input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
.pgw-stepper-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	background: #fff;
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	color: var(--pgw-secondary);
	transition: background .15s ease, color .15s ease;
}
.pgw-stepper-btn:hover {
	background: var(--pgw-soft);
	color: var(--pgw-primary-dark);
}

/* Sub blocks + info boxes */
.pgw-subblock {
	padding: 16px;
	border: 1px dashed var(--pgw-line);
	border-radius: var(--pgw-radius);
	margin-top: 6px;
}
.pgw-radio-inline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 16px 12px 0;
	cursor: pointer;
}
.pgw-hint {
	margin: 12px 0 0;
	color: var(--pgw-muted);
}
.pgw-info {
	background: #eef2fb;
	border: 1px solid #d6def3;
	border-radius: var(--pgw-radius);
	padding: 14px 16px;
	margin-top: 14px;
	font-size: 14px;
}
/* Info note with icon */
.pgw-info-note {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}
.pgw-icon {
	width: 20px;
	height: 20px;
	flex: 0 0 20px;
	margin-top: 1px;
	fill: none;
	stroke: var(--pgw-secondary);
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.pgw-info pre {
	margin: 8px 0 0;
	white-space: pre-wrap;
	font-family: inherit;
	background: #fff;
	border-radius: 8px;
	padding: 10px;
}
.pgw-discount-info {
	background: var(--pgw-soft);
	border-color: #eadfa6;
}
.pgw-discount-info ul {
	margin: 6px 0 0;
	padding-left: 18px;
}

/* Guide + summary */
.pgw-guide {
	border: 1px solid var(--pgw-line);
	border-radius: var(--pgw-radius);
	padding: 14px 16px;
	margin: 0 0 18px;
}
.pgw-guide summary {
	cursor: pointer;
	font-weight: 700;
}
.pgw-guide ol {
	margin: 12px 0 0;
	padding-left: 20px;
}
.pgw-summary {
	border: 2px solid var(--pgw-line);
	border-radius: var(--pgw-radius);
	overflow: hidden;
	margin-bottom: 18px;
}
.pgw-sum-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid var(--pgw-line);
}
.pgw-sum-row small {
	display: block;
	color: var(--pgw-muted);
	font-weight: 400;
}
.pgw-sum-row.is-discount {
	color: #627D47;
	font-weight: 700;
}
.pgw-sum-total {
	display: flex;
	justify-content: space-between;
	padding: 16px;
	background: var(--pgw-soft);
	font-size: 18px;
	font-weight: 800;
}
.pgw-check {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	margin-bottom: 4px;
}
.pgw-check input {
	width: 20px;
	height: 20px;
}

/* Navigation */
.pgw-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 24px;
}
.pgw-btn {
	appearance: none;
	border: 2px solid transparent;
	border-radius: 12px;
	padding: 13px 26px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: transform .05s ease, background .15s ease, opacity .15s ease;
}
.pgw-btn:active {
	transform: translateY(1px);
}
.pgw-btn-primary {
	background: var(--pgw-primary);
	color: #1f2430;
	margin-left: auto;
}
.pgw-btn-primary:hover {
	background: var(--pgw-primary-dark);
}
.pgw-btn-primary:disabled {
	opacity: .5;
	cursor: not-allowed;
}
.pgw-btn-ghost {
	background: #fff;
	border-color: var(--pgw-line);
	color: var(--pgw-ink);
}
.pgw-btn-ghost:hover {
	border-color: var(--pgw-secondary);
	color: var(--pgw-secondary);
}
.pgw-error {
	margin-top: 16px;
	padding: 12px 16px;
	background: #fdecec;
	border: 1px solid #f5c2c2;
	color: #b20000;
	border-radius: 12px;
	font-weight: 600;
}
.pgw-wizard.is-loading {
	opacity: .6;
	pointer-events: none;
}

/* Theme (Flatsome) resets - keep our styling authoritative */
.pgw-wizard [hidden] {
	display: none !important;
}
/* Beat Flatsome select styling */
.pgw-wizard select.pgw-select {
	appearance: none;
	-webkit-appearance: none;
	height: auto;
	min-height: 0;
	margin: 0;
	box-shadow: none;
	text-transform: none;
}
/* Bold "pris pr. kort efter rabat" */
.pgw-wizard .pgw-perkort {
	font-weight: 700;
	color: var(--pgw-ink);
}
.pgw-wizard .pgw-sum-row.is-perkort {
	font-weight: 700;
}
.pgw-wizard .pgw-btn,
.pgw-wizard .pgw-stepper-btn {
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	min-height: 0;
	line-height: 1.2;
	width: auto;
}
.pgw-wizard .pgw-stepper {
	height: 52px;
	align-items: center;
}
.pgw-wizard .pgw-stepper-btn {
	border-radius: 0;
	height: 48px;
	margin: 0 !important;
}
/* Beat Flatsome's input styling on the number field */
.pgw-wizard .pgw-stepper input[type="number"] {
	margin: 0 !important;
	padding: 0;
	height: 48px;
	min-height: 0;
	background: #fff;
	box-shadow: none;
	border-top: 0;
	border-bottom: 0;
	border-radius: 0;
}

/* Custom inline radios (brand styled, immune to theme) */
.pgw-wizard .pgw-radio-inline input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--pgw-line);
	border-radius: 50%;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.pgw-wizard .pgw-radio-inline input[type="radio"]:checked {
	border-color: var(--pgw-primary);
	background: var(--pgw-primary);
	box-shadow: inset 0 0 0 4px #fff;
}
.pgw-wizard .pgw-radio-inline input[type="radio"]:focus-visible {
	outline: 2px solid var(--pgw-secondary);
	outline-offset: 2px;
}

/* Custom "sikkert pakket" checkbox */
.pgw-wizard .pgw-check input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--pgw-line);
	border-radius: 6px;
	background: #fff;
	box-shadow: none;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.pgw-wizard .pgw-check input[type="checkbox"]:checked {
	border-color: var(--pgw-primary);
	background: var(--pgw-primary);
}
.pgw-wizard .pgw-check input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 2px;
	width: 6px;
	height: 11px;
	border: solid #1f2430;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.pgw-wizard .pgw-check input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--pgw-secondary);
	outline-offset: 2px;
}

/* Accordion arrow for the packing guide */
.pgw-wizard .pgw-guide summary {
	list-style: none;
	position: relative;
	padding-right: 30px;
	color: var(--pgw-secondary);
}
.pgw-wizard .pgw-guide summary::-webkit-details-marker {
	display: none;
}
.pgw-wizard .pgw-guide summary::after {
	content: "";
	position: absolute;
	right: 6px;
	top: 50%;
	width: 9px;
	height: 9px;
	border-right: 2px solid var(--pgw-secondary);
	border-bottom: 2px solid var(--pgw-secondary);
	transform: translateY(-70%) rotate(45deg);
	transition: transform .2s ease;
}
.pgw-wizard .pgw-guide[open] summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

/* Required marker */
.pgw-required {
	color: #b20000;
	font-weight: 700;
	margin-left: 3px;
}

/* Responsive */
@media (max-width: 560px) {
	.pgw-progress-label {
		display: none;
	}
	.pgw-progress-num {
		width: 30px;
		height: 30px;
		font-size: 13px;
	}
	.pgw-progress-step::before {
		top: 14px;
	}
	.pgw-step-title {
		font-size: 19px;
	}
	.pgw-card {
		padding: 14px;
		gap: 10px;
	}
	.pgw-btn {
		padding: 12px 16px;
		font-size: 14px;
	}
	/* Primary fills remaining width so it never overflows */
	.pgw-btn-primary {
		flex: 1 1 auto;
		text-align: center;
	}
}

/* Very small phones (~350px) */
@media (max-width: 380px) {
	.pgw-progress-num {
		width: 26px;
		height: 26px;
		font-size: 12px;
		border-width: 2px;
	}
	.pgw-progress-step::before {
		top: 12px;
		height: 2px;
	}
	.pgw-card {
		padding: 12px;
	}
	.pgw-card-price {
		font-size: 14px;
	}
	.pgw-stepper input {
		width: 64px;
	}
	.pgw-stepper-btn {
		width: 42px;
	}
	.pgw-btn {
		padding: 11px 12px;
	}
}
