/*
 * wp2pgpmail — inherits the theme's fonts and colors.
 * Override the custom properties below in your theme to restyle it.
 */
.wp2pgpmail {
	--wp2pgpmail-border: color-mix(in srgb, currentColor 25%, transparent);
	--wp2pgpmail-error: #b3261e;
	max-width: 40em;
	margin: 1.5em 0;
}

.wp2pgpmail p {
	margin: 0 0 1em;
}

.wp2pgpmail label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}

.wp2pgpmail-optional {
	font-weight: normal;
	opacity: 0.75;
}

.wp2pgpmail input,
.wp2pgpmail textarea {
	box-sizing: border-box;
	width: 100%;
	font: inherit;
	padding: 0.5em 0.6em;
}

.wp2pgpmail textarea {
	resize: vertical;
}

/* Spam trap: invisible to people, still filled in by bots */
.wp2pgpmail .wp2pgpmail-trap {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wp2pgpmail-note {
	font-size: 0.9em;
	opacity: 0.85;
}

.wp2pgpmail button[aria-busy="true"] {
	cursor: progress;
}

/* Fallback when the theme defines no button style */
.wp2pgpmail button[type="submit"]:not([class*="wp-element-button"]) {
	font: inherit;
	padding: 0.6em 1.4em;
}

.wp2pgpmail-status:empty {
	display: none;
}

.wp2pgpmail-status.wp2pgpmail-error {
	color: var(--wp2pgpmail-error);
	font-weight: 600;
}
