/*
 * PGP Key Generator — inherits the theme's fonts and colors.
 * Override the custom properties below in your theme to restyle it.
 */
.pgpkg {
	--pgpkg-border: color-mix(in srgb, currentColor 25%, transparent);
	--pgpkg-accent: #1e5bb8;
	--pgpkg-error: #b3261e;
	--pgpkg-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
	margin: 1.5em 0;
}

.pgpkg-notice {
	font-size: 0.9em;
	opacity: 0.85;
}

.pgpkg-section {
	border: 1px solid var(--pgpkg-border);
	border-radius: 4px;
	margin: 0 0 1em;
	padding: 0 1.25em;
}

.pgpkg-section > summary {
	cursor: pointer;
	font-weight: 600;
	padding: 1em 0;
}

.pgpkg-section[open] > summary {
	border-bottom: 1px solid var(--pgpkg-border);
	margin-bottom: 1em;
}

.pgpkg-form p {
	margin: 0 0 1em;
}

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

.pgpkg-form input,
.pgpkg-form select,
.pgpkg-form textarea {
	box-sizing: border-box;
	width: 100%;
	max-width: 40em;
	font: inherit;
	padding: 0.5em 0.6em;
}

.pgpkg-form textarea {
	font-family: var(--pgpkg-mono);
	font-size: 0.85em;
	max-width: none;
}

.pgpkg-form small {
	display: block;
	margin-top: 0.3em;
	opacity: 0.85;
}

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

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

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

.pgpkg-output {
	margin: 0 0 1.25em;
}

.pgpkg-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-top: 0.5em;
}

/* Secondary buttons: readable even when the theme leaves <button> unstyled */
.pgpkg-actions button {
	font: inherit;
	font-size: 0.9em;
	padding: 0.4em 0.9em;
	border: 1px solid var(--pgpkg-border);
	border-radius: 3px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.pgpkg-actions button:hover:not(:disabled) {
	border-color: currentColor;
}

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

.pgpkg-actions button:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
