/**
 * Deliberately quiet. This field sits inside somebody else's theme, so it
 * borrows the theme's font and colour and only takes charge of layout,
 * spacing and focus states.
 */

.pwyw-field {
	margin: 0 0 1.25em;
	max-width: 22em;
}

.pwyw-field__label {
	display: block;
	margin-bottom: 0.4em;
	font-weight: 600;
	line-height: 1.3;
}

.pwyw-field__input-wrap {
	position: relative;
	display: flex;
	align-items: stretch;
}

.pwyw-field__currency {
	display: flex;
	align-items: center;
	padding: 0 0.75em;
	border: 1px solid currentColor;
	border-right: 0;
	border-radius: 4px 0 0 4px;
	opacity: 0.55;
	font-variant-numeric: tabular-nums;
}

.pwyw-field__input.pwyw-field__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0.7em 0.8em;
	border: 1px solid currentColor;
	border-radius: 0 4px 4px 0;
	font: inherit;
	font-variant-numeric: tabular-nums;
	background: transparent;
	color: inherit;
}

.pwyw-field__input:focus {
	outline: 2px solid currentColor;
	outline-offset: 1px;
}

.pwyw-field__quick {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em;
	margin-top: 0.6em;
}

.pwyw-field__quick-btn.pwyw-field__quick-btn {
	padding: 0.35em 0.8em;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 0.9em;
	line-height: 1.4;
	cursor: pointer;
	opacity: 0.75;
}

.pwyw-field__quick-btn:hover,
.pwyw-field__quick-btn:focus-visible {
	opacity: 1;
}

.pwyw-field__quick-btn[aria-pressed="true"] {
	opacity: 1;
	box-shadow: inset 0 0 0 1px currentColor;
}

.pwyw-field__hint {
	margin: 0.5em 0 0;
	font-size: 0.875em;
	opacity: 0.7;
}

.pwyw-field__error {
	margin: 0.4em 0 0;
	font-size: 0.875em;
	font-weight: 600;
	color: #b32d2e;
}

.pwyw-field__error[hidden] {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.pwyw-field * {
		transition: none !important;
	}
}
