/**
 * Editor styles.
 */

// ---- Generic Form Control (editor-only baseline) ----

.awsm-b-job-form-control {
	display: block;
	width: 100%;
	padding: 5px 10px;
	border: 1px solid #d5d5d5;
	border-radius: 5px;
	color: #444;
	font: inherit;
}

// ---- Disable interaction on search input in editor ----

.awsm-b-filter-item-search .awsm-b-job-form-control {
	pointer-events: none;
}

// ---- Filter Admin (editor preview dropdowns) ----

.awsm-b-filter-admin label.awsm-b-sr-only {
	padding: 0 50px 0 15px;
	border: var(--hz-ls-border-width, 1px) solid var(--hz-ls-border-color, #cccccc) !important;
	border-radius:
		var(--hz-ls-border-radius-topleft, 5px)
		var(--hz-ls-border-radius-topright, 5px)
		var(--hz-ls-border-radius-bottomright, 5px)
		var(--hz-ls-border-radius-bottomleft, 5px) !important;
	min-width: 160px;
	position: relative;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	background-image: url(../../assets/img/arrow.svg);
	background-repeat: no-repeat;
	background-color: var(--hz-sf-bg-color, transparent);
	background-position: right 10px top 50%;
	box-shadow: 0 1px 4px 0 rgb(0 0 0 / 5%);
	font-size: 12px;
	color: var(--hz-sf-tx-color, #060606);
	height: 46px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	line-height: 46px;
}

.awsm-job-2-col .awsm-b-filter-admin label.awsm-b-sr-only {
	min-width: 100%;
}

.awsm-b-filter-admin .awsm-b-filter-option {
	display: none !important;
}

// ---- Icons ----

.awsm-b-job-icon-search:before {
	content: "\f002";
}

.awsm-b-job-icon-close-circle:before {
	content: "\e900";
	color: #a6a6a6;
}

// ---- Misc Editor Controls ----

.hz-awsm-ic-settings .components-form-token-field__help {
	display: none !important;
}

// ---- Inspector Controls (prevent double spacing: natural WP margin + Spacer) ----

.hz-awsm-ic-styles .components-base-control:where(:not(:last-child)),
.hz-awsm-ic-styles .components-radio-control:where(:not(:last-child)) {
	margin-bottom: 0px !important;
}

// ---- Color Settings Panel (remove top border/separator) ----

.hz-color-settings.block-editor-panel-color-gradient-settings {
	padding-left: 0;
	padding-right: 0;
	border-top: none;
}

// ---- Filter Buttons ----

.hz-awsm-ic-settings .filters-button {
	display: flex;
	gap: 10px;
	margin-bottom: 16px;
	justify-content: space-between;
}

/* Base button */
.hz-awsm-ic-settings .filters-button .filter-btn {
	margin-bottom: 5px;
	background-color: #ffffff;
	color: var(--wp-admin-theme-color-text, #1e1e1e);
	border: 1px solid #1e1e1e;
	transition: background 0.15s ease, color 0.15s ease;
	box-shadow: none;
	outline: none;
	justify-content: center;
	width: calc(50% - 5px);
}

/* Active state */
.hz-awsm-ic-settings .filters-button .filter-btn.is-active {
	background-color: #1e1e1e;
	color: #ffffff;
	border-color: #1e1e1e;
}

/* Hover - inactive only */
.hz-awsm-ic-settings .filters-button .filter-btn:not(.is-active):hover {
	background-color: #f0f0f0;
	color: var(--wp-admin-theme-color-text, #1e1e1e);
}

/* Hover - active (stable) */
.hz-awsm-ic-settings .filters-button .filter-btn.is-active:hover {
	background-color: #1e1e1e;
	color: #ffffff;
}

// ---- Pro Badge ----

.awsm-pro-badge {
	align-items: center;
	font-size: 9px;
	font-weight: 600;
	line-height: 1;
	padding: 4px 5px;
	border-radius: 4px;
	background: #161616;
	color: #6cfae4;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-left: 2px;
	vertical-align: middle;
}

.hz-awsm-ic-settings .filters-button .filter-btn.is-pro-locked{
 	border-color: rgba(0,0,0,.6);
    color: rgba(0,0,0,.6) !important;
    cursor: not-allowed;
    background: none !important;
}

.components-toggle-group-control-option-base.is-pro-locked{
	pointer-events: none;
	cursor: not-allowed;
	color: rgba(0,0,0,.3) !important;
}
