/*
 * Form furniture shared by every form in the theme that is not WooCommerce's:
 * the cart's gift-card and discount panels and estimator, and the trade,
 * gift-card, contact and order-tracking pages.
 *
 * Measured off the reference: 45px fields, a 1px #878787 border, no radius.
 */

.field-input {
	display: block;
	width: 100%;
	height: 45px;
	padding: 0 15px;
	border: 1px solid var(--account-field-border);
	border-radius: 0;
	background: var(--color-white);
	color: var(--color-ink);
	font-family: var(--font-body);
	font-size: 15px;
	line-height: 1.4;
}

.field-input::placeholder {
	color: var(--color-text-muted);
	opacity: 1;
}

.field-input:focus {
	border-color: var(--color-ink);
	outline: 2px solid var(--focus-ring);
	outline-offset: 1px;
}

.field-input--select {
	padding-inline-end: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231f20' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9.5 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 14px center;
	background-repeat: no-repeat;
	background-size: 16px;
	appearance: none;
}

textarea.field-input {
	height: auto;
	min-height: 130px;
	padding-block: 12px;
	resize: vertical;
}

/* The confirmation a form shows once it has "sent". */
.form-message {
	margin: 14px 0 0;
	padding: 14px 16px;
	border-inline-start: 3px solid #5d7a3a;
	background: var(--color-surface);
	color: var(--color-ink);
	font-size: 15px;
	line-height: 1.5;
	text-align: start;
}

.form-message:focus {
	outline: none;
}

[aria-busy="true"] {
	cursor: progress;
	opacity: 0.75;
}
