/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* Keep link weight consistent before and during hover. */
body a {
	font-weight: bold !important;
}

.wpbdp-listings-sort-options select {
	margin: 0;
}

.wpbdp-main-box#wpbdp-main-box .wpbdp-zipcodesearch-search-unit .distance-field-wrapper .unit-label {
	font-size: 120%;
}

.wpbdp-listings-sort-options label {
	font-size: 17px;
}

.uvvfinder-home-zip-search {
	display: flex;
	gap: 10px;
	align-items: center;
	width: 100%;
}

.uvvfinder-home-zip-search label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.uvvfinder-home-zip-search input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	border: 1px solid #d6d6d6;
	border-radius: 4px;
	padding: 14px 16px;
	font: inherit;
}

.uvvfinder-home-zip-search button {
	flex: 0 0 auto;
	margin: 0;
	border: 0;
	border-radius: 20px;
	padding: 15px 20px;
	background: var(--e-global-color-accent);
	color: #fff;
	font-family: "Rubik", sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
}

.uvvfinder-home-zip-search button:hover,
.uvvfinder-home-zip-search button:focus {
	color: var(--e-global-color-text);
    background: var(--e-global-color-accent);
}

@media (max-width: 480px) {
	.uvvfinder-home-zip-search {
	align-items: stretch;
	flex-direction: column;
	}
}

/* Anbieter werden: highlight hovered and selected pricing plans. */
.wpbdp-plan-selection-list .wpbdp-plan {
    transition: background-color 160ms ease, box-shadow 160ms ease;
}

.wpbdp-plan-selection-list .wpbdp-plan:not(.wpbdp-plan-disabled):hover,
.wpbdp-plan-selection-list .wpbdp-plan:not(.wpbdp-plan-disabled):focus-within {
	box-shadow: 0 0 0 2px var(--e-global-color-accent);
}

.wpbdp-plan-selection-list .wpbdp-plan:has(input[name="listing_plan"]:checked) {
	background-color: #fff3e8;
	box-shadow: 0 0 0 2px var(--e-global-color-accent);
}

/* Anbieter werden: make the selected package visually explicit. */
.wpbdp-plan-action input[type="radio"] + label.wpbdp-button {
	border-color: var(--e-global-color-accent) !important;
	background-color: #fff !important;
	color: var(--e-global-color-accent) !important;
	cursor: pointer;
}

.wpbdp-plan-action input[type="radio"] + label.wpbdp-button:hover,
.wpbdp-plan-action input[type="radio"] + label.wpbdp-button:focus-visible {
	border-color: var(--e-global-color-accent) !important;
	background-color: #fff !important;
	color: var(--e-global-color-accent) !important;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--e-global-color-accent) 30%, transparent);
}

.wpbdp-plan-action input[type="radio"]:checked + label.wpbdp-button,
.wpbdp-plan-action input[type="radio"]:checked + label.wpbdp-button:hover,
.wpbdp-plan-action input[type="radio"]:checked + label.wpbdp-button:focus-visible {
	border-color: var(--e-global-color-accent) !important;
	background-color: var(--e-global-color-accent) !important;
	color: #fff !important;
}

/* Anbieter werden: emphasize form field labels without bolding options. */
#wpbdp-submit-listing .wpbdp-form-field > .wpbdp-form-field-label > label,
#wpbdp-submit-listing .wpbdp-form-field > label,
#wpbdp-submit-listing .wpbdp-url-field-col .sublabel {
	font-weight: 700 !important;
}

/* labels in popup form */
#wpbdp-search-form .wpbdp-search-field-label label {
    font-weight: 700;
}

/* Business Directory checkout spacing. */
body.wpbdp-view-checkout main#content .page-content h2:first-of-type {
	margin-top: 80px;
}

body.wpbdp-view-checkout #wpbdp-checkout-form .wpbdp-checkout-submit {
	margin-bottom: 100px;
}

/* Advanced-search popup: arrange related fields into predictable rows. */
@media (min-width: 701px) {
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-fields {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 24px;
	}

	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-1 { order: 10; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-16 { order: 20; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-18 { order: 30; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-19 { order: 40; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-20 { order: 50; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-4 { order: 60; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-5 { order: 70; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-6 { order: 80; }

	/* Straße occupies its own row. */
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-9 {
		grid-column: 1 / -1;
		order: 90;
	}

	/* PLZ and Stadt share a row. */
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-10 {
		grid-column: span 1;
		order: 100;
	}

	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-30 {
		grid-column: span 1;
		order: 110;
	}

	/* Bundesland and Land share the following row. */
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-31 {
		grid-column: span 1;
		order: 120;
	}

	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-13 {
		grid-column: span 1;
		order: 130;
	}

	/* Put Dienstleistungen before the other service-selection fields. */
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-29 {
		order: 140;
	}

	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-22 { order: 150; }
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-32 { order: 160; }

	/* Software and Sonstige Arbeitsmittel share the final row. */
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-33 {
		grid-column: span 1;
		order: 170;
	}

	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-field-id-24 {
		grid-column: span 1;
		order: 180;
	}
}

@media (max-width: 700px) {
	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-fields {
		grid-template-columns: 1fr;
	}

	.wpbdp-search-page.wpbdp-modal #wpbdp-search-form .wpbdp-form-fields > .wpbdp-form-field {
		grid-column: 1 / -1;
	}
}

/* Place the logo in the upper-right corner of the listing card. */
.elementor-element-1644837:has(.elementor-widget-businessDirectoryDetails) {
	position: relative;
	padding-right: 180px;
}

.elementor-element-1644837:has(.elementor-widget-businessDirectoryDetails) > .e-con-inner > .elementor-element-82a76b7,
.elementor-widget-businessDirectoryDetails {
	position: static;
}

.elementor-widget-businessDirectoryDetails .wpbdp-field-type-image {
	position: absolute !important;
	top: 10px;
	right: 10px;
	width: 150px;
	height: auto;
	margin: 0 !important;
	z-index: 2;
}

.elementor-widget-businessDirectoryDetails .wpbdp-field-type-image .listing-image {
	width: 150px !important;
	margin: 0;
}

.elementor-widget-businessDirectoryDetails .wpbdp-field-type-image .value > br {
	display: none;
}

.elementor-widget-businessDirectoryDetails .wpbdp-field-type-image img {
	display: block;
	width: 150px;
	height: auto;
}

@media (max-width: 700px) {
	.elementor-element-1644837:has(.elementor-widget-businessDirectoryDetails) {
		padding-top: 170px;
		padding-right: 0;
	}

	.elementor-widget-businessDirectoryDetails .wpbdp-field-type-image {
		position: absolute !important;
		top: 10px;
		left: 10px;
		right: auto;
		width: 150px;
		margin: 0 !important;
		transform: none;
	}

	.elementor-widget-businessDirectoryDetails .wpbdp-field-type-image .listing-image {
		width: 150px !important;
	}
}


/* Reduce the empty top row in the map click bubble while keeping Close visible. */
.wpbdp-google-map .gm-style-iw-chr {
	position: absolute !important;
	top: 0 !important;
	right: 0 !important;
	width: 48px !important;
	height: 48px !important;
	z-index: 2;
}

.wpbdp-google-map .gm-style-iw-ch {
	display: none !important;
}

.wpbdp-google-map .gm-style-iw-d {
	margin-top: 0 !important;
	padding: 0 40px 8px 0 !important;
}

/* Give the company name a little vertical breathing room beside the Close button. */
.wpbdp-google-map .gm-style-iw-d {
	padding-top: 10px !important;
}


/* Consistent Business Directory select fields across browsers. */
body.business-directory select:not([multiple]) {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	min-height: 48px;
	padding: 10px 42px 10px 14px;
	border: 1px solid rgba(63, 75, 91, 0.2);
	border-radius: 4px;
	background-color: #fff;
	background-image:
		linear-gradient(45deg, transparent 50%, #3f4b5b 50%),
		linear-gradient(135deg, #3f4b5b 50%, transparent 50%);
	background-repeat: no-repeat;
	background-position:
		calc(100% - 17px) calc(50% - 2px),
		calc(100% - 12px) calc(50% - 2px);
	background-size: 5px 5px, 5px 5px;
	color: inherit;
	transition: border-color 0.2s ease;
}

body.business-directory select:not([multiple]):focus {
	border-color: #000;
	outline: none;
	box-shadow: none;
}

.wpbdp-main-box#wpbdp-main-box .wpbdp-zipcodesearch-search-unit .distance-field-wrapper .unit-label {
	right: 32px;
}

/* Display the logged-out client Login menu item as a button. */
.menu-item-client-login,
.menu-item-manage-listings,
.menu-item-client-login > a,
.menu-item-manage-listings > a {
	flex: 0 0 auto;
	white-space: nowrap;
}

.menu-item-client-login > a {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 4px 0 0 10px !important;
	padding: 10px 20px !important;
	border: 1px solid var(--e-global-color-accent);
	border-radius: 20px;
	background-color: var(--e-global-color-accent);
	color: #fff !important;
	line-height: 1 !important;
}

.menu-item-client-login > a:hover,
.menu-item-client-login > a:focus-visible {
	background-color: #fff;
	color: var(--e-global-color-accent) !important;
	text-decoration: none !important;
}

.menu-item-client-login > a::before,
.menu-item-client-login > a::after {
	display: none !important;
	content: none !important;
}

/* Match the client login submit button to the site's orange buttons. */
.uvvfinder-client-login button[type="submit"] {
	padding: 12px 22px;
	border: 1px solid var(--e-global-color-accent);
	border-radius: 20px;
	background-color: var(--e-global-color-accent);
	color: #fff;
	font-family: "Rubik", sans-serif;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
}

.uvvfinder-client-login button[type="submit"]:hover,
.uvvfinder-client-login button[type="submit"]:focus-visible {
	border-color: var(--e-global-color-accent);
	background-color: #fff;
	color: var(--e-global-color-accent);
}

/* Keep the complete desktop header navigation on one row. */
@media (min-width: 1025px) {
	nav .elementor-nav-menu--main .elementor-nav-menu {
		flex-wrap: nowrap;
		justify-content: flex-end;
		width: 100%;
	}
	/*
	.elementor-nav-menu--main .elementor-item {
		padding-right: 10px;
		padding-left: 10px;
	}

	.elementor-nav-menu--main .menu-item-client-login > a {
		margin-left: 8px;
		padding-right: 10px !important;
		padding-left: 10px !important;
	}
	 */
}

/* Keep the theme's horizontal gutter and add vertical content spacing. */
main#content.site-main {
	padding-top: 30px !important;
	padding-bottom: 30px !important;
}

body.page-id-56 main#content.site-main {
	width: 100%;
	margin-right: auto;
	margin-left: auto;
}

@media (max-width: 575px) {
	body.page-id-56 main#content.site-main {
		padding-right: 10px !important;
		padding-left: 10px !important;
	}
}

@media (min-width: 576px) {
	body.page-id-56 main#content.site-main {
		max-width: 500px;
	}
}

@media (min-width: 768px) {
	body.page-id-56 main#content.site-main {
		max-width: 600px;
	}
}

@media (min-width: 992px) {
	body.page-id-56 main#content.site-main {
		max-width: 800px;
	}
}

@media (min-width: 1200px) {
	body.page-id-56 main#content.site-main {
		max-width: 1140px;
	}
}

/* Keep the footer at the bottom of the viewport on short pages. */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100svh;
}

body > main#content {
	flex: 1 0 auto;
	width: 100%;
}

body > header.elementor-location-header,
body > footer.elementor-location-footer,
body > header#site-header,
body > footer#site-footer {
	flex-shrink: 0;
}

body.admin-bar {
	min-height: calc(100vh - 32px);
	min-height: calc(100svh - 32px);
}

@media (max-width: 782px) {
	body.admin-bar {
		min-height: calc(100vh - 46px);
		min-height: calc(100svh - 46px);
	}
}

/* Required Dienstleistungen selector in the Für Suchende main search box. */
#wpbdp-main-box select.uvvfinder-service-search {
	width: 100%;
	height: 48px;
	min-width: 0;
	margin: 0;
	font-size: 17px;
	line-height: 1.2;
}

#wpbdp-main-box.uvvfinder-service-main-box .main-fields form {
	align-items: flex-end;
}

#wpbdp-main-box.uvvfinder-service-main-box .main-input,
#wpbdp-main-box.uvvfinder-service-main-box .zip-field,
#wpbdp-main-box.uvvfinder-service-main-box .distance-field-wrapper {
	display: flex !important;
	flex-direction: column;
}

#wpbdp-main-box.uvvfinder-service-main-box .main-input {
	flex: 2 1 0 !important;
}

#wpbdp-main-box.uvvfinder-service-main-box .wpbdp-zipcodesearch-search-unit {
	flex: 2 1 0 !important;
}

#wpbdp-main-box.uvvfinder-service-main-box .uvvfinder-search-label {
	display: block;
	min-height: 24px;
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 500;
	line-height: 1.4;
}

#wpbdp-main-box.uvvfinder-service-main-box .distance-field-wrapper > .box-row {
	position: relative;
	width: 100%;
}

#wpbdp-main-box.uvvfinder-service-main-box .distance-field {
	width: 100% !important;
}

#wpbdp-main-box.uvvfinder-service-main-box #uvvfinder-radius-search {
	padding-right: 72px;
}

#wpbdp-main-box.uvvfinder-service-main-box .uvvfinder-radius-unit {
	position: absolute;
	top: 50%;
	right: 38px;
	z-index: 1;
	width: auto !important;
	margin: 0;
	color: inherit;
	font-size: 17px;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

/* Text-only directory categories and subcategories. */
#wpbdp-categories {
	margin-top: 30px;
}

body.wpbdp-view-taxonomy .wpbdp-categories {
	margin-top: 30px !important;
}

#wpbdp-categories .cat-item,
#wpbdp-categories .category-label,
body.wpbdp-view-taxonomy .wpbdp-categories .cat-item,
body.wpbdp-view-taxonomy .wpbdp-categories .category-label {
	font-size: 18px;
}

#wpbdp-categories .cat-item,
body.wpbdp-view-taxonomy .wpbdp-categories .cat-item {
	text-align: left;
}
