/* Conversion package, see inc/conversion.php. */

/* ---------- Trust bar below the header ---------- */
.onea-trustbar {
	background: #f2f7fb;
	border-bottom: 1px solid #e3e8ee;
}

/* One line; points that do not fit wrap to a second line, which is cut off. So the bar never grows wider than the
   header, whatever the width. */
.onea-trustbar ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0 24px;
	max-width: var(--wd-container-w, 1222px);
	max-height: 36px;
	overflow: hidden;
	margin: 0 auto;
	padding: 0 15px;
	list-style: none;
}

.onea-trustbar li {
	display: flex;
	align-items: center;
	gap: 7px;
	height: 36px;
	margin: 0;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: #24313d;
	white-space: nowrap;
}

.onea-trustbar li::before {
	content: "";
	flex: 0 0 17px;
	height: 17px;
	background: #4f8a10;
	/* Check mark */
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 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 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.onea-trustbar li span {
	margin-left: -7px;
}

/* Home page: the category menu ("Pumpe nach Einsatzgebiet") is open there and covers the left part of the bar. */
@media (min-width: 1025px) {
	body:has(.wd-dropdown-cats.wd-opened) .onea-trustbar ul {
		padding-left: 310px;
	}
}

@media (max-width: 1024px) {
	.onea-trustbar ul {
		justify-content: space-around;
	}

	.onea-trustbar li span {
		display: none;
	}
}

@media (max-width: 767px) {
	.onea-trustbar ul {
		gap: 0 16px;
		max-height: 32px;
		padding: 0 10px;
	}

	.onea-trustbar li {
		height: 32px;
		font-size: 12.5px;
	}
}

/* ---------- Product cards: key figures below the title ---------- */
.onea-card-specs {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 8px auto;
	padding: 8px 10px;
	list-style: none;
	border-radius: 8px;
	background: #f7f9fb;
	font-size: 13px;
	line-height: 1.35;
	text-align: left;
}

.onea-card-specs li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	margin: 0;
	color: #5b6773;
}

.onea-card-specs strong {
	color: #24313d;
	font-weight: 700;
	white-space: nowrap;
}

/* Two cards per row on phones: less padding so label and value stay on one line. */
@media (max-width: 767px) {
	.onea-card-specs {
		margin-inline: 4px;
		padding: 6px 8px;
		font-size: 12px;
	}
}

/* Lists in sidebars and the "Wird oft zusammen gekauft" box are too narrow for the figures. */
.widget .onea-card-specs,
.wd-fbt .onea-card-specs,
.wd-sticky-btn .onea-card-specs {
	display: none;
}

/* ---------- Product page: buy box ---------- */
/* One main action: "In den Warenkorb" filled and large, "Jetzt kaufen" as an outlined second choice. */
.single-product .wd-single-price .price {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
}

.single-product .wd-single-add-cart form.cart .single_add_to_cart_button {
	min-height: 52px;
	font-size: 15px;
	letter-spacing: 0.02em;
	box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.single-product .wd-single-add-cart form.cart .wd-buy-now-btn {
	min-height: 44px;
	background: #fff;
	color: #0e5a96;
	box-shadow: inset 0 0 0 2px #0e5a96;
}

.single-product .wd-single-add-cart form.cart .wd-buy-now-btn:hover {
	background: #0e5a96;
	color: #fff;
}

/* ---------- Product page: jump navigation and folded description ---------- */
.onea-pnav {
	position: sticky;
	top: var(--onea-pnav-top, 0px);
	z-index: 20;
	display: flex;
	gap: 6px;
	width: 100%;
	margin: 0 0 18px;
	padding: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 4px 14px rgba(20, 40, 60, 0.06);
}

/* Logged-in admins: stay below the WordPress toolbar. */
.admin-bar .onea-pnav {
	--onea-pnav-top: 32px;
}

.onea-pnav::-webkit-scrollbar {
	display: none;
}

.onea-pnav a {
	flex: 0 0 auto;
	padding: 8px 14px;
	border-radius: 7px;
	font-size: 14px;
	font-weight: 600;
	color: #24313d;
	white-space: nowrap;
}

.onea-pnav a:hover {
	background: #f2f7fb;
	color: #0e5a96;
}

.onea-pnav a.is-active {
	background: #0e5a96;
	color: #fff;
}

.onea-fold:not(.is-open) {
	position: relative;
	max-height: 420px;
	overflow: hidden;
}

.onea-fold:not(.is-open)::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 110px;
	background: linear-gradient(rgba(255, 255, 255, 0), #fff);
	pointer-events: none;
}

.onea-fold__button {
	display: inline-flex;
	margin: 6px 0 26px;
	padding: 10px 18px;
	border: 2px solid #0e5a96;
	border-radius: 8px;
	background: #fff;
	font-size: 14px;
	font-weight: 700;
	color: #0e5a96;
	cursor: pointer;
}

.onea-fold__button:hover {
	background: #0e5a96;
	color: #fff;
}

/* ---------- Cart ---------- */
.woocommerce-cart .cart_totals .onea-kasse-vertrauen {
	margin-top: 16px;
}

/* ---------- Product building blocks (inc/produkt-bausteine.php) ---------- */
.onea-einsatz {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 2px 8px;
	margin: 0 0 14px;
	padding: 7px 12px;
	border: 1px solid #b9d3e6;
	border-radius: 8px;
	background: #f2f7fb;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
	color: #0e5a96;
}

.onea-einsatz span {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #5b6773;
	text-transform: uppercase;
}

.onea-card-einsatz {
	margin: 6px 0 0;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.35;
	color: #0e5a96;
}

.widget .onea-card-einsatz,
.wd-fbt .onea-card-einsatz {
	display: none;
}

.onea-zubehoer__hinweis {
	margin-bottom: 16px;
	padding: 12px 16px;
	border-left: 4px solid #e0a100;
	border-radius: 0 8px 8px 0;
	background: #fff8e6;
	color: #24313d;
}

.onea-zubehoer__hinweis p:last-child {
	margin-bottom: 0;
}

.onea-zubehoer {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.onea-zubehoer li {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #e3e8ee;
	border-radius: 10px;
	background: #fff;
}

.onea-zubehoer__bild {
	flex: 0 0 72px;
}

.onea-zubehoer__bild img {
	width: 72px;
	height: 72px;
	object-fit: contain;
}

.onea-zubehoer__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.onea-zubehoer__text a {
	font-weight: 700;
	color: #24313d;
}

.onea-zubehoer__text strong {
	color: #0e5a96;
}

.onea-zubehoer .onea-zubehoer__button {
	flex: 0 0 auto;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 8px;
	background: #fff;
	box-shadow: inset 0 0 0 2px #0e5a96;
	font-size: 13px;
	color: #0e5a96;
}

.onea-zubehoer .onea-zubehoer__button:hover,
.onea-zubehoer .onea-zubehoer__button.added {
	background: #0e5a96;
	color: #fff;
}

.onea-zubehoer .added_to_cart {
	display: none;
}

.onea-pfaq details {
	border-bottom: 1px solid #e3e8ee;
}

.onea-pfaq summary {
	position: relative;
	padding: 14px 34px 14px 0;
	font-size: 16px;
	font-weight: 700;
	color: #24313d;
	cursor: pointer;
	list-style: none;
}

.onea-pfaq summary::-webkit-details-marker {
	display: none;
}

.onea-pfaq summary::after {
	content: "+";
	position: absolute;
	top: 10px;
	right: 4px;
	font-size: 24px;
	font-weight: 400;
	line-height: 1;
	color: #0e5a96;
}

.onea-pfaq details[open] summary::after {
	content: "–";
}

.onea-pfaq details > p {
	max-width: 760px;
	margin: 0 0 14px;
}

/* ---------- Phones ---------- */
.onea-msearch,
.onea-buybar,
.onea-title-copy {
	display: none;
}

@media (max-width: 767px) {
	/* Search field below the header (onea_mobile_search). 16px keeps iOS from zooming into the field. */
	.onea-msearch {
		position: relative;
		display: block;
		padding: 8px 12px;
		background: #fff;
	}

	.onea-msearch input[type="search"] {
		box-sizing: border-box;
		width: 100%;
		height: 42px;
		padding: 0 46px 0 14px;
		border: 1px solid #c9d5df;
		border-radius: 9px;
		background: #f7f9fb;
		font-size: 16px;
	}

	.onea-msearch button {
		position: absolute;
		top: 8px;
		right: 12px;
		width: 46px;
		height: 42px;
		min-height: 0;
		padding: 0;
		border: 0;
		background: #0e5a96;
		-webkit-mask: var(--onea-icon) center / 20px no-repeat;
		mask: var(--onea-icon) center / 20px no-repeat;
		--onea-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M16 16l5.5 5.5'/%3E%3C/svg%3E");
	}

	/* Product page: fixed buy bar instead of Woodmart's toolbar and sticky button (two bars, no price). */
	.onea-buybar {
		position: fixed;
		inset: auto 0 0;
		z-index: 360;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 8px 14px calc(8px + env(safe-area-inset-bottom));
		border-top: 1px solid #e3e8ee;
		background: #fff;
		box-shadow: 0 -4px 14px rgba(20, 40, 60, 0.1);
	}

	.onea-buybar__price {
		flex: 1 1 auto;
		min-width: 0;
		line-height: 1.15;
	}

	.onea-buybar__price .price {
		white-space: nowrap;
		display: block;
		font-size: 20px;
		font-weight: 700;
		color: #0e5a96;
	}

	.onea-buybar__price small {
		display: block;
		margin-top: 2px;
		overflow: hidden;
		font-size: 11px;
		color: #5b6773;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.onea-buybar__button {
		display: inline-flex;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		min-height: 46px;
		padding: 0 18px;
		border-radius: var(--btn-accented-brd-radius, 35px);
		background: var(--btn-accented-bgcolor, #83b735);
		box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
		font-size: 14px;
		font-weight: 700;
		letter-spacing: 0.02em;
		color: #fff;
		text-transform: uppercase;
	}

	.onea-buybar__button:hover {
		color: #fff;
	}

	.onea-buybar-on .wd-toolbar,
	.onea-buybar-on .wd-sticky-btn,
	.onea-buybar-on .scrollToTop {
		display: none !important;
	}

	/* Product page: stars and Einsatz-Etikett below the title (copies made by produkt-nav.js). */
	.onea-title-copy {
		display: flex;
		align-items: center;
		gap: 8px;
		margin: 8px 0 0;
		font-size: 14px;
	}

	.onea-title-original,
	.wd-single-rating:has(.onea-title-original) {
		display: none !important;
	}

	/* Product page: small thumbnails in one row. Portrait thumbnails (curves, drawings) made the row 156px high. */
	.single-product .wd-gallery-thumb .wd-carousel {
		--wd-col-sm: 5;
	}

	.single-product .wd-gallery-thumb .wd-carousel-item img {
		width: 100%;
		height: 52px;
		object-fit: contain;
	}

	/* Product page: the buy box of the standard layout has 30px padding and a 5px frame, a third of the width. */
	.elementor-81297 .elementor-element.elementor-element-596427e8 {
		padding: 16px;
		border-width: 1px;
		border-radius: 10px;
	}

	/* Product page: justified text tears gaps into narrow columns. */
	.single-product #tab-description,
	.single-product #tab-description p {
		text-align: left;
	}

	.single-product .wd-single-short-desc ul {
		padding-left: 18px;
	}

	/* Product cards, two per row: the category repeats the page title, the legal lines get one compact block. */
	.wd-product .wd-product-cats {
		display: none;
	}

	.wd-product .wrapp-product-price .wgm-info {
		margin: 0;
		font-size: 11px;
		line-height: 1.45;
	}

	/* "Das brauchen Sie dazu": button below the text. */
	.onea-zubehoer li {
		flex-wrap: wrap;
		gap: 10px 12px;
	}

	.onea-zubehoer__bild {
		flex-basis: 56px;
	}

	.onea-zubehoer__bild img {
		width: 56px;
		height: 56px;
	}

	.onea-zubehoer__text {
		flex-basis: calc(100% - 70px);
	}

	.onea-zubehoer .onea-zubehoer__button {
		flex: 1 1 100%;
	}
}
