/*
 * Neutrales, eigenständiges Aussehen für den Auslöser-Button, unabhängig
 * vom Theme (WordPress' eigene .button-Klasse ist nur im Admin gestylt,
 * im Frontend bleibt sie sonst wirkungslos). Wer den Button optisch dem
 * eigenen Theme/Page-Builder (z. B. GreenShift) angleichen möchte, kann
 * stattdessen einen beliebigen eigenen Button mit dem Link "#tnpsr-upload"
 * versehen (siehe Einstellungen: "Globaler Trigger-Link") und diesen
 * Standard-Button ignorieren bzw. per CSS ausblenden.
 */
.tnpsr-open-button {
	cursor: pointer;
	display: inline-block;
	background-color: #1d5c4f;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 12px 24px;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.tnpsr-open-button:hover,
.tnpsr-open-button:focus {
	background-color: #164a40;
	color: #fff;
}

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

.tnpsr-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.tnpsr-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba( 0, 0, 0, 0.55 );
}

.tnpsr-modal-dialog {
	position: relative;
	background: #fff;
	color: #1d2327;
	max-width: 560px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
	border-radius: 6px;
	padding: 28px 24px 20px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.3 );
}

.tnpsr-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: transparent;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	color: inherit;
}

.tnpsr-modal-dialog h2 {
	margin: 0 0 16px;
	font-size: 1.25rem;
}

.tnpsr-field {
	margin: 0 0 14px;
	display: block;
}

.tnpsr-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.tnpsr-field input[type="text"],
.tnpsr-field input[type="tel"],
.tnpsr-field input[type="email"],
.tnpsr-field select,
.tnpsr-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #949494;
	border-radius: 4px;
	font-size: 0.95rem;
}

.tnpsr-field .description {
	display: block;
	font-size: 0.75rem;
	opacity: 0.75;
	margin-top: 4px;
	font-weight: normal;
}

.tnpsr-consent label {
	font-weight: normal;
	font-size: 0.8rem;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.tnpsr-consent input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

.tnpsr-form-status {
	min-height: 1.2em;
	font-size: 0.85rem;
	margin: 4px 0 12px;
}

.tnpsr-form-status.is-error {
	color: #b32d2e;
}

.tnpsr-form-status.is-success {
	color: #1d5c4f;
}

.tnpsr-submit-row {
	margin-top: 4px;
}

body.tnpsr-modal-open {
	overflow: hidden;
}

@media ( min-width: 480px ) {
	.tnpsr-field-half {
		display: inline-block;
		width: calc( 50% - 6px );
	}

	.tnpsr-field-half:nth-of-type(odd) {
		margin-right: 12px;
	}
}
