/* BlockBande Kasse */

@font-face {
	font-family: "Jost";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("fonts/Jost-VariableFont_wght.woff2") format("woff2");
}

:root {
	--bb-bg: #0a0d26;
	--bb-surface: #12163a;
	--bb-surface-active: #161b47;
	--bb-line: #252b63;
	--bb-field-line: #333a7a;
	--bb-text: #eef0ff;
	--bb-text-soft: #d6daf5;
	--bb-text-muted: #aeb4d6;
	--bb-accent: #9ef06a;
	--bb-on-accent: #0b1f00;
	--bb-link: #b9f58f;
	--bb-danger: #ff9a9a;
}

/* Grundlage */

html {
	-webkit-text-size-adjust: 100%;
}

body.bb-kasse {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--bb-bg);
	color: var(--bb-text);
	font-family: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
	font-size: 17px;
	line-height: 1.5;
}

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

.bb-kasse a {
	color: var(--bb-link);
}

.bb-kasse a:hover {
	color: #ffffff;
}

.bb-kasse .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.bb-kasse .clear {
	clear: both;
}

/* Kopf und Fuß */

.bb-kasse-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 18px 64px;
	border-bottom: 1px solid #1d2255;
}

.bb-kasse-header__brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--bb-text) !important;
	text-decoration: none;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 1px;
}

.bb-kasse-header__brand img {
	display: block;
	border-radius: 8px;
}

.bb-kasse-header__back {
	font-weight: 500;
	text-decoration: none;
}

.bb-kasse-main {
	flex-grow: 1;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 40px 64px 48px;
}

.bb-kasse-intro {
	margin-bottom: 32px;
}

.bb-kasse-intro h1 {
	margin: 0 0 6px;
	font-size: 40px;
	font-weight: 600;
	line-height: 1.1;
}

.bb-kasse-intro p {
	margin: 0;
	color: var(--bb-text-muted);
}

.bb-kasse-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 64px;
	border-top: 1px solid #1d2255;
	font-size: 15px;
	color: var(--bb-text-muted);
}

.bb-kasse-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 28px;
}

.bb-kasse-footer a {
	text-decoration: none;
}

/* Hinweise von WooCommerce */

.bb-kasse .woocommerce-error,
.bb-kasse .woocommerce-info,
.bb-kasse .woocommerce-message {
	list-style: none;
	margin: 0 0 20px;
	padding: 14px 18px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-line);
	border-left: 4px solid var(--bb-accent);
	border-radius: 0;
	font-size: 16px;
}

.bb-kasse .woocommerce-error {
	border-left-color: var(--bb-danger);
}

.bb-kasse .woocommerce-error li + li {
	margin-top: 6px;
}

/* Gutschein */

.bb-kasse .woocommerce-form-coupon-toggle .woocommerce-info {
	display: inline-block;
	margin: 0 0 24px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--bb-text-muted);
}

.bb-kasse form.checkout_coupon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	max-width: 560px;
	margin: 0 0 28px;
	padding: 18px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-line);
	border-radius: 12px;
}

.bb-kasse form.checkout_coupon p {
	margin: 0;
}

.bb-kasse form.checkout_coupon > p:first-child {
	flex-basis: 100%;
	color: var(--bb-text-muted);
	font-size: 15px;
}

.bb-kasse form.checkout_coupon .form-row-first {
	flex: 1 1 200px;
}

.bb-kasse form.checkout_coupon .button {
	height: 52px;
	padding: 0 22px;
	border: 1px solid var(--bb-accent);
	border-radius: 10px;
	background: transparent;
	color: var(--bb-accent);
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

/* Aufteilung: links die Schritte, rechts die Bestellung */

.bb-kasse-form {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	grid-template-rows: auto auto 1fr auto auto;
	column-gap: 56px;
	align-items: start;
	margin: 0;
}

.bb-kasse-form > .woocommerce-NoticeGroup {
	grid-column: 1 / -1;
	grid-row: 1;
}

.bb-kasse-details {
	grid-column: 1;
	grid-row: 2 / span 2;
	align-self: stretch;
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.bb-kasse-summary-title {
	grid-column: 2;
	grid-row: 2;
}

.bb-kasse-form #order_review,
.bb-kasse-form #payment {
	display: contents;
}

.bb-kasse-form .woocommerce-checkout-review-order-table {
	grid-column: 2;
	grid-row: 3;
	align-self: stretch;
}

.bb-kasse-form #payment .wc_payment_methods {
	grid-column: 1;
	grid-row: 4;
}

.bb-kasse-form #payment .place-order {
	grid-column: 2;
	grid-row: 4;
}

.bb-kasse-note {
	grid-column: 2;
	grid-row: 5;
}

/* Schritte */

.bb-kasse-step {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bb-kasse-step__title {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.bb-kasse-step__title--pay {
	margin-top: auto;
	padding-bottom: 14px;
}

.bb-kasse-form:not(:has(.wc_payment_methods)) .bb-kasse-step__title--pay {
	display: none;
}

.bb-kasse-step__num {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	flex-shrink: 0;
	border-radius: 8px;
	background: var(--bb-accent);
	color: var(--bb-on-accent);
	font-size: 16px;
	font-weight: 700;
}

.bb-kasse-hint {
	margin: 0;
	font-size: 14px;
	color: var(--bb-text-muted);
}

/* Felder */

.bb-kasse-form #minecraft_details h3,
.bb-kasse-form .woocommerce-billing-fields > h3 {
	display: none;
}

.bb-kasse-form .form-row {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.bb-kasse-form .woocommerce-billing-fields__field-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.bb-kasse-form .form-row > label {
	font-size: 15px;
	font-weight: 500;
	color: var(--bb-text-soft);
}

.bb-kasse .required {
	color: var(--bb-danger);
	text-decoration: none;
}

.bb-kasse .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.bb-kasse input.input-text,
.bb-kasse select {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-field-line);
	border-radius: 10px;
	color: var(--bb-text);
	font-family: inherit;
	font-size: 17px;
}

.bb-kasse input.input-text::placeholder {
	color: #7f86b5;
}

.bb-kasse input.input-text:focus,
.bb-kasse select:focus,
.bb-kasse .select2-container--focus .select2-selection--single,
.bb-kasse .select2-container--open .select2-selection--single {
	outline: 2px solid var(--bb-accent);
	outline-offset: 1px;
}

.bb-kasse .woocommerce-invalid input.input-text,
.bb-kasse .woocommerce-invalid .select2-selection--single {
	border-color: var(--bb-danger);
}

/* Länderauswahl (select2) */

.bb-kasse .select2-container {
	width: 100% !important;
}

.bb-kasse .select2-container .select2-selection--single {
	height: 52px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-field-line);
	border-radius: 10px;
}

.bb-kasse .select2-container .select2-selection--single .select2-selection__rendered {
	padding: 0 40px 0 16px;
	color: var(--bb-text);
	font-size: 17px;
	line-height: 50px;
}

.bb-kasse .select2-container .select2-selection--single .select2-selection__arrow {
	top: 0;
	right: 10px;
	height: 50px;
}

.bb-kasse .select2-container--default .select2-selection--single .select2-selection__arrow b {
	border-color: var(--bb-text-muted) transparent transparent;
}

.bb-kasse .select2-dropdown {
	background: var(--bb-surface);
	border: 1px solid var(--bb-field-line);
	border-radius: 10px;
	color: var(--bb-text);
	overflow: hidden;
}

.bb-kasse .select2-search--dropdown .select2-search__field {
	height: 42px;
	padding: 0 12px;
	background: var(--bb-bg);
	border: 1px solid var(--bb-field-line);
	border-radius: 8px;
	color: var(--bb-text);
	font-family: inherit;
	font-size: 16px;
}

.bb-kasse .select2-results__option {
	padding: 10px 14px;
	font-size: 16px;
}

.bb-kasse .select2-container--default .select2-results__option[aria-selected="true"],
.bb-kasse .select2-container--default .select2-results__option[data-selected="true"] {
	background: var(--bb-surface-active);
	color: var(--bb-text);
}

.bb-kasse .select2-container--default .select2-results__option--highlighted[aria-selected],
.bb-kasse .select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--bb-accent);
	color: var(--bb-on-accent);
}

/* Bestell-Karte: Titel, Tabelle und Abschluss bilden zusammen eine Karte */

.bb-kasse-summary-title {
	margin: 0;
	padding: 28px 28px 18px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-line);
	border-bottom: 0;
	border-radius: 16px 16px 0 0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1.2;
}

.bb-kasse-form .woocommerce-checkout-review-order-table {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0 28px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-line);
	border-width: 0 1px;
	border-collapse: collapse;
}

.bb-kasse-form .woocommerce-checkout-review-order-table thead {
	display: none;
}

.bb-kasse-form .woocommerce-checkout-review-order-table tbody,
.bb-kasse-form .woocommerce-checkout-review-order-table tfoot {
	display: block;
}

.bb-kasse-form .woocommerce-checkout-review-order-table tr {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 12px 0;
}

.bb-kasse-form .woocommerce-checkout-review-order-table th,
.bb-kasse-form .woocommerce-checkout-review-order-table td {
	display: block;
	padding: 0;
	border: 0;
	background: none;
	text-align: left;
	font-weight: 400;
}

/* Produktzeile: Name links, Preis rechts oben, Produkttext darunter über die volle Breite */

.bb-kasse-form .woocommerce-checkout-review-order-table tbody tr {
	position: relative;
	display: block;
	padding-top: 0;
	border-bottom: 1px solid var(--bb-line);
	padding-bottom: 18px;
}

.bb-kasse-form .woocommerce-checkout-review-order-table tbody tr + tr {
	padding-top: 18px;
}

.bb-kasse-form .woocommerce-checkout-review-order-table .product-name {
	padding-right: 84px;
	font-size: 18px;
	font-weight: 600;
}

.bb-kasse-form .woocommerce-checkout-review-order-table tbody .product-total {
	position: absolute;
	top: 0;
	right: 0;
}

.bb-kasse-form .woocommerce-checkout-review-order-table tbody tr + tr .product-total {
	top: 18px;
}

.bb-kasse-form .woocommerce-checkout-review-order-table tbody .wgm-tax {
	display: none;
}

.bb-kasse-form .woocommerce-checkout-review-order-table .product-quantity {
	font-weight: 400;
	color: var(--bb-text-muted);
}

.bb-kasse-form .woocommerce-checkout-review-order-table .product-desc {
	display: block;
	margin: 8px -84px 0 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.55;
	color: var(--bb-text-muted);
}

.bb-kasse-form .woocommerce-checkout-review-order-table .wgm-product-prerequisites {
	display: block;
	margin: 8px -84px 0 0;
	padding: 0;
	background: none;
	font-size: 14px;
	font-weight: 400;
	color: var(--bb-text-muted);
}

.bb-kasse-form .woocommerce-checkout-review-order-table td:last-child {
	flex-shrink: 0;
	text-align: right;
}

.bb-kasse-form .woocommerce-checkout-review-order-table .product-total {
	font-size: 18px;
	font-weight: 600;
}

.bb-kasse-form .woocommerce-checkout-review-order-table .wgm-tax,
.bb-kasse-form .woocommerce-checkout-review-order-table .product-tax,
.bb-kasse-form .woocommerce-checkout-review-order-table .includes_tax {
	display: block;
	margin-top: 2px;
	font-size: 14px;
	font-weight: 400;
	color: var(--bb-text-muted);
}

.bb-kasse-form .woocommerce-checkout-review-order-table tfoot th {
	color: var(--bb-text-soft);
}

.bb-kasse-form .woocommerce-checkout-review-order-table .order-total {
	padding-bottom: 20px;
	border-bottom: 1px solid var(--bb-line);
}

.bb-kasse-form .woocommerce-checkout-review-order-table .order-total th {
	font-size: 20px;
	font-weight: 600;
	color: var(--bb-text);
}

.bb-kasse-form .woocommerce-checkout-review-order-table .order-total td {
	flex-shrink: 1;
	min-width: 0;
}

.bb-kasse-form .woocommerce-checkout-review-order-table .order-total td strong {
	font-size: 26px;
	font-weight: 700;
}

.bb-kasse-form .woocommerce-remove-coupon {
	margin-left: 6px;
	font-size: 14px;
}

/* Abschluss: Checkboxen und Button */

.bb-kasse-form #payment .place-order {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 20px 28px 28px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-line);
	border-top: 0;
	border-radius: 0 0 16px 16px;
}

.bb-kasse-form #payment .place-order p {
	margin: 0;
}

/* Checkboxen: große Tippfläche, kleiner Text; ein Tipp auf den Text setzt ebenfalls den Haken */
.bb-kasse-form #payment .place-order label.checkbox,
.bb-kasse-form #payment .place-order label.woocommerce-form__label-for-checkbox {
	display: block;
	position: relative;
	min-height: 32px;
	padding-left: 48px;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.5 !important;
	color: var(--bb-text-soft);
	cursor: pointer;
}

.bb-kasse-form #payment .place-order input[type="checkbox"] {
	position: absolute;
	top: -2px;
	left: 0;
	width: 32px;
	height: 32px;
	margin: 0;
	accent-color: var(--bb-accent);
	cursor: pointer;
}

.bb-kasse .woocommerce-form-coupon-toggle,
.bb-kasse form.checkout_coupon {
	display: none !important;
}

/* WooCommerce markiert leere Pflicht-Checkboxen sofort als ungültig; der Text bleibt deshalb neutral. */
.bb-kasse-form #payment .place-order .woocommerce-invalid label,
.bb-kasse-form #payment .place-order .woocommerce-invalid label span {
	color: var(--bb-text-soft) !important;
}

.bb-kasse-form #place_order {
	width: 100%;
	min-height: 58px;
	margin: 4px 0 0;
	padding: 10px 18px;
	border: 0;
	border-radius: 12px;
	background: var(--bb-accent);
	color: var(--bb-on-accent);
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.3px;
	cursor: pointer;
}

.bb-kasse-form #place_order:hover {
	background: #b7f68d;
}

.bb-kasse-form #place_order:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.bb-kasse-note {
	margin: 14px 0 0;
	text-align: center;
	font-size: 14px;
	color: var(--bb-text-muted);
}

/* Zahlungsarten */

.bb-kasse-form #payment .wc_payment_methods {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bb-kasse-form #payment .wc_payment_method {
	display: grid !important;
	grid-template-columns: 20px minmax(0, 1fr);
	align-items: center;
	column-gap: 14px;
	margin: 0;
	padding: 14px 18px;
	background: var(--bb-surface);
	border: 1px solid var(--bb-field-line);
	border-radius: 12px;
}

.bb-kasse-form #payment .wc_payment_method > * {
	grid-column: 1 / -1;
}

.bb-kasse-form #payment .wc_payment_method > input[type="radio"] {
	grid-column: 1;
	grid-row: 1;
}

.bb-kasse-form #payment .wc_payment_method > label {
	grid-column: 2;
	grid-row: 1;
}

.bb-kasse-form #payment .wc_payment_method:has(> input:checked) {
	background: var(--bb-surface-active);
	border-color: var(--bb-accent);
	box-shadow: inset 0 0 0 1px var(--bb-accent);
}

.bb-kasse-form #payment .wc_payment_method > input[type="radio"] {
	display: block;
	width: 20px;
	height: 20px;
	margin: 0;
	accent-color: var(--bb-accent);
	cursor: pointer;
}

.bb-kasse-form #payment .wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	margin: 0;
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
}

.bb-kasse-form #payment .wc_payment_method > label img {
	display: block;
	float: none !important;
	width: auto !important;
	height: 30px !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0;
	border-radius: 5px;
}

.bb-kasse-form #payment .wc_payment_method > label img:first-of-type {
	margin-left: auto;
}

.bb-kasse-form #payment .payment_method_ppcp > label img {
	padding: 6px 10px;
	background: #ffffff;
}

.bb-kasse-form #payment .payment_box {
	grid-row: 2;
	margin: 12px 0 0;
	padding: 0;
	background: none;
	font-size: 14px;
	color: var(--bb-text-muted);
}

.bb-kasse-form #payment .payment_box:empty {
	display: none;
}

.bb-kasse-form #payment .payment_box p {
	margin: 0 0 10px;
}

.bb-kasse-form #payment .payment_box p:last-child {
	margin-bottom: 0;
}

.bb-kasse-form #payment .payment_box fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

/* Handy und schmale Fenster */

@media (max-width: 900px) {
	.bb-kasse-header,
	.bb-kasse-footer {
		padding-left: 20px;
		padding-right: 20px;
	}

	.bb-kasse-header__brand {
		font-size: 20px;
	}

	.bb-kasse-footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.bb-kasse-main {
		padding: 24px 20px 32px;
	}

	.bb-kasse-intro h1 {
		font-size: 32px;
	}

	.bb-kasse-form {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
	}

	.bb-kasse-form > .woocommerce-NoticeGroup,
	.bb-kasse-details,
	.bb-kasse-summary-title,
	.bb-kasse-form .woocommerce-checkout-review-order-table,
	.bb-kasse-form #payment .wc_payment_methods,
	.bb-kasse-form #payment .place-order,
	.bb-kasse-note {
		grid-column: 1;
	}

	.bb-kasse-form > .woocommerce-NoticeGroup {
		grid-row: 1;
	}

	.bb-kasse-details {
		grid-row: 2;
	}

	.bb-kasse-form #payment .wc_payment_methods {
		grid-row: 3;
		margin-bottom: 30px;
	}

	.bb-kasse-summary-title {
		grid-row: 4;
		padding: 20px 20px 14px;
	}

	.bb-kasse-form .woocommerce-checkout-review-order-table {
		grid-row: 5;
		padding: 0 20px;
	}

	.bb-kasse-form #payment .place-order {
		grid-row: 6;
		padding: 18px 20px 20px;
	}

	.bb-kasse-note {
		grid-row: 7;
	}

	.bb-kasse-form .woocommerce-billing-fields__field-wrapper {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 480px) {
	.bb-kasse-form #payment .wc_payment_method > label {
		flex-wrap: wrap;
		row-gap: 8px;
	}

	.bb-kasse-form #payment .wc_payment_method > label img {
		height: 24px !important;
	}

	.bb-kasse-form #payment .payment_method_ppcp > label img {
		padding: 4px 8px;
	}
}
