/* MAD NICE Widerrufsbutton — Frontend */

.mnwb-wb-wrapper {
	display: inline-block;
}

.mnwb-wb-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #1d2327;
}

.mnwb-wb-modal[hidden] {
	display: none !important;
}

.mnwb-wb-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.mnwb-wb-modal__container {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
	width: min(520px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 24px;
	z-index: 1;
}

.mnwb-wb-modal__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}

.mnwb-wb-modal__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.3;
	color: #1d2327;
}

.mnwb-wb-modal__close {
	appearance: none;
	background: none;
	border: none;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
	margin: 0;
	min-height: 0;
	min-width: 0;
	height: auto;
	width: auto;
	color: #646970;
	box-shadow: none;
}

.mnwb-wb-modal__close:hover,
.mnwb-wb-modal__close:focus-visible {
	color: #1d2327;
	background: none;
	outline: 2px solid #1d2327;
	outline-offset: 2px;
}

.mnwb-wb-form__field {
	margin-bottom: 16px;
}

.mnwb-wb-form__field label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1d2327;
}

.mnwb-wb-required {
	color: #50575e;
}

.mnwb-wb-form__field input,
.mnwb-wb-form__field textarea {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
	background: #fff;
	color: #1d2327;
}

.mnwb-wb-form__field input:focus,
.mnwb-wb-form__field textarea:focus {
	border-color: #1d2327;
	box-shadow: 0 0 0 1px #1d2327;
	outline: none;
}

.mnwb-wb-field-hint {
	margin: 4px 0 0;
	font-size: 0.875rem;
	color: #646970;
}

.mnwb-wb-field-error {
	display: block;
	margin-top: 4px;
	font-size: 0.875rem;
	color: #50575e;
}

.mnwb-wb-form__field.is-invalid input,
.mnwb-wb-form__field.is-invalid textarea {
	border-color: #1d2327;
}

.mnwb-wb-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.mnwb-wb-submit {
	background: #1d2327;
	color: #fff;
	border: 2px solid #1d2327;
	border-radius: 4px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	min-height: 0;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.mnwb-wb-submit:hover,
.mnwb-wb-submit:focus-visible {
	background: #3c434a;
	border-color: #3c434a;
}

.mnwb-wb-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mnwb-wb-form__general-error {
	margin-top: 12px;
	color: #50575e;
	font-size: 0.875rem;
}

.mnwb-wb-success__title {
	margin: 0 0 12px;
	font-size: 1.125rem;
	color: #1d2327;
}

.mnwb-wb-success__message {
	margin: 0 0 12px;
	color: #1d2327;
}

.mnwb-wb-success__case {
	margin: 0 0 20px;
	color: #1d2327;
}

.mnwb-wb-success__close {
	background: #1d2327;
	color: #fff;
	border: 2px solid #1d2327;
	border-radius: 4px;
	padding: 10px 20px;
	cursor: pointer;
	font-size: 1rem;
	min-height: 0;
}

.mnwb-wb-success__close:hover,
.mnwb-wb-success__close:focus-visible {
	background: #3c434a;
	border-color: #3c434a;
}

body.mnwb-wb-modal-open {
	overflow: hidden;
}

.mnwb-wb-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.mnwb-wb-modal__intro {
	margin: 0 0 20px;
	color: #646970;
	font-size: 0.9375rem;
	line-height: 1.5;
}

.mnwb-wb-form__required-note {
	margin: 0 0 16px;
	font-size: 0.875rem;
	color: #646970;
}

.mnwb-wb-privacy-notice {
	margin: 10px 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: #646970;
	max-width: 42rem;
}

.mnwb-wb-privacy-notice--form {
	margin: 0 0 16px;
}

.mnwb-wb-privacy-notice a {
	color: #1d2327;
	text-decoration: underline;
}

.mnwb-wb-privacy-notice a:hover,
.mnwb-wb-privacy-notice a:focus-visible {
	color: #3c434a;
}

@media (max-width: 480px) {
	.mnwb-wb-modal {
		align-items: center;
		padding: 20px 12px;
		padding-top: max(20px, env(safe-area-inset-top, 0px));
		padding-bottom: max(20px, env(safe-area-inset-bottom, 0px));
		box-sizing: border-box;
		overflow-y: auto;
	}

	.mnwb-wb-modal__container {
		width: 100%;
		max-height: calc(100vh - 40px);
		max-height: calc(100dvh - 40px);
		min-height: 0;
		border-radius: 8px;
	}
}
