/*
 * Spare Price Lookup – styles matched to humus.ee (Avada theme).
 *
 * Colours and fonts come from the theme's own CSS variables, so the form
 * follows the site if the theme colours change. The values after each
 * comma are fallbacks taken from humus.ee in November 2026.
 *   --awb-color4  #ffb600  Humus yellow (buttons, accents)
 *   --awb-color7  #212934  dark text
 *   --awb-color8  #000000  black (button text, hover background)
 *   --awb-color3  #e2e2e2  light grey (borders)
 *   --awb-color2  #f9f9f9  off-white (result background)
 */

.spl-box {
	max-width: 520px;
	margin: 40px auto;
	font-family: var(--body_typography-font-family, "Public Sans", Arial, Helvetica, sans-serif);
	color: var(--awb-color7, #212934);
}

/* Field label, same weight as the theme's headings. */
.spl-box label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	font-size: 16px;
	color: var(--awb-color8, #000);
}

/* Code row: input and button side by side, stacked on narrow phones. */
.spl-row {
	display: flex;
	gap: 10px;
}
.spl-row input {
	flex: 1;
	min-width: 0;
}
@media (max-width: 420px) {
	.spl-row {
		flex-direction: column;
	}
	/* Stacked: the field keeps its full height instead of shrinking. */
	.spl-row input {
		flex: none;
	}
}

/*
 * Text inputs. The theme sets all form text to light grey (#e2e2e2), which
 * made typed codes hard to read, so the text colour is forced to dark here.
 * Shape (50 px tall, 25 px rounded corners) matches the theme's inputs.
 */
.spl-box input[type="text"],
.spl-box input[type="password"] {
	box-sizing: border-box;
	width: 100%;
	height: var(--form_input_height, 50px);
	padding: 0 20px;
	font-family: inherit;
	font-size: 16px;
	color: var(--awb-color7, #212934) !important;
	background: var(--awb-color1, #fff);
	border: 1px solid #c8c8c8;
	border-radius: var(--form_border_radius, 25px);
	outline: none;
	transition: border-color .2s, box-shadow .2s;
}
.spl-box input[type="text"]::placeholder,
.spl-box input[type="password"]::placeholder {
	color: #8a8f98;
}
/* Yellow ring when the field is active, so it is clear where you type. */
.spl-box input[type="text"]:focus,
.spl-box input[type="password"]:focus {
	border-color: var(--awb-color4, #ffb600);
	box-shadow: 0 0 0 3px rgba(255, 182, 0, .25);
}

/*
 * Buttons: "Get price" and the login button. Same as the site's buttons:
 * yellow with black text, black with white text on hover, 7 px corners.
 */
.spl-box button,
.spl-box input[type="submit"] {
	height: var(--form_input_height, 50px);
	padding: 0 29px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: uppercase;
	white-space: nowrap;
	color: var(--awb-color8, #000);
	background: var(--awb-color4, #ffb600);
	border: 0;
	border-radius: 7px;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.spl-box button:hover,
.spl-box button:focus-visible,
.spl-box input[type="submit"]:hover,
.spl-box input[type="submit"]:focus-visible {
	color: var(--awb-color1, #fff);
	background: var(--awb-color8, #000);
}
.spl-box button:disabled {
	opacity: .6;
	cursor: wait;
}

/* Login form from WordPress: spacing between username, password and button. */
.spl-box #loginform p {
	margin: 0 0 16px;
}
.spl-box #loginform .login-submit {
	margin-top: 24px;
}

/* Result box: light background with a yellow edge, like the site's accents. */
.spl-msg {
	margin-top: 20px;
	padding: 18px 22px;
	background: var(--awb-color2, #f9f9f9);
	border-left: 5px solid var(--awb-color4, #ffb600);
	border-radius: 0 7px 7px 0;
}
/* Errors and "not found" keep a red edge so they stand out. */
.spl-msg.spl-bad {
	border-left-color: #c62828;
	background: #fdf3f3;
}
.spl-msg p {
	margin: 0;
	line-height: 1.5;
}

/* Part code, description, price, delivery note – top to bottom. */
.spl-code {
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--awb-color6, rgba(74, 78, 87, .82));
}
.spl-desc {
	margin-top: 2px !important;
	font-size: 16px;
	color: var(--awb-color7, #212934);
}
.spl-price {
	margin: 8px 0 4px !important;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.2 !important;
	letter-spacing: -.015em;
	color: var(--awb-color8, #000);
}
.spl-note {
	font-size: 14px;
	color: var(--awb-color6, rgba(74, 78, 87, .82));
}

/* Log out and "Forgot your password?" links: black, yellow on hover. */
.spl-box a {
	color: var(--awb-color8, #000);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.spl-box a:hover {
	color: var(--awb-color4, #ffb600);
}
/* "Forgot your password?" under the login button, small like "Log out". */
.spl-forgot,
.spl-logout {
	margin-top: 28px;
	font-size: 14px;
}
