/**
 * Staffel PDP dropdown (portable; theme may position inside combined rows).
 */

.twz-staffel {
	position: relative;
	z-index: 2;
	width: 100%;
	margin-block-start: 0.2rem;
}

button.twz-staffel__trigger,
button.twz-staffel__trigger:hover,
button.twz-staffel__trigger:focus,
button.twz-staffel__trigger:focus-visible,
button.twz-staffel__trigger:active,
button.twz-staffel__trigger[aria-expanded="true"] {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.6rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	background-color: transparent;
	color: #5789ac;
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	text-align: start;
	appearance: none;
}

.twz-staffel__chevron {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	transition: rotate 0.2s ease;
}

.twz-staffel__chevron svg {
	inline-size: 1.2rem;
	block-size: 0.8rem;
}

.twz-staffel.is-open .twz-staffel__chevron {
	rotate: 180deg;
}

.twz-staffel__panel {
	position: absolute;
	inset-block-start: calc(100% + 0.8rem);
	inset-inline-start: 0;
	z-index: 5;
	width: min(calc(100vw - 3.2rem), 36rem);
	min-inline-size: min(100%, 28rem);
	padding: 1.6rem 2rem 1.8rem;
	border-radius: 1.2rem;
	background: var(--white, #fff);
	box-shadow: 0 0.8rem 2.4rem rgba(12, 38, 54, 0.12);
	color: var(--blue-700, #1f3d57);
}

.twz-staffel__table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 1.4rem;
	line-height: 1.4;
}

.twz-staffel__table th,
.twz-staffel__table td {
	padding: 1rem 0.8rem;
	text-align: start;
	vertical-align: middle;
}

.twz-staffel__table th {
	padding-block: 0 1rem;
	font-weight: 600;
	border-block-end: 0.1rem solid var(--grey-400, #e3e3e3);
}

.twz-staffel__table td {
	border-block-end: 0.1rem solid var(--grey-300, #f3f3f3);
}

.twz-staffel__table tbody tr:last-child td {
	border-block-end: 0;
}

.twz-staffel__table th:nth-child(2),
.twz-staffel__table td:nth-child(2),
.twz-staffel__table th:nth-child(3),
.twz-staffel__table td:nth-child(3) {
	text-align: end;
}

.twz-staffel__table th:first-child,
.twz-staffel__table td:first-child {
	padding-inline-start: 1.2rem;
}

.twz-staffel__table th:last-child,
.twz-staffel__table td:last-child {
	padding-inline-end: 1.2rem;
}

.twz-staffel__row.is-active td {
	background: var(--blue-200, #f4fbff);
}

.twz-staffel__row.is-active td:first-child {
	border-start-start-radius: 0.8rem;
	border-end-start-radius: 0.8rem;
}

.twz-staffel__row.is-active td:last-child {
	border-start-end-radius: 0.8rem;
	border-end-end-radius: 0.8rem;
}

.twz-staffel .woocommerce-price-suffix,
.twz-staffel .price-ex-vat {
	display: none;
}

.twz-staffel__table .amount,
.twz-staffel__table .woocommerce-Price-amount,
.twz-staffel__footer .amount,
.twz-staffel__footer .woocommerce-Price-amount {
	font-weight: 600;
	color: inherit;
}

.twz-staffel__footer {
	margin-block: 1.4rem 0;
	margin-inline: 0;
}

.twz-staffel__save {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.8rem;
	padding: 0.8rem 1.2rem;
	border-radius: 0.8rem;
	background: color-mix(in srgb, var(--green-500, #18a046) 14%, #fff);
	color: var(--green-500, #18a046);
	font-size: 1.4rem;
	font-weight: 600;
	line-height: 1.3;
}

.twz-staffel__save-icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: var(--green-500, #18a046);
}

.twz-staffel__save-icon svg {
	inline-size: 1.6rem;
	block-size: 1.6rem;
	aspect-ratio: 1;
}

.twz-staffel-slot {
	width: 100%;
	min-width: 0;
}

.twz-staffel-slot:empty,
.twz-staffel-slot[hidden] {
	display: none;
}

.twz-staffel-slot--simple {
	margin-block-start: 0.8rem;
}

form.variations_form > .twz-staffel-slot:not([hidden]) {
	margin-block: 0.8rem 1.2rem;
}
