/* Preisangebot anfordern: Button + Modal */

.schuering-offer-button {
	cursor: pointer;
}

/*
 * Button steht "über" dem Warenkorb-Button (woocommerce_before_add_to_cart_button
 * bzw. bei variablen Produkten vor woocommerce_single_variation_add_to_cart_button,
 * siehe offer-request.php) -- volle Breite passend zum darunterliegenden
 * Kaufen-Button.
 */
.schuering-offer-button-wrapper {
	margin-bottom: 0.75em;
	width: 100%;
}

.schuering-offer-button-wrapper .schuering-offer-button {
	width: 100%;
}

.schuering-offer-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.schuering-offer-modal[hidden] {
	display: none;
}

.schuering-offer-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.schuering-offer-modal__dialog {
	position: relative;
	background: #fff;
	max-width: 480px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	padding: 2em;
	border-radius: 4px;
}

.schuering-offer-modal__close {
	position: absolute;
	top: 0.5em;
	right: 0.75em;
	background: none;
	border: none;
	font-size: 1.75em;
	line-height: 1;
	cursor: pointer;
}

.schuering-offer-modal__product-name {
	font-weight: 600;
	margin-top: -0.5em;
}

#schuering-offer-form p {
	margin-bottom: 1em;
}

#schuering-offer-form label {
	display: block;
	margin-bottom: 0.35em;
	font-weight: 600;
}

#schuering-offer-form input,
#schuering-offer-form textarea {
	width: 100%;
	box-sizing: border-box;
}

.schuering-offer-form__feedback {
	min-height: 1.5em;
}

.schuering-offer-form__feedback--success {
	color: #2e7d32;
}

.schuering-offer-form__feedback--error {
	color: #c62828;
}

body.schuering-offer-modal-open {
	overflow: hidden;
}

#schuering-offer-form .schuering-offer-form__privacy label {
	display: flex;
	align-items: flex-start;
	gap: 0.5em;
	font-weight: 400;
	font-size: 0.85em;
	line-height: 1.5;
	color: #666;
}

#schuering-offer-form .schuering-offer-form__privacy input[type="checkbox"] {
	width: auto;
	flex: 0 0 auto;
	margin: 0.2em 0 0;
}
