@use '../brand-tokens' as *;

// select field modified css
.sp-smart-team-pro-tab-panel {
	.sp-smart-team-select-field {
		&.sp-smart-team-d-flex {
			display: flex;
			justify-content: space-between;
			align-items: center;
		}

		.sp-smart-team-header {
			display: flex;
			align-items: center;

			.sp-smart-team-select-component-title {
				margin-right: 8px;
				font-size: 13px;
				font-weight: 400;
				line-height: 20px;
				text-align: left;
			}
		}
		.sp-smart-team-component-title{
			margin-bottom: 8px;
		}
	}

	.components-input-control__backdrop {
		border-color: #d7dade !important;
	}
}

.sp-smart-team-select-field {
	// Brand any remaining core accent instead of WP blue.
	@include brand-tokens;

	// Gap between the stacked label and the select input.
	> .sp-smart-team-header > .sp-smart-team-component-title {
		display: block;
		margin-bottom: 8px;
	}

	// Match the light border used by the toggle group control.
	.components-input-control__backdrop {
		border-color: #d7dade !important;
	}

	// No focus ring after picking a value (design call). !important: WP 7.2's
	// `:focus-within:not(:has(…))` ring selector outranks a plain override.
	.components-select-control__input:focus,
	.components-select-control__input:focus-visible,
	.components-input-control__container:focus-within .components-input-control__backdrop {
		outline: none !important;
		box-shadow: none !important;
	}

	select.components-select-control__input {
		max-height: 40px !important;
		min-height: 40px !important;
		line-height: 1;
		border-radius: 4px;
	}

	// .components-select-control__input {
	//   text-transform: capitalize;
	// }
}