/* Petsgifts Keuzehulp. Huisstijl van petsgifts.nl: groen #63b235 (knoppen), donkergroen #308305, tekst #222, afronding 6px, hover wit met groene rand. */
.pgkh {
	--pgkh-primary: #308305;
	--pgkh-primary-dark: #276b04;
	--pgkh-accent: #63b235;
	--pgkh-accent-hover: #fff;
	--pgkh-text: #222;
	--pgkh-muted: #555;
	--pgkh-line: #ddd;
	--pgkh-soft: #f5f5f5;
	--pgkh-select: #f2f8ee;
	--pgkh-radius: 6px;
	--pgkh-z: 99990;
	font-family: inherit;
	color: var(--pgkh-text);
}

.pgkh *,
.pgkh *::before,
.pgkh *::after {
	box-sizing: border-box;
}

/* Knop rechtsonder */
.pgkh-launch {
	position: fixed;
	z-index: var(--pgkh-z);
	bottom: var(--pgkh-y, 24px);
	right: var(--pgkh-x, 24px);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 12px 18px;
	border: 1px solid var(--pgkh-accent);
	border-radius: var(--pgkh-radius);
	background: var(--pgkh-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
	transition: background-color 0.2s ease, color 0.2s ease;
}
.pgkh--left .pgkh-launch {
	right: auto;
	left: var(--pgkh-x, 24px);
}
.pgkh-launch:hover {
	background: #fff;
	color: var(--pgkh-primary);
}
.pgkh-launch:focus-visible,
.pgkh button:focus-visible,
.pgkh a:focus-visible,
.pgkh select:focus-visible {
	outline: 2px solid var(--pgkh-primary);
	outline-offset: 2px;
}
.pgkh-badge {
	font-style: normal;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	background: #fff;
	color: var(--pgkh-text);
}
.pgkh.is-open .pgkh-launch {
	visibility: hidden;
}

/* Paneel */
.pgkh-backdrop {
	position: fixed;
	inset: 0;
	z-index: calc(var(--pgkh-z) + 1);
	background: rgba(0, 0, 0, 0.25);
}
.pgkh-panel {
	position: fixed;
	z-index: calc(var(--pgkh-z) + 2);
	bottom: var(--pgkh-y, 24px);
	right: var(--pgkh-x, 24px);
	width: 400px;
	max-width: calc(100vw - 32px);
	height: min(640px, calc(100vh - 48px));
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pgkh-line);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(149, 157, 165, 0.25);
	overflow: hidden;
	animation: pgkh-in 0.18s ease-out;
}
.pgkh--left .pgkh-panel {
	right: auto;
	left: var(--pgkh-x, 24px);
}
.pgkh-panel[hidden],
.pgkh-backdrop[hidden] {
	display: none;
}
@keyframes pgkh-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

.pgkh-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 12px 12px 16px;
	border-bottom: 1px solid var(--pgkh-line);
}
.pgkh-title {
	flex: 1;
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--pgkh-text);
}
.pgkh-head button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--pgkh-radius);
	background: transparent;
	color: var(--pgkh-text);
	cursor: pointer;
}
.pgkh-head button:hover {
	background: var(--pgkh-soft);
}
.pgkh-head button[hidden] {
	display: none;
}

.pgkh-progress {
	height: 3px;
	background: var(--pgkh-soft);
}
.pgkh-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--pgkh-primary);
	transition: width 0.25s ease;
}

.pgkh-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px;
	overscroll-behavior: contain;
}
.pgkh-body.is-loading {
	opacity: 0.55;
	pointer-events: none;
}
.pgkh-foot {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px 16px;
	border-top: 1px solid var(--pgkh-line);
}
.pgkh-foot:empty {
	display: none;
}

.pgkh-step {
	margin: 0 0 4px;
	font-size: 13px;
	color: var(--pgkh-muted);
}
.pgkh-q {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pgkh-text);
	outline: none;
}
.pgkh-help {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--pgkh-muted);
}

/* Opties */
.pgkh-opts {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.pgkh-opt {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	margin: 0;
	padding: 11px 12px;
	border: 1px solid var(--pgkh-line);
	border-radius: var(--pgkh-radius);
	background: #fff;
	color: var(--pgkh-text);
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}
@media (hover: hover) {
	.pgkh-opt:hover {
		border-color: var(--pgkh-primary);
		background: var(--pgkh-select);
	}
}
.pgkh-opt:active {
	border-color: var(--pgkh-primary);
	background: var(--pgkh-select);
}
.pgkh-opt[hidden] {
	display: none;
}
.pgkh-opt.is-any {
	margin-top: 8px;
}
.pgkh-opt-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.pgkh-opt-label {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
}
.pgkh-opt-sub {
	font-size: 13px;
	line-height: 1.35;
	color: var(--pgkh-muted);
}
.pgkh-opt-count {
	min-width: 32px;
	font-size: 13px;
	color: var(--pgkh-muted);
	text-align: right;
}

/* Knoppen */
.pgkh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 11px 16px;
	border: 1px solid var(--pgkh-primary);
	border-radius: var(--pgkh-radius);
	background: var(--pgkh-primary);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.pgkh-btn:hover {
	background: #fff;
	border-color: var(--pgkh-primary);
	color: var(--pgkh-primary);
}
.pgkh-btn--ghost {
	background: #fff;
	color: var(--pgkh-primary);
}
.pgkh-btn--ghost:hover {
	background: var(--pgkh-primary);
	color: #fff;
}
.pgkh-btn--small {
	width: auto;
	padding: 7px 12px;
	font-size: 14px;
}
.pgkh-btn[disabled] {
	opacity: 0.7;
	cursor: default;
	transform: none;
}
.pgkh-btn.is-done,
.pgkh-btn.is-done:hover {
	background: #fff;
	color: var(--pgkh-primary);
	border-color: var(--pgkh-primary);
	opacity: 1;
	transform: none;
}
.pgkh-more {
	margin-top: 12px;
}
.pgkh-link {
	display: block;
	margin: 10px 0 0;
	padding: 4px 0;
	border: 0;
	background: none;
	color: var(--pgkh-primary);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}
.pgkh-foot .pgkh-link {
	margin: 0;
	align-self: center;
}

/* Resultaten */
.pgkh-res-head .pgkh-q {
	margin-bottom: 10px;
}
.pgkh-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}
.pgkh-chip {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 5px 10px;
	border: 1px solid var(--pgkh-line);
	border-radius: 999px;
	background: var(--pgkh-soft);
	color: var(--pgkh-text);
	font: inherit;
	font-size: 13px;
	cursor: pointer;
}
.pgkh-chip:hover {
	border-color: var(--pgkh-primary);
}
.pgkh-chip-q {
	color: var(--pgkh-muted);
}
.pgkh-chip-x {
	margin-left: 4px;
	font-size: 15px;
	line-height: 1;
	color: var(--pgkh-muted);
}
.pgkh-sort {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--pgkh-muted);
}
.pgkh-sort select {
	margin: 0;
	padding: 5px 8px;
	border: 1px solid var(--pgkh-line);
	border-radius: var(--pgkh-radius);
	background: #fff;
	color: var(--pgkh-text);
	font: inherit;
	font-size: 13px;
	max-width: 60%;
}
.pgkh-items {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pgkh-item {
	display: flex;
	gap: 12px;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--pgkh-line);
}
.pgkh-item:last-child {
	border-bottom: 0;
}
.pgkh-item-img {
	flex: 0 0 88px;
	display: block;
	width: 88px;
	height: 88px;
	border: 1px solid var(--pgkh-line);
	border-radius: var(--pgkh-radius);
	overflow: hidden;
	background: #fff;
}
.pgkh-item-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.pgkh-item-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
}
.pgkh-item-brand {
	font-size: 12px;
	color: var(--pgkh-muted);
}
.pgkh-item-name {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--pgkh-text);
	text-decoration: none;
}
.pgkh-item-name:hover {
	color: var(--pgkh-primary);
	text-decoration: underline;
}
.pgkh-item-price {
	font-size: 14px;
	color: var(--pgkh-text);
	margin-bottom: 4px;
}
.pgkh-item-price del {
	color: var(--pgkh-muted);
	margin-right: 4px;
}
.pgkh-item-price ins {
	text-decoration: none;
	color: #ff1100;
}

.pgkh-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px 10px 16px;
	border-top: 1px solid var(--pgkh-line);
	background: var(--pgkh-select);
	font-size: 14px;
}
.pgkh-notice span {
	flex: 1;
}
.pgkh-notice-x {
	margin: 0;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--pgkh-muted);
	font-size: 18px;
	cursor: pointer;
}
.pgkh-msg p {
	margin: 0 0 12px;
}

/* Mobiel: onderblad */
@media (max-width: 600px) {
	.pgkh-launch {
		bottom: var(--pgkh-my, 16px);
		right: var(--pgkh-mx, 16px);
		left: auto;
		padding: 11px 14px;
		font-size: 14px;
	}
	.pgkh--m-left .pgkh-launch {
		right: auto;
		left: var(--pgkh-mx, 16px);
	}
	.pgkh-panel,
	.pgkh--left .pgkh-panel {
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		max-width: 100%;
		height: auto;
		max-height: 88vh;
		max-height: 88dvh;
		border-radius: 12px 12px 0 0;
		border-bottom: 0;
		animation-name: pgkh-up;
	}
	.pgkh-body {
		min-height: 200px;
	}
	.pgkh-foot {
		padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
	}
	html.pgkh-lock,
	html.pgkh-lock body {
		overflow: hidden;
	}
	@keyframes pgkh-up {
		from {
			transform: translateY(100%);
		}
		to {
			transform: none;
		}
	}
}
@media (min-width: 601px) {
	.pgkh-backdrop {
		background: transparent;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pgkh-panel,
	.pgkh-launch,
	.pgkh-btn,
	.pgkh-opt,
	.pgkh-progress span {
		animation: none !important;
		transition: none !important;
	}
	.pgkh-launch:hover,
	.pgkh-btn:hover {
		transform: none;
	}
}
