.wpbf-customize-control-color {
	.wpbf-control-form {
		position: relative;
		box-sizing: border-box;
	}

	.wpbf-control-form * {
		box-sizing: border-box;
	}

	.wpbf-control-cols {
		display: flex;
		align-items: flex-start;
	}

	.wpbf-control-left-col {
		padding-right: 30px;
		width: 90%;
		width: calc(100% - 35px);
	}

	.wpbf-control-right-col {
		display: flex;
		justify-content: flex-end;
		width: 35px;
	}

	.use-hue-mode {
		.react-colorful {
			height: auto;
		}

		.react-colorful__saturation {
			display: none;
		}

		.react-colorful__last-control {
			border-radius: 4px;
		}

		input.wpbf-color-input {
			padding-left: 8px;
		}
	}

	.wpbf-trigger-circle-wrapper {
		position: relative;
		top: -3px;
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 3px;
		width: 33px;
		height: 33px;
		border-radius: 50%;
		border: 1px solid #ccc;
	}

	.wpbf-trigger-circle {
		position: relative;
		padding: 0;
		display: block;
		width: 25px;
		height: 25px;
		background-size: 10px;
		border: none;
		border-radius: 50%;
		cursor: pointer;

		.wpbf-color-preview {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}
	}

	.colorPickerContainer {
		position: absolute;
		top: 35px;
		right: 0;
		margin-top: 5px;
		width: 100%;
		padding: 15px;
		background-color: #fff;
		border-radius: 6px;
		box-shadow: rgba(0, 0, 0, 0.09) 0 12px 15px 0;
		z-index: 9999;

		opacity: 0;
		visibility: hidden;
		transition: all 0.2s;
		transition-property: opacity, visibility; // Yes, only opacity and visibility please.

		&.is-open {
			opacity: 1;
			visibility: visible;
			transition: all 0.2s ease 10ms; // When we open the picker popup, the top offset is changed, so we need to wait a bit.
			transition-property: opacity, visibility; // Yes, only opacity and visibility please.
		}
	}

	.react-colorful {
		width: 100%;
		border-radius: 4px;
	}

	.react-colorful__saturation {
		border-radius: 4px 4px 0 0;
	}

	.react-colorful__last-control {
		border-radius: 0 0 4px 4px;
	}

	.react-colorful__pointer {
		width: 20px;
		height: 20px;
	}

	.wpbf-color-input-wrapper {
		margin-top: 15px;
	}

	.wpbf-color-input-control {
		position: relative;
		display: flex;
		align-items: center;
		width: 100%;
	}

	input.wpbf-color-input {
		display: block;
		position: relative;
		padding-left: 32px;
		padding-right: 8px;
		width: 100%;
		height: 30px;
		line-height: 30px;
		color: #333;
		border: 1px solid #ccc;
		border-radius: 4px;
		z-index: 1;
	}

	.wpbf-color-input:focus,
	.wpbf-color-input:active {
		box-shadow: 0 0 0 1px #2271b1;
		outline: none;
		border-color: #2271b1;
	}

	.wpbf-color-preview-wrapper {
		position: absolute;
		left: 6px;
		width: 22px;
		height: 22px;
		background-repeat: repeat;
		background-size: 8px;
		border-radius: 50%;
		border: 2px solid #fff;
		-webkit-box-shadow: 0 0 0 1px #ddd;
		box-shadow: 0 0 0 1px #ddd;
		z-index: 2;
	}

	.wpbf-color-preview,
	.wpbf-control-reset {
		position: absolute;
		padding: 0;
		background-color: transparent;
		cursor: pointer;
	}

	.wpbf-color-preview {
		display: block;
		width: 100%;
		height: 100%;
		border-radius: 50%;
		border-width: 0;
	}

	.wpbf-control-reset {
		display: flex;
		align-items: center;
		justify-content: center;
		top: 4px;
		right: 35px;
		width: 17px;
		height: 17px;
		border-radius: 50%;
		border-width: 0;
		z-index: 3;
	}

	.wpbf-control-reset:hover i {
		color: #f00;
		transform: rotate(-45deg);
	}

	.wpbf-control-reset i {
		font-size: 12px;
		width: auto;
		height: auto;
		transform: rotate(45deg);
		transition: transform 0.2s;
	}

	.wpbf-color-swatches {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
		align-items: center;
		margin-bottom: 12px;
	}

	.wpbf-color-swatch {
		position: relative;
		display: block;
		padding: 0;
		width: 25px;
		height: 25px;
		border-radius: 50%;
		border: 2px solid #fff;
		cursor: pointer;
		transform: scale(1, 1);
		transition: transform 0.2s;
		-webkit-box-shadow: 0 0 0 1px #ddd;
		box-shadow: 0 0 0 1px #ddd;
	}

	.wpbf-color-swatch:active,
	.wpbf-color-swatch:focus {
		outline: none;
	}

	.wpbf-color-swatch:hover,
	.wpbf-color-swatch:focus {
		transform: scale(1.1, 1.1);
	}

	.wpbf-label-tooltip {
		position: absolute;
		bottom: 45px;
		left: -8px;
		padding: 7px 10px 3px; // The 4px of bottom side is handled by label / description's margin-bottom.
		width: auto; // just for fallback for max-content.
		width: max-content;
		max-width: 100px;
		color: #fff;
		background-color: rgba(0, 0, 0, 0.7);
		border-radius: 4px;
		opacity: 0;
		visibility: hidden;
		transition: all 0.2s;

		&::before {
			content: "";
			position: absolute;
			bottom: -8px;
			left: 19px;
			border-width: 8px 7px 0 7px;
			border-style: solid;
			border-color: rgba(0, 0, 0, 0.7) transparent transparent transparent;
		}

		.customize-control-title {
			line-height: 1.2;
		}
	}

	.wpbf-trigger-circle-wrapper {
		&:hover ~ .wpbf-label-tooltip {
			opacity: 1;
			visibility: visible;
		}
	}

	&[data-wpbf-parent-control-type="wpbf-multicolor"] {
		margin-right: 8px;
		margin-bottom: 20px;
		padding-right: 0;
		width: 35px;

		.wpbf-control-reset {
			top: -19px;
			right: 8px;
		}
	}

	&[data-wpbf-parent-control-type="wpbf-typography"] {
		.colorPickerContainer {
			top: 55px;
		}

		.wpbf-control-reset {
			top: 30px;
			right: auto;
			left: 35px;
		}
	}
}
