/* Shop: product lists, product page, product blocks on content pages, cart, checkout, login. */

/* Buttons of every plugin in one size */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .checkout-button,
.woocommerce #place_order {
	font-size: 1rem !important; /* over WooCommerce's own button sizes */
	font-weight: 300;
	line-height: 1.3;
}

.woocommerce .checkout-button,
.woocommerce #place_order {
	padding: 0.75em 1.6em !important;
}

/* Buttons that lead to another shop (Amazon) show that they leave the site. */
.product_type_external::after,
.single_add_to_cart_button.hbge-external::after {
	content: "";
	display: inline-block;
	width: 0.7em;
	height: 0.7em;
	margin-left: 0.45em;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M5 2H2v8h8V7M7 1.5h3.5V5M10.5 1.5 5.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='black' stroke-width='1.5'%3E%3Cpath d='M5 2H2v8h8V7M7 1.5h3.5V5M10.5 1.5 5.5 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.woocommerce .quantity input.qty {
	width: 4.5em;
	min-height: 46px;
}

/* Products sold one at a time keep only a hidden quantity, which would still take a gap. */
form.cart .quantity:has(> input[type="hidden"]) {
	display: none !important; /* over WooCommerce's inline-block */
}

/* Product lists (product collection block): compact buttons on one line; legal lines small under the price */
.wp-block-woocommerce-product-collection .wp-block-button__link,
.wp-block-woocommerce-product-collection .wp-element-button,
.wc-block-components-product-button .wp-block-button__link {
	padding: 0.5em 1.1em;
	font-size: var(--wp--preset--font-size--x-small);
	white-space: nowrap;
}

.wp-block-woocommerce-product-collection .wp-block-post-title {
	font-size: 1rem !important; /* over the block's font size preset */
	line-height: 1.35;
}

.wc-block-product {
	display: flex;
	flex-direction: column;
}

.wc-block-product.product p.wc-gzd-additional-info {
	margin: 0;
	font-size: var(--wp--preset--font-size--xxx-small);
	line-height: 1.5;
	opacity: 0.85;
}

.wc-block-product > .wp-block-woocommerce-product-button {
	order: 2;
	margin-top: auto;
	padding-top: 12px;
}

/* Related products and upsells: equal cards, prices and buttons on one line across the row */
.woocommerce .related ul.products,
.woocommerce .upsells ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr));
	gap: 32px 20px;
	margin: 0;
}

@media (min-width: 1000px) {
	.woocommerce .related ul.products,
	.woocommerce .upsells ul.products {
		grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	}
}

.woocommerce .related ul.products::before,
.woocommerce .related ul.products::after,
.woocommerce .upsells ul.products::before,
.woocommerce .upsells ul.products::after {
	display: none;
}

.woocommerce .related ul.products li.product,
.woocommerce .upsells ul.products li.product {
	display: flex;
	flex-direction: column;
	width: auto;
	margin: 0;
	float: none;
	font-size: var(--wp--preset--font-size--xxx-small);
	line-height: 1.5;
}

.woocommerce ul.products li.product a img {
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: var(--wp--custom--radius--medium);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
	min-height: 2.7em;
	padding: 0;
	color: var(--wp--preset--color--gold-text);
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.35;
}

.woocommerce ul.products li.product .price {
	margin: 8px 0 2px;
	color: var(--wp--preset--color--gold-deep);
	font-size: 17px;
}

.woocommerce ul.products li.product .wc-gzd-additional-info {
	margin: 0;
	font-size: var(--wp--preset--font-size--xxx-small);
	opacity: 0.85;
}

.woocommerce ul.products li.product .wc-gzd-additional-info:last-of-type {
	margin-bottom: 16px;
}

.woocommerce ul.products li.product .button {
	align-self: flex-start;
	max-width: 100%;
	margin-top: auto;
	padding: 0.6em 1.1em;
	font-size: var(--wp--preset--font-size--xx-small);
	white-space: normal;
	text-align: left;
}

/* Product page: picture and text across the wide width like the breadcrumb, not in the narrow text column */
.single-product main > div.product {
	max-width: var(--wp--style--global--wide-size);
}

/* ...but the description keeps the line length of running text */
.single-product div.product .woocommerce-tabs .panel {
	max-width: var(--wp--style--global--content-size);
}

/* Product page: variant choice stacks under its label */
.single-product table.variations,
.single-product table.variations tbody,
.single-product table.variations tr,
.single-product table.variations th,
.single-product table.variations td,
.wp-block-woocommerce-single-product table.variations,
.wp-block-woocommerce-single-product table.variations tbody,
.wp-block-woocommerce-single-product table.variations tr,
.wp-block-woocommerce-single-product table.variations th,
.wp-block-woocommerce-single-product table.variations td {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 0;
	text-align: left;
}

.woocommerce table.variations tr td select,
.woocommerce div.product form.cart .variations select,
.single-product table.variations select,
.wp-block-woocommerce-single-product table.variations select {
	width: 100%;
	max-width: 100%;
	height: auto;
	min-height: 48px;
	margin: 6px 0 4px;
	padding: 8px 40px 8px 14px;
	line-height: 1.75;
	text-overflow: ellipsis;
}

.woocommerce div.product table.variations th.label,
.woocommerce div.product table.variations th.label label {
	padding: 0 0 6px;
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	line-height: 1.4;
}

/* Every variable product has a single attribute; its reset link would only clear the one choice. */
table.variations:not(:has(tbody > tr + tr)) .reset_variations {
	display: none;
}

.single-product .single_variation_wrap .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form),
.wp-block-woocommerce-single-product .woocommerce-variation-add-to-cart,
.wp-block-woocommerce-single-product form.cart:not(.variations_form) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.wp-block-woocommerce-single-product .woocommerce-variation-add-to-cart,
.wp-block-woocommerce-single-product form.cart:not(.variations_form) {
	margin-top: 12px;
}

.wp-block-woocommerce-single-product .wp-block-woocommerce-product-summary {
	font-size: var(--wp--preset--font-size--small);
}

/* Product page: tax, shipping and delivery lines as one quiet block, with room before the button */
.woocommerce div.product .summary .legal-price-info,
.woocommerce div.product .summary .wc-gzd-additional-info {
	margin: 0;
	font-size: var(--wp--preset--font-size--xx-small);
	line-height: 1.55;
	opacity: 0.9;
}

.woocommerce div.product .summary .price {
	margin-bottom: 6px;
}

.woocommerce div.product .summary p.cart,
.woocommerce div.product .summary form.cart {
	margin-top: 28px;
}

/* Country rules of the site plugin; inside product cards smaller, like the other legal lines there */
.hbge-country-note {
	margin: 4px 0 0;
	font-size: var(--wp--preset--font-size--xx-small);
	line-height: 1.55;
	opacity: 0.9;
}

.is-style-card .hbge-country-note {
	font-size: var(--wp--preset--font-size--xxx-small);
	line-height: 1.5;
	opacity: 0.85;
}

/* Where parcels go (site plugin, Shop\Delivery): a quiet box on product pages, above cart and checkout */
.hbge-delivery-note {
	margin: 16px 0 0;
	padding: 14px 18px;
	border-left: 3px solid var(--wp--preset--color--gold);
	border-radius: var(--wp--custom--radius--small);
	background: var(--wp--preset--color--peach);
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
}

.hbge-delivery-note p {
	margin: 0;
}

.hbge-delivery-note p + p {
	margin-top: 6px;
}

.hbge-delivery-note .hbge-delivery-note__small {
	font-size: var(--wp--preset--font-size--xx-small);
	opacity: 0.85;
}

.hbge-delivery-note--cart {
	margin: 0 0 24px;
}

.hbge-delivery-note details {
	margin-top: 6px;
}

.hbge-delivery-note summary {
	color: var(--wp--preset--color--gold-deep);
	text-decoration: underline;
	cursor: pointer;
}

.hbge-delivery-note details p {
	margin-top: 6px;
}

/* Digital content (site plugin, Shop\RightsNote): one quiet line under the price about the right of use */
.hbge-rights-note {
	margin: 12px 0 0;
	font-size: var(--wp--preset--font-size--xx-small);
	line-height: 1.5;
	opacity: 0.85;
}

.hbge-rights-note a {
	color: inherit;
	text-decoration: underline;
}

/* Germanized's checkboxes at checkout (terms, digital content, emails): box on the left, the text beside it.
   Germanized sets the labels inline with an ID selector, hence #order_review. */
.woocommerce-checkout p.legal {
	margin: 0 0 14px;
	padding: 0;
}

#order_review .wc-gzd-checkbox-placeholder p.form-row.legal label.checkbox {
	display: block;
	position: relative;
	margin: 0;
	padding-left: 30px;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.55;
	cursor: pointer;
}

#order_review .wc-gzd-checkbox-placeholder p.form-row.legal input[type="checkbox"] {
	position: absolute;
	top: 2px;
	left: 0;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--wp--preset--color--gold-deep);
}

.woocommerce-checkout p.legal .hbge-checkbox-note {
	display: block;
	margin-top: 2px;
	font-size: var(--wp--preset--font-size--xx-small);
	opacity: 0.85;
}

/* The EU warranty notice at checkout: the small official picture beside a short text; the full notice opens on a tap */
.wc-gzd-legal-guarantee-checkout {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 16px;
	align-items: center;
	margin: 24px 0;
	padding: 16px;
	border: 1px solid var(--wp--custom--color--gold-line);
	border-radius: var(--wp--custom--radius--medium);
}

/* Our text says which products it is about; Germanized's own sentence for mixed carts would sit squeezed beside the picture. */
.wc-gzd-legal-guarantee-checkout .wc-gzd-legal-guarantee-mixed-cart-notice {
	display: none;
}

.wc-gzd-legal-guarantee-checkout .wc-gzd-legal-guarantee-label {
	width: 96px;
}

.wc-gzd-legal-guarantee-checkout .wc-gzd-popover-wrapper .wc-gzd-popover-trigger img.wc-gzd-legal-guarantee-image-preview {
	display: block;
	width: 96px;
	min-width: 0; /* over Germanized's 250px */
	max-width: 96px;
	border-radius: 6px;
	box-shadow: 0 1px 4px rgb(0 0 0 / 0.12);
	cursor: pointer;
}

.hbge-guarantee-text p {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	line-height: 1.5;
}

.hbge-guarantee-text .hbge-guarantee-text__title {
	margin-bottom: 2px;
	font-weight: 600;
}

.hbge-guarantee-text .hbge-guarantee-text__hint {
	margin-top: 4px;
	font-size: var(--wp--preset--font-size--xx-small);
	opacity: 0.8;
}

.hbge-guarantee-text strong {
	display: block;
	font-weight: 500;
}

.wc-gzd-popover:not(.wc-gzd-popover-hover):popover-open {
	width: min(calc(100vw - 32px), 640px);
	max-height: calc(100dvh - 48px);
	overflow: auto;
	padding: 8px 12px 12px;
	border: 0;
	border-radius: var(--wp--custom--radius--large);
}

.wc-gzd-popover .wc-gzd-popover-close {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.wc-gzd-popover p.wc-gzd-popover-caption {
	margin: 8px 0 0;
	font-size: var(--wp--preset--font-size--x-small);
	text-align: center;
}

/* Country lists at checkout (selectWoo): gold instead of WooCommerce blue, the frame like the other fields */
.select2-container--default .select2-selection--single,
.select2-dropdown {
	border-color: var(--wp--custom--color--field-border) !important; /* over selectWoo's grey */
}

.select2-dropdown {
	overflow: hidden;
	border-radius: 0 0 10px 10px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted[data-selected] {
	background: var(--wp--preset--color--gold-deep) !important; /* over WooCommerce's blue */
	color: #fff !important;
}

.select2-container--default .select2-results__option {
	outline: none; /* the highlight shows where the keyboard is */
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-results__option[data-selected="true"] {
	background: var(--wp--custom--color--gold-tint);
	color: var(--wp--preset--color--contrast);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
	border: 1px solid var(--wp--custom--color--field-border);
	border-radius: 8px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
	outline: 2px solid var(--wp--preset--color--gold-dark);
	outline-offset: 1px;
}

/* Cart rows on wider screens: a real product picture, the remove button quiet, delivery time as a small line */
.woocommerce-cart table.cart td.product-thumbnail img {
	width: 64px;
	border-radius: 8px;
}

.woocommerce-cart table.cart td.product-name {
	font-weight: 500;
}

.woocommerce-cart table.cart td.product-name p,
.woocommerce-cart table.cart td.product-name .wc-gzd-cart-info {
	margin: 4px 0 0;
	font-size: var(--wp--preset--font-size--xx-small);
	font-weight: 400;
	opacity: 0.85;
}

.woocommerce-cart table.cart td.product-remove {
	width: 48px;
	text-align: center;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
	height: auto;
	padding: 0.6em 1em;
	border: 1px solid var(--wp--custom--color--field-border);
	border-radius: 999px;
}

.woocommerce-cart table.cart td.actions .coupon .button {
	border: 1.5px solid var(--wp--preset--color--gold-deep);
	background: transparent;
	color: var(--wp--preset--color--gold-deep);
}

.woocommerce-cart table.cart td.actions .coupon .button:hover {
	background: var(--wp--custom--color--gold-tint);
}

.woocommerce-cart .cart_totals td {
	text-align: right;
}

/* „Versandkosten berechnen“: only the country (site plugin), as a plain form under the shipping line */
.woocommerce-cart .cart_totals .shipping-calculator-form {
	margin-top: 0.75rem;
	text-align: left;
}
.woocommerce-cart .cart_totals .shipping-calculator-form .form-row {
	margin: 0 0 0.75rem;
	padding: 0;
}
.woocommerce-cart .cart_totals .shipping-calculator-form select {
	width: 100%;
	text-align: left;
}
.woocommerce-cart .cart_totals .shipping-calculator-form p:last-child {
	margin: 0;
}

/* Payment: each method as a card, the chosen one in gold; its short description inside the card */
.woocommerce-checkout #payment {
	background: none;
	border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
	display: grid;
	gap: 10px;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
	margin: 0;
	padding: 0;
	border: 1px solid var(--wp--custom--color--gold-line);
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--base);
	list-style: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:has(input:checked) {
	border-color: var(--wp--preset--color--gold-deep);
	box-shadow: 0 0 0 1px var(--wp--preset--color--gold-deep);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > input.input-radio {
	position: absolute;
	margin: 19px 0 0 16px;
	accent-color: var(--wp--preset--color--gold-deep);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px 14px 44px;
	font-weight: 500;
	cursor: pointer;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label img {
	max-height: 22px;
	margin: 0 0 0 auto;
}

.woocommerce-checkout #payment div.payment_box {
	margin: -6px 0 0 !important; /* over WooCommerce's speech-bubble box */
	padding: 0 16px 14px 44px !important;
	background: none !important;
	color: inherit;
	font-size: var(--wp--preset--font-size--x-small);
	opacity: 0.85;
}

.woocommerce-checkout #payment div.payment_box::before {
	display: none;
}

.woocommerce-checkout #payment div.payment_box p:last-child {
	margin-bottom: 0;
}

.woocommerce-checkout #payment div.form-row.place-order {
	margin: 0;
	padding: 0;
}

@media (max-width: 599px) {
	.woocommerce-checkout #place_order {
		width: 100%;
	}
}

/* Order summary at checkout: the site's card instead of WooCommerce's grey table */
.woocommerce-checkout table.woocommerce-checkout-review-order-table th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table td,
.woocommerce-checkout table.woocommerce-checkout-review-order-table thead,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody {
	background: none !important; /* over WooCommerce's and Germanized's grey rows */
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table {
	background: var(--wp--preset--color--base) !important; /* over Germanized's grey table */
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
	font-weight: 400;
	vertical-align: middle;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
	font-weight: 600;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 500;
	opacity: 0.8;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table td.product-name {
	font-size: var(--wp--preset--font-size--small);
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table .wc-gzd-cart-item-thumbnail img {
	width: 56px !important;
	border-radius: 8px;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tr.order-total td {
	font-size: var(--wp--preset--font-size--medium);
}

/* The shipping cost reads like the other amounts, not smaller and bold, and on the same line as its label */
.woocommerce-shipping-totals td ul#shipping_method,
.woocommerce-shipping-totals td ul#shipping_method li {
	margin: 0 !important;
	padding: 0;
}

/* The shipping cost reads like the other amounts, not smaller and bold */
.woocommerce-shipping-totals td,
.woocommerce-shipping-totals td strong,
.woocommerce-shipping-totals td .amount,
.woocommerce-shipping-totals td label {
	font-size: inherit !important;
	font-weight: inherit !important;
}

/* A changed quantity saves itself (site plugin), so the update button only stays for browsers without JavaScript */
.hbge-cart-saves .woocommerce-cart-form button[name="update_cart"] {
	display: none !important; /* over WooCommerce's small-screen buttons */
}

/* Cart on phones: each product as one card instead of a table with a label in every row */
@media (max-width: 768px) {
	.woocommerce-cart table.cart,
	.woocommerce-cart table.cart tbody {
		display: block;
		border: 0;
	}

	.woocommerce-cart table.cart tr.cart_item {
		display: grid;
		grid-template-columns: 72px 1fr auto;
		position: relative;
		grid-template-areas:
			"thumb name name"
			"thumb qty subtotal";
		gap: 8px 14px;
		align-items: center;
		margin: 0 0 12px;
		padding: 14px;
		border: 1px solid var(--wp--custom--color--gold-line);
		border-radius: 14px;
	}

	.woocommerce-cart table.cart tr.cart_item td {
		display: block;
		padding: 0 !important; /* over WooCommerce's small-screen table cells */
		border: 0 !important;
		background: none !important;
		text-align: left !important;
	}

	.woocommerce-cart table.cart tr.cart_item td::before {
		display: none !important; /* the "Produkt:", "Preis:" labels */
	}

	.woocommerce-cart table.cart td.product-thumbnail {
		display: block !important; /* WooCommerce hides it on phones */
		grid-area: thumb;
		align-self: start;
	}

	.woocommerce-cart table.cart td.product-thumbnail img {
		width: 72px !important;
		height: auto;
		border-radius: 10px;
	}

	.woocommerce-cart table.cart td.product-name {
		grid-area: name;
		font-size: var(--wp--preset--font-size--small);
		line-height: 1.35;
	}

	.woocommerce-cart table.cart td.product-name .wc-gzd-cart-info,
	.woocommerce-cart table.cart td.product-name p {
		margin: 4px 0 0;
		font-size: var(--wp--preset--font-size--xx-small);
		opacity: 0.85;
	}

	.woocommerce-cart table.cart tr.cart_item td.product-name {
		padding-right: 36px !important; /* room for the bin; over the cells' zero padding above */
	}

	/* The bin in the card's corner; its icon ends where the price below ends (14px card padding minus the button's 9px inset) */
	.woocommerce-cart table.cart td.product-remove {
		position: absolute;
		top: 6px;
		right: 5px;
		width: auto;
		line-height: 0;
	}

	.woocommerce-cart table.cart td.product-price {
		display: none !important; /* the line total says the same for one copy */
	}

	.woocommerce-cart table.cart td.product-quantity {
		grid-area: qty;
	}

	.woocommerce-cart table.cart td.product-quantity input.qty {
		width: 4.5em;
	}

	.woocommerce-cart table.cart td.product-subtotal {
		grid-area: subtotal;
		font-weight: 500;
		text-align: right !important;
	}

	.woocommerce-cart table.cart tr:not(.cart_item) {
		display: block;
	}

	.woocommerce-cart table.cart td.actions {
		display: block;
		padding: 4px 0 0 !important;
		border: 0 !important;
	}

	.woocommerce-cart table.cart td.actions .coupon {
		flex-wrap: nowrap;
		padding-bottom: 0;
		border: 0;
	}

	.woocommerce-cart table.cart td.actions .coupon .button {
		flex: 0 0 auto;
		padding-inline: 1em;
	}

	.woocommerce-cart .cart-collaterals {
		margin-top: 28px;
	}

	.wc-gzd-legal-guarantee-checkout {
		gap: 12px;
		padding: 12px;
	}

	.wc-gzd-legal-guarantee-checkout .wc-gzd-legal-guarantee-label {
		width: 72px;
	}

	.wc-gzd-legal-guarantee-checkout .wc-gzd-popover-wrapper .wc-gzd-popover-trigger img.wc-gzd-legal-guarantee-image-preview {
		width: 72px;
		max-width: 72px;
	}
}

/* Product tabs: plain words with a gold line under the open one; a single tab needs no tab bar */
.woocommerce div.product .woocommerce-tabs ul.tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 24px;
	margin: 0 0 20px;
	padding: 0;
	border-bottom: 1px solid var(--wp--custom--color--gold-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs:has(> li:only-child) {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
	display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: block;
	padding: 10px 0;
	color: var(--wp--preset--color--contrast);
	font-weight: 400;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--wp--preset--color--gold-deep);
	box-shadow: inset 0 -2px 0 var(--wp--preset--color--gold-deep);
}

/* Product cards on content pages: the price at the top carries the tax note, so the choice below needs no second price. */
.is-style-card > .wp-block-woocommerce-single-product > :first-child {
	margin-top: 0;
}

.is-style-card .wp-block-woocommerce-product-price {
	margin-top: 4px;
	color: var(--wp--preset--color--gold-deep);
}

.is-style-card .hbge-price-note {
	margin-top: 0;
	font-size: var(--wp--preset--font-size--xxx-small);
	opacity: 0.85;
}

.is-style-card .wp-block-woocommerce-single-product .woocommerce-variation-price {
	display: none;
}

.is-style-card .wp-block-woocommerce-single-product table.variations th,
.is-style-card .wp-block-woocommerce-single-product table.variations label {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
}

.is-style-card form.cart {
	margin-top: 20px;
}

/* The course a newcomer books first sits on its own panel inside the card. */
.hbge-booking__product {
	margin-top: 20px;
	padding: 20px 22px;
	border-radius: var(--wp--custom--radius--medium);
	background: var(--wp--preset--color--sand);
}

.hbge-booking__product .wp-block-post-title {
	margin: 0;
	font-size: var(--wp--preset--font-size--large);
}

.hbge-booking__product .wp-block-woocommerce-product-summary,
.hbge-booking__product .wp-block-woocommerce-product-summary p {
	font-size: var(--wp--preset--font-size--x-small);
}

/* Cart: a quiet remove link, the coupon button on one line, and "update" only looks pressable when it is */
.woocommerce a.remove {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	color: var(--wp--preset--color--contrast) !important; /* over WooCommerce's red */
	opacity: 0.75;
}

.woocommerce a.remove:hover,
.woocommerce a.remove:focus-visible {
	opacity: 1;
}

.woocommerce a.remove:hover {
	background: var(--wp--custom--color--gold-tint);
	color: var(--wp--preset--color--gold-dark) !important;
}

.woocommerce-cart table.cart td.actions .coupon {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.woocommerce-cart table.cart td.actions .coupon::before,
.woocommerce-cart table.cart td.actions .coupon::after {
	display: none;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
	flex: 1 1 9rem;
	width: auto !important; /* over WooCommerce's fixed coupon width */
	min-width: 0;
	margin: 0 !important;
}

.woocommerce-cart table.cart td.actions .coupon .button {
	flex: 1 1 auto;
	width: auto !important;
	margin: 0 !important;
	white-space: nowrap;
}

.woocommerce-cart table.cart td.actions button[name="update_cart"] {
	border: 1.5px solid var(--wp--preset--color--gold-deep);
	background: transparent;
	color: var(--wp--preset--color--gold-deep);
}

.woocommerce-cart table.cart td.actions button[name="update_cart"]:disabled {
	opacity: 0.45;
}

.woocommerce table.shop_table,
.woocommerce-cart .cart_totals table {
	border-color: var(--wp--custom--color--gold-line);
	border-radius: 14px;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
	border-color: var(--wp--custom--color--gold-line);
}

.woocommerce-cart .cart_totals tr:nth-child(2n) td,
.woocommerce-cart .cart_totals tr:nth-child(2n) th,
.woocommerce table.shop_table_responsive tr:nth-child(2n) td {
	background: transparent;
}

.woocommerce form .form-row label {
	margin-bottom: 4px;
}

/* Login: one card under the page title, with who it is for and where parents go instead */
.woocommerce-account:not(.logged-in) .woocommerce > h2:first-of-type {
	display: none;
}

/* A notice above the login (e.g. "Dieser Bereich ist für Kursleiter:innen") as wide as the card */
.woocommerce-account:not(.logged-in) .woocommerce > .wc-block-components-notice-banner {
	max-width: calc(440px + 2 * clamp(24px, 4vw, 36px)); /* the card's width with its padding */
	margin-inline: auto;
}

.woocommerce form.woocommerce-form-login {
	max-width: 440px;
	margin: 0 auto;
	padding: clamp(24px, 4vw, 36px);
	border: 0;
	border-radius: var(--wp--custom--radius--large);
	background: var(--wp--preset--color--base);
	box-shadow: var(--wp--preset--shadow--raised);
}

.woocommerce form.woocommerce-form-login .form-row {
	margin: 0 0 16px;
	padding: 0;
}

.woocommerce form.woocommerce-form-login input.input-text {
	width: 100%;
}

.woocommerce form.woocommerce-form-login .form-row:has(.woocommerce-form-login__rememberme) {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 18px;
	margin-top: 4px;
}

.woocommerce form.woocommerce-form-login .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
}

.woocommerce form.woocommerce-form-login .woocommerce-form-login__submit {
	width: 100%;
	margin: 0;
	float: none;
}

.woocommerce form.woocommerce-form-login .lost_password {
	margin: 0;
	font-size: var(--wp--preset--font-size--x-small);
	text-align: center;
}

.hbge-login-intro {
	margin: 0 0 20px;
}

.hbge-login-hint {
	margin: 24px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--wp--custom--color--gold-line);
	font-size: var(--wp--preset--font-size--x-small);
}

/* Notices in the site's colours instead of WordPress blue; focused for screen readers without a frame */
.wc-block-components-notice-banner {
	border-radius: var(--wp--custom--radius--medium);
	color: var(--wp--preset--color--contrast);
}

.wc-block-components-notice-banner:focus {
	outline: none;
}

.wc-block-components-notice-banner.is-info {
	border-color: var(--wp--custom--color--gold-strong);
	background: var(--wp--custom--color--info);
}

.wc-block-components-notice-banner.is-info > svg {
	background-color: var(--wp--preset--color--gold-deep);
}

.wc-block-components-notice-banner.is-success {
	border-color: var(--wp--custom--color--success);
	background: var(--wp--custom--color--success-soft);
}

.wc-block-components-notice-banner.is-error {
	border-color: var(--wp--custom--color--error);
	background: var(--wp--custom--color--error-soft);
}

.wc-block-components-notice-banner a,
.wc-block-components-notice-banner .wc-forward {
	color: var(--wp--preset--color--gold-deep) !important; /* over the notice's link colour */
}

@media (max-width: 599px) {
	.wp-block-woocommerce-product-collection .wp-block-button__link,
	.wp-block-woocommerce-product-collection .wp-element-button {
		width: 100%;
		padding-inline: 0.6em;
		font-size: var(--wp--preset--font-size--xx-small);
	}
}
