/*
 * layout:combobox - Tom Select on top of the native select. The base styles
 * are the library's own tom-select.css (assets/vendor); this file only ties
 * them to the theme's font and to the custom properties of estimate.css.
 */

/* stylelint-disable selector-class-pattern -- .ts-* are Tom Select's class names. */

/* The wrapper inherits the select's classes, the dropdown sits inside the wrapper. */
.gravitec-orders-field.ts-wrapper {
	font: inherit;
}

.gravitec-orders-field .ts-control,
.gravitec-orders-field .ts-dropdown {
	font: inherit;
	color: inherit;
	background: var(--gravitec-orders-surface, #fff);
	border: 1px solid var(--gravitec-orders-border, currentcolor);
	border-radius: var(--gravitec-orders-radius, 4px);
}

.gravitec-orders-field.focus .ts-control {
	outline: 2px solid var(--gravitec-orders-accent, #0b57d0);
	outline-offset: 2px;
	box-shadow: none;
}

.gravitec-orders-field .ts-dropdown .active {
	color: inherit;
	background: color-mix(in srgb, var(--gravitec-orders-accent, #0b57d0) 15%, transparent);
}

/* stylelint-enable selector-class-pattern */
