/**
 * Currency Input Styles
 *
 * Styles for .ambh-currency-wrap, injected by currency-input.js around
 * every .ambh-currency-input element.
 *
 * @package AmbassadorHub
 */

/* ── Wrapper ──────────────────────────────────────────────── */
.ambh-currency-wrap {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
	box-sizing: border-box;
	/* Let width be determined by the context / input width */
	width: auto;
}

.ambh-currency-wrap:focus-within {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: none;
}

/* ── Symbol prefix ────────────────────────────────────────── */
.ambh-currency-symbol {
	display: flex;
	align-items: center;
	padding: 0 8px;
	background: #f6f7f7;
	border-right: 1px solid #8c8f94;
	color: #50575e;
	font-size: 13px;
	line-height: 1;
	white-space: nowrap;
	user-select: none;
	flex-shrink: 0;
}

/* ── The input itself ─────────────────────────────────────── */
.ambh-currency-wrap .ambh-currency-input {
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	background: transparent;
	padding: 5px 8px;
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	line-height: 1.5;
	/* width comes from context; the flex layout handles sizing */
	width: auto !important;
}

/* ── Admin: regular-text width applies to the wrapper ────── */
.form-table td .ambh-currency-wrap {
	min-width: 10em;
}

/* ── Frontend donation form ───────────────────────────────── */
.donation-form .ambh-currency-wrap,
.ambh-cff-field .ambh-currency-wrap {
	width: 100%;
}

/* ── Meta-box inputs (full-width context) ─────────────────── */
.ambh-attr-editor .ambh-currency-wrap,
.postbox .ambh-currency-wrap {
	width: 100%;
}
