.sp-smart-team-background {
	.components-circular-option-picker {

		// position: absolute;
		// left: -11px;
		// display: none;
		button {
			padding: 0;
			height: 14px;
			margin-right: 16px;

			&:focus:not(:disabled) {
				outline: none;
				box-shadow: none;
			}

			svg {
				fill: #000;
			}

			&:hover svg {
				fill: #008db4;
			}
		}

		.components-circular-option-picker__option-group {
			gap: 8px;
		}

		.components-circular-option-picker__custom-clear-wrapper {
			button {
				display: none;
			}
		}
	}

	legend {
		display: none;
	}

	.sp-smart-team-component-title {
		margin-bottom: 0px;
	}

	&-control {
		justify-content: space-between;
		align-items: center;
	}

	&-left {
		display: flex;

		button {
			padding: 0;
			border-radius: 2px !important;
			border: none;
			box-shadow: none !important;
			height: auto;
			border: 1px solid transparent;
			margin-left: 2px !important;
			width: 26px;
			height: 25px;
			justify-content: center;
			position: relative;

			span {
				display: inline-flex;
				align-items: center;
				justify-content: center;

				svg {
					width: 16px;
					height: 16px;
					display: block;
				}
			}

			p {
				opacity: 0;
				visibility: hidden;
				position: absolute;
				top: -40px;
				// Anchor to the button's right edge so the nowrap label grows
				// leftward — unanchored it pokes past the sidebar's right edge
				// and (visibility: hidden still occupies layout) permanently
				// shows a horizontal scrollbar on the inspector.
				right: 0;
				background-color: #757575;
				color: #fff;
				padding: 8px 10px;
				white-space: nowrap;
				font-size: 11px;
				border-radius: 4px;
				transition: 0.3s;
				pointer-events: none;
			}

			&::after {
				position: absolute;
				content: "";
				top: -10px;
				left: 2px;
				border-width: 10px;
				border-color: #757575 transparent transparent transparent;
				border-style: solid;
				opacity: 0;
				visibility: hidden;
				transition: 0.3s;
			}

			&:focus:not(:disabled) {
				outline: none;
				box-shadow: none;
			}

			&.active {
				border: 1px solid var(--sp-smart-team-primary-2-600);
			}
		}

		button:hover p {
			opacity: 1;
			visibility: visible;
		}

		button:hover::after {
			opacity: 1;
			visibility: visible;
		}
	}
}

.sp-smart-team-tab-panel {
	.sp-smart-team-background-control {
		.sp-smart-team-background-left {
			.components-button:focus:not(:disabled) {
				border: 1px solid var(--sp-smart-team-primary-2-600) !important;
			}
		}
	}
}

.sp-smart-team-tab-panel {
	.sp-smart-team-background {
		.components-custom-gradient-picker__gradient-bar.has-gradient {
			background: #fff;
			height: 32px;

			.components-custom-gradient-picker__gradient-bar-background {
				border-radius: 2px;
				background: linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0.09%, rgba(0, 0, 0, 0.07) 99.95%);
			}

			.components-custom-gradient-picker__markers-container {
				.components-custom-gradient-picker__control-point-dropdown {
					height: 11px;
					width: 11px;
					top: 11px;

					.components-custom-gradient-picker__control-point-button {
						box-shadow: inset 0 0 0 1px #FFF;

						&:focus {
							box-shadow: inset 0 0 0 1px #FFF;
						}
					}
				}
			}
		}

		.components-custom-gradient-picker__ui-line {
			.components-select-control.components-custom-gradient-picker__type-picker {
				.components-text.components-input-control__label {
					display: none;
				}

				.components-input-control__container select.components-select-control__input {
					height: 28px;
					min-height: 28px;
				}
			}

			.components-number-control.components-angle-picker-control__input-field {
				.components-text.components-input-control__label {
					display: none;
				}

				.components-input-control__container input.components-input-control__input {
					height: 28px;
					min-height: 28px;
				}
			}

			.components-spacer {
				margin-bottom: 0;

				.components-angle-picker-control__angle-circle {
					width: 28px;
					height: 28px;
				}
			}
		}
	}
}

.sp-smart-team-d-flex {
	display: flex;
}