/* PF Begivenheder – deadline */
.pf-dl-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	margin: 0 0 18px;
	padding: 12px 18px;
	border-radius: 14px;
	background: #18191a;
	border: 1px solid rgba(255, 255, 255, .09);
	color: #f4f3ef;
	font-size: 15px;
}
.pf-dl-banner__expired { display: none; color: #fed200; }
.pf-dl-banner.is-passed { background: #2a2b2c; border-color: rgba(254, 210, 0, .4); }
.pf-dl-banner.is-passed .pf-dl-banner__expired { display: inline; }
.pf-dl-banner.is-passed .pf-dl-banner__open { display: none; }

/* Grå overlay på varekort efter deadline (WooCommerce-lister og PF-elementer) */
li.product.pf-deadline-passed,
.is-deadline-passed[data-pf-overlay] { position: relative; }
li.product.pf-deadline-passed > *,
.is-deadline-passed[data-pf-overlay] > * { filter: grayscale(1); opacity: .55; }
li.product.pf-deadline-passed::after,
.is-deadline-passed[data-pf-overlay]::after {
	content: attr(data-pf-deadline-text);
	position: absolute;
	inset: 0;
	z-index: 3;
	display: grid;
	place-items: center;
	padding: 16px;
	border-radius: inherit;
	background: rgba(16, 17, 17, .55);
	color: #fed200;
	font-weight: 800;
	text-align: center;
	pointer-events: none;
}
li.product.pf-deadline-passed::after { content: "Tilmeldingsfristen er overskredet"; }
li.product.pf-deadline-passed .add_to_cart_button { pointer-events: none; }

/* Gratis – ingen tilmelding (fra 1.7.0): vises i stedet for købsknappen */
.pf-free-note {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 12px 22px;
	border-radius: 999px;
	border: 2px solid var(--pf-btn, #fed200);
	color: inherit;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.3;
}
.pf-free-note svg { flex: none; color: var(--pf-btn, #fed200); }

/* Maks. pr. medlem og varianter som liste (fra 1.9.0) */
.pf-max-note { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: var(--pf-btn, #fed200); }
.pf-vl-form { display: flex; flex-direction: column; gap: 14px; width: 100%; margin: 0 0 18px; }
.pf-vl { display: flex; flex-direction: column; gap: 10px; }
.pf-vl > .pf-max-note { margin: 0; }
.pf-vl__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 12px 12px 12px 18px;
	border-radius: 16px;
	background: #18191a;
	border: 1px solid rgba(255, 255, 255, .09);
	color: #f4f3ef;
	transition: border-color .15s ease;
}
.pf-vl__row.is-picked { border-color: var(--pf-btn, #fed200); }
.pf-vl__row.is-out { opacity: .55; }
.pf-vl__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-vl__name { font-size: 16px; font-weight: 700; line-height: 1.3; color: #fff; cursor: pointer; }
.pf-vl__sub { font-size: 13px; color: rgba(255, 255, 255, .62); }
/* Liste med overskrifter (1.10.1): harmonika + kompakte rækker */
.pf-vl--groups { gap: 8px; }
.pf-vl__grp { border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(255, 255, 255, .02); }
.pf-vl__group { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none;
	font-size: 16px; font-weight: 800; letter-spacing: .3px; color: var(--pf-btn, #fed200); }
.pf-vl__group::-webkit-details-marker { display: none; }
.pf-vl__group::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.pf-vl__grp[open] > .pf-vl__group::after { transform: rotate(-135deg) translateY(-2px); }
.pf-vl__grp-t { flex: none; }
.pf-vl__grp-c { flex: 1 1 auto; font-size: 13px; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .5); }
.pf-vl__grp-n { font-size: 12px; font-weight: 800; letter-spacing: 0; padding: 2px 8px; border-radius: 999px; background: var(--pf-btn, #fed200); color: #1a1a1a; }
.pf-vl__grp-n:empty { display: none; }
.pf-vl__grp-b { display: flex; flex-direction: column; gap: 6px; padding: 0 8px 8px; }
.pf-vl--groups .pf-vl__row { padding: 6px 8px 6px 14px; border-radius: 10px; gap: 10px; }
.pf-vl--groups .pf-vl__info { flex: 1 1 auto; flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
.pf-vl--groups .pf-vl__name { font-size: 15px; }
.pf-vl--groups .pf-vl__sub { font-size: 12px; }
.pf-vl--groups .pf-vl__price { margin-left: auto; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.pf-vl--groups .pf-vl__out { flex-basis: 100%; font-size: 12px; }
.pf-vl--groups .pf-vl-step__btn { width: 30px; height: 30px; }
.pf-vl--groups .pf-vl__qty { width: 36px; }
/* I PF Produktside (PF Bricks Elementer) er antalskassen 56px høj – mindre i listen med overskrifter */
.pf-ps .pf-ps__cart .pf-vl--groups .pf-vl__row { padding: 6px 8px 6px 14px; }
.pf-ps .pf-ps__cart .pf-vl--groups .quantity,
.pf-ps .pf-ps__cart .pf-vl--groups .quantity.pf-ps-qty { height: 40px; min-height: 0; padding: 0 5px; gap: 2px; border-radius: 10px; }
.pf-ps .pf-ps__cart .pf-vl--groups .quantity .qty,
.pf-ps .pf-ps__cart .pf-vl--groups .quantity.pf-ps-qty .qty { width: 32px; height: 38px; min-height: 0; line-height: 38px; font-size: 15px; }
.pf-ps .pf-ps__cart .pf-vl--groups .quantity .pf-ps-qty__btn { width: 28px; height: 28px; border-radius: 7px; font-size: 16px; }
.pf-vl__price { font-size: 15px; color: rgba(255, 255, 255, .78); }
.pf-vl__price del { opacity: .6; }
.pf-vl__row .pf-max-note { margin: 2px 0 0; font-size: 12px; }
.pf-vl__out { font-size: 13px; font-weight: 700; color: #e2574c; }
.pf-vl__row .quantity { flex: none; margin: 0; }
.pf-vl__qty { width: 64px; text-align: center; }
.pf-vl__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pf-vl__sum { flex: 1 1 auto; font-weight: 800; font-size: 17px; color: #fff; }
.pf-vl__sum:empty { display: none; }
.pf-vl__submit {
	flex: 1 1 220px;
	min-height: 54px;
	padding: 14px 28px;
	border: 0;
	border-radius: 16px;
	background: var(--pf-btn, #fed200);
	color: var(--pf-btn-text-color, #1a1a1a);
	font: inherit;
	font-size: 17px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 30px rgba(254, 210, 0, .18);
	transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.pf-vl__submit:hover { transform: translateY(-1px); filter: brightness(1.06); }
.pf-vl__submit:disabled,
.pf-vl__submit.disabled { opacity: .45; cursor: not-allowed; transform: none; }
/* Egne − / + uden for PF Produktside */
.pf-vl .pf-vl-step { display: inline-flex; align-items: center; gap: 6px; }
.pf-vl .pf-vl-step__btn {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 9px;
	background: rgba(255, 255, 255, .04);
	color: #fff;
	cursor: pointer;
}
.pf-vl .pf-vl-step__btn:hover,
.pf-vl .pf-vl-step__btn:focus-visible { border-color: rgba(254, 210, 0, .4); color: var(--pf-btn, #fed200); outline: none; }
/* I PF Produktside: listen fylder hele bredden, og "Skjul antal" gælder ikke listen (antal ER valget) */
.pf-ps .pf-ps__cart .pf-vl-form { margin: 0; }
.pf-ps--no-qty .pf-ps__cart .pf-vl .quantity { display: inline-flex; }
.pf-ps .pf-ps__cart .pf-vl__row { background: var(--pf-ps-card, #18191a); border-color: var(--pf-ps-line, rgba(255, 255, 255, .09)); }
.pf-ps .pf-ps__cart .pf-vl__row.is-picked { border-color: var(--pf-btn-bg, #fed200); }
.pf-ps .pf-ps__cart .pf-vl__row .quantity { background: rgba(255, 255, 255, .03); }
.pf-ps .pf-ps__cart .pf-vl__submit { height: 56px; background: var(--pf-btn-bg, #fed200); color: var(--pf-btn-text, #1a1a1a); }
@media (max-width: 480px) {
	.pf-vl__row { padding: 10px 10px 10px 14px; }
	.pf-vl__name { font-size: 15px; }
}

/* Antal personer pr. tilmelding (1.15.0) */
.pf-party { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; }
.pf-party .pf-xf__row { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.pf-party .pf-xf__label { font-size: 14px; font-weight: 700; }
.pf-party input[type="number"] { box-sizing: border-box; width: 100%; max-width: 200px; min-height: 48px; font-size: 18px; font-weight: 700; }
.pf-party__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 200px)); gap: 12px; align-items: end; }
.pf-party__grid .pf-xf__row { justify-content: flex-end; }
.pf-party__grid input[type="number"] { max-width: none; }
.pf-party__hint { margin: 0; font-size: 13px; line-height: 1.4; opacity: .8; }
@media (max-width: 480px) { .pf-party__grid { grid-template-columns: 1fr 1fr; } .pf-party input[type="number"] { max-width: none; } }
