/* Theme / Default tabs for shared color pickers */
.bm-theme-color-palette .components-tab-panel__tabs {
	display: flex;
	gap: 0;
	margin: 0 0 0.65rem;
	border-bottom: 1px solid
		color-mix(in srgb, var(--bm-f-outline, var(--bm-color-outline, #c3c4c7)) 55%, transparent);
}

.bm-theme-color-palette .components-tab-panel__tabs-item {
	flex: 1;
	justify-content: center;
	min-height: 2rem;
	padding: 0.35rem 0.5rem;
	border: 0;
	border-radius: 0;
	box-shadow: none !important;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--bm-f-on-surface-variant, var(--bm-color-on-surface-variant, #464555));
	background: transparent;
}

.bm-theme-color-palette .components-tab-panel__tabs-item.is-active {
	color: var(--bm-f-primary, var(--bm-color-primary, #3525cd));
	box-shadow: inset 0 -2px 0 0
		var(--bm-f-primary, var(--bm-color-primary, #3525cd)) !important;
}

.bm-theme-color-palette__empty {
	margin: 0.35rem 0 0.5rem;
	font-size: 12px;
	line-height: 1.4;
	color: var(--bm-f-on-surface-variant, var(--bm-color-on-surface-variant, #464555));
}

.bm-theme-color-palette__tab .components-circular-option-picker {
	width: 100%;
}

.bm-theme-color-palette__opacity {
	margin: 0.75rem 0 0.35rem;
	padding: 8px 10px;
	border-radius: 8px;
	background: transparent;
	box-shadow: none;
	transition:
		background 0.2s ease,
		box-shadow 0.2s ease;
}

.bm-theme-color-palette__opacity.is-highlighted {
	animation: bm-opacity-notice 1.6s ease;
}

@keyframes bm-opacity-notice {
	0%,
	100% {
		background: transparent;
		box-shadow: none;
	}
	12%,
	55% {
		background: #fff3a0;
		box-shadow:
			0 0 0 2px #f0c800,
			0 4px 14px rgba(240, 200, 0, 0.35);
	}
}

.bm-theme-color-palette__opacity .components-base-control__label,
.bm-theme-color-palette__opacity .components-range-control__label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.bm-theme-color-palette__clear {
	display: flex;
	justify-content: flex-start;
	margin-top: 0.25rem;
}

.bm-theme-color-palette__clear .components-button {
	padding-left: 0;
}

/*
 * Align color swatch fill with the checkerboard ::before.
 * App button resets + Button __next40pxDefaultSize otherwise leave the
 * option smaller/offset inside the 28px wrapper.
 */
.joc-blockora-morph-app .components-circular-option-picker__option-wrapper,
.components-popover .components-circular-option-picker__option-wrapper,
.bm-color-dropdown__content .components-circular-option-picker__option-wrapper,
.bm-theme-color-palette .components-circular-option-picker__option-wrapper,
.bm-fill-color-palette .components-circular-option-picker__option-wrapper {
	position: relative !important;
	display: inline-block !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	vertical-align: top;
}

.joc-blockora-morph-app .components-circular-option-picker__option-wrapper::before,
.components-popover .components-circular-option-picker__option-wrapper::before,
.bm-color-dropdown__content .components-circular-option-picker__option-wrapper::before,
.bm-theme-color-palette .components-circular-option-picker__option-wrapper::before,
.bm-fill-color-palette .components-circular-option-picker__option-wrapper::before {
	top: 1px !important;
	right: 1px !important;
	bottom: 1px !important;
	left: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-sizing: border-box !important;
	pointer-events: none;
}

.joc-blockora-morph-app .components-circular-option-picker__option-wrapper > div,
.components-popover .components-circular-option-picker__option-wrapper > div,
.bm-color-dropdown__content .components-circular-option-picker__option-wrapper > div,
.bm-theme-color-palette .components-circular-option-picker__option-wrapper > div,
.bm-fill-color-palette .components-circular-option-picker__option-wrapper > div {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
}

.joc-blockora-morph-app .components-circular-option-picker__option,
.components-popover .components-circular-option-picker__option,
.bm-color-dropdown__content .components-circular-option-picker__option,
.bm-theme-color-palette .components-circular-option-picker__option,
.bm-fill-color-palette .components-circular-option-picker__option {
	position: absolute !important;
	inset: 0 !important;
	display: block !important;
	box-sizing: border-box !important;
	width: 28px !important;
	height: 28px !important;
	min-width: 28px !important;
	min-height: 28px !important;
	max-width: 28px !important;
	max-height: 28px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	line-height: 0 !important;
	/* Color is the inset box-shadow — never clear it. */
	background-image: none !important;
}
