.rtbc-account-tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0;
	margin: 0 0 24px;
	border: 1px solid #d9d9d9;
	border-radius: 4px;
	overflow: hidden;
}

.rtbc-account-tab {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	min-height: 48px;
	padding: 12px 18px;
	border: 0;
	border-radius: 0;
	background: #f3f3f3;
	color: #222;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	cursor: pointer;
	transition: background-color .18s ease, color .18s ease;
}

.rtbc-account-tab + .rtbc-account-tab {
	border-left: 1px solid #d9d9d9;
}

.rtbc-account-tab:hover,
.rtbc-account-tab:focus-visible {
	background: #e8e8e8;
	outline: none;
}

.rtbc-account-tab.is-active {
	background: #222;
	color: #fff;
}

.rtbc-b2c-registration-fields::after {
	display: table;
	clear: both;
	content: "";
}

.rtbc-is-hidden {
	display: none !important;
}

.rtbc-price-notice {
	display: inline-block;
	font-size: .92em;
	line-height: 1.35;
	opacity: .85;
}

@media (max-width: 480px) {
	.rtbc-account-tab {
		padding-right: 10px;
		padding-left: 10px;
		font-size: 14px;
	}
}


/* Full-width optional referral dropdown. */
#rtbc_b2c_referral_source_field,
#rtbc_b2c_referral_source_field .woocommerce-input-wrapper,
#rtbc_b2c_referral_source {
	display: block;
	width: 100% !important;
	max-width: none;
}

/* Avada may hide the standard price block in the legacy B2B layout. */
.rtbc-b2c-customer.single-product div.product .price,
.rtbc-b2c-customer.single-product .product .price,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb .price {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}


/* RoofTech B2C product price presentation.
 * Deliberately scoped to real B2C customer accounts only.
 * Administrators, shop managers, B2B users and guests keep Avada defaults.
 */
.rtbc-b2c-customer.single-product div.product p.price,
.rtbc-b2c-customer.single-product .product .summary p.price,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price {
	display: inline-flex !important;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 7px;
	position: relative;
	width: auto;
	max-width: 100%;
	margin: 22px 0 28px;
	padding: 24px 0 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: #1e2d4f;
	font-size: clamp(30px, 3vw, 42px);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -.035em;
}

.rtbc-b2c-customer.single-product div.product p.price::before,
.rtbc-b2c-customer.single-product .product .summary p.price::before,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price::before {
	content: "Preis";
	position: absolute;
	top: 0;
	left: 0;
	color: #68738a;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .09em;
	text-transform: uppercase;
}

.rtbc-b2c-customer.single-product div.product p.price::after,
.rtbc-b2c-customer.single-product .product .summary p.price::after,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price::after {
	content: "/Stück";
	color: #68738a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
	white-space: nowrap;
}

.rtbc-b2c-customer.single-product div.product p.price .woocommerce-Price-amount,
.rtbc-b2c-customer.single-product .product .summary p.price .woocommerce-Price-amount,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price .woocommerce-Price-amount {
	color: #1e2d4f;
	font: inherit;
}

.rtbc-b2c-customer.single-product div.product p.price .woocommerce-Price-currencySymbol,
.rtbc-b2c-customer.single-product .product .summary p.price .woocommerce-Price-currencySymbol,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price .woocommerce-Price-currencySymbol {
	color: #4666b3;
	font-size: .62em;
	font-weight: 700;
	vertical-align: .12em;
}

.rtbc-b2c-customer.single-product div.product p.price del,
.rtbc-b2c-customer.single-product .product .summary p.price del,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price del {
	color: #8a92a3;
	font-size: .58em;
	font-weight: 500;
	opacity: 1;
}

.rtbc-b2c-customer.single-product div.product p.price ins,
.rtbc-b2c-customer.single-product .product .summary p.price ins,
.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price ins {
	color: #1e2d4f;
	font-weight: 700;
	text-decoration: none;
}

/* Last-resort theme protection: never print technical audience category links. */
a[href*="/product-category/b2c-produkte/"],
a[href*="/product-category/b2b-produkte/"],
a[href*="product_cat=b2c-produkte"],
a[href*="product_cat=b2b-produkte"] {
	display: none !important;
}

@media (max-width: 480px) {
	.rtbc-b2c-customer.single-product div.product p.price,
	.rtbc-b2c-customer.single-product .product .summary p.price,
	.rtbc-b2c-customer.single-product .fusion-woo-price-tb p.price {
		font-size: 31px;
	}
}


/* B2C cart quantity visibility. */
.rtbc-b2c-customer .rtbc-cart-quantity {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.rtbc-b2c-customer .rtbc-cart-quantity .quantity {
	margin: 0;
}

.rtbc-b2c-customer .rtbc-cart-quantity-value,
.rtbc-b2c-customer .rtbc-mini-cart-quantity {
	display: inline-block;
	color: #1e2d4f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}


/* Explicit quantity label for WooCommerce Cart and Mini-Cart Blocks. */
.rtbc-b2c-customer .rtbc-block-cart-quantity {
	display: block;
	margin-top: 6px;
	color: #1e2d4f;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

/* B2C fallback quantity editor for WooCommerce Cart/Mini-Cart Blocks. */
.rtbc-b2c-customer .rtbc-block-quantity-editor {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 12px;
}

.rtbc-b2c-customer .rtbc-block-quantity-title {
	font-size: 13px;
	font-weight: 600;
	color: #25324a;
}

.rtbc-b2c-customer .rtbc-block-quantity-controls {
	display: inline-flex;
	align-items: center;
	height: 38px;
	border: 1px solid #d7dce5;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.rtbc-b2c-customer .rtbc-block-quantity-controls button,
.rtbc-b2c-customer .rtbc-block-quantity-controls input {
	box-sizing: border-box;
	height: 36px;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: #25324a;
}

.rtbc-b2c-customer .rtbc-block-quantity-controls button {
	width: 36px;
	padding: 0;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
}

.rtbc-b2c-customer .rtbc-block-quantity-controls button:hover:not(:disabled) {
	background: #f1f4f9;
	color: #4666b3;
}

.rtbc-b2c-customer .rtbc-block-quantity-controls button:disabled {
	opacity: .35;
	cursor: not-allowed;
}

.rtbc-b2c-customer .rtbc-block-quantity-input {
	width: 48px;
	padding: 0 4px;
	border-right: 1px solid #e2e6ed !important;
	border-left: 1px solid #e2e6ed !important;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	-moz-appearance: textfield;
}

.rtbc-b2c-customer .rtbc-block-quantity-input::-webkit-outer-spin-button,
.rtbc-b2c-customer .rtbc-block-quantity-input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

/*
 * WooCommerce Cart Block quantity visibility.
 * RoofTech/Avada hides the complete quantity wrapper globally. Restore it only
 * for authenticated B2C customers. All other account types remain hidden.
 */
body.rtbc-b2c-customer .wc-block-cart-item__quantity,
body.rtbc-b2c-customer .wc-block-mini-cart__drawer .wc-block-cart-item__quantity,
body.rtbc-b2c-customer .wc-block-components-mini-cart .wc-block-cart-item__quantity {
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	width: auto;
	height: auto;
	max-height: none;
	overflow: visible;
	pointer-events: auto;
}

body.rtbc-b2c-customer .wc-block-cart-item__quantity .wc-block-components-quantity-selector {
	display: inline-flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	pointer-events: auto;
}

body:not(.rtbc-b2c-customer) .wc-block-cart-item__quantity {
	display: none !important;
}

/* B2C-only Checkout Block cleanup. React may recreate these elements; the
 * frontend observer reapplies this utility class after every render. */
body.rtbc-b2c-customer .rtbc-b2c-checkout-hidden {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* Legacy/cached price notices must never be shown. */
.rtbc-price-notice { display: none !important; }


/* Remove empty WooCommerce/Avada price wrappers completely. */
p.price:empty,
.woocommerce p.price:empty,
.woocommerce div.product p.price:empty,
.woocommerce ul.products li.product .price:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
	min-height: 0 !important;
}


/* B2C: hide all business-only fields in My Account address forms and summaries. */
body.rtbc-b2c-customer.woocommerce-account .woocommerce-address-fields__field-wrapper #billing_company_field,
body.rtbc-b2c-customer.woocommerce-account .woocommerce-address-fields__field-wrapper #shipping_company_field,
body.rtbc-b2c-customer.woocommerce-account [id*="billing_steuernummer"],
body.rtbc-b2c-customer.woocommerce-account [id*="shipping_steuernummer"],
body.rtbc-b2c-customer.woocommerce-account [id*="billing_company_field"],
body.rtbc-b2c-customer.woocommerce-account [id*="shipping_company_field"],
body.rtbc-b2c-customer.woocommerce-account [class*="address-form__rooftech-billing_steuernummer"],
body.rtbc-b2c-customer.woocommerce-account [class*="address-form__rooftech-billing_company_field"] {
	display: none !important;
}
