/*
 * Whitelist-Formular im Frontend.
 *
 * Bewusst zurueckhaltend: Farben und Schrift kommen vom Theme, damit sich
 * das Formular in jede Website einfuegt statt sich davor zu stellen.
 */

.gpgsspro-wl {
	max-width: 520px;
	margin: 0 0 1.5em;
}

.gpgsspro-wl__notice {
	margin: 0 0 1em;
	padding: .85em 1em;
	border-radius: 8px;
	border-left: 4px solid;
	line-height: 1.45;
}

.gpgsspro-wl__notice--ok {
	border-left-color: #1a7f37;
	background: rgba(26, 127, 55, .08);
}

.gpgsspro-wl__notice--error {
	border-left-color: #d63638;
	background: rgba(214, 54, 56, .08);
}

.gpgsspro-wl__field {
	margin: 0 0 1em;
}

.gpgsspro-wl__field label {
	display: block;
	margin-bottom: .35em;
	font-weight: 600;
}

.gpgsspro-wl__field input[type="text"],
.gpgsspro-wl__field textarea {
	width: 100%;
	padding: .6em .75em;
	border: 1px solid rgba(127, 127, 127, .45);
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font: inherit;
	box-sizing: border-box;
}

.gpgsspro-wl__field input[type="text"]:focus,
.gpgsspro-wl__field textarea:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

/* Ungueltige Eingabe erst nach dem ersten Tippen faerben, nicht sofort. */
.gpgsspro-wl__field input:not(:placeholder-shown):invalid {
	border-color: #d63638;
}

/*
 * Der Knopf bekommt bewusst nur Form, keine Farbe: so erbt er das Aussehen
 * der Theme-Buttons und passt in helle wie dunkle Themes. Ein fest gesetzter
 * Hintergrund waere in der Haelfte aller Themes unlesbar.
 */
.gpgsspro-wl__submit button {
	padding: .7em 1.4em;
	border-radius: 6px;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

/* Der Honigtopf darf niemals sichtbar werden. */
.gpgsspro-wl__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
