.hilucy-branding-active .single-job-listing {
	position: relative;
	--hilucy-branding-button: #0fb2e9;
	--hilucy-branding-button-hover: #0aa6d9;
	--hilucy-branding-button-text: #ffffff;
	--hilucy-branding-header: #1d1d1f;
	--hilucy-branding-header-text: #ffffff;
}

.hilucy-branding-active .single-job-listing .profile-body.listing-tab .buttons,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .button,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .button-2,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .button-5,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-main-buttons .lmb-calltoaction a,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-main-buttons .lmb-calltoaction button,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-form-submit-btn .buttons,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-form-submit-btn .button {
	background: var(--hilucy-branding-button) !important;
	border-color: var(--hilucy-branding-button) !important;
	color: var(--hilucy-branding-button-text) !important;
}

.hilucy-branding-active.single-product .woocommerce div.product .button,
.hilucy-branding-active.single-product .woocommerce div.product .single_add_to_cart_button,
.hilucy-branding-active.single-product .woocommerce div.product form.cart .button {
	background: var(--hilucy-branding-button) !important;
	border-color: var(--hilucy-branding-button) !important;
	color: var(--hilucy-branding-button-text) !important;
}

.hilucy-branding-active .single-job-listing .profile-body.listing-tab .buttons:hover,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .button:hover,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .button-2:hover,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .button-5:hover,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-main-buttons .lmb-calltoaction a:hover,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-main-buttons .lmb-calltoaction button:hover,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-form-submit-btn .buttons:hover,
.hilucy-branding-active .single-job-listing .profile-body.listing-tab .listing-form-submit-btn .button:hover {
	background: var(--hilucy-branding-button-hover) !important;
	border-color: var(--hilucy-branding-button-hover) !important;
	color: var(--hilucy-branding-button-text) !important;
}

.hilucy-branding-active.single-product .woocommerce div.product .button:hover,
.hilucy-branding-active.single-product .woocommerce div.product .single_add_to_cart_button:hover,
.hilucy-branding-active.single-product .woocommerce div.product form.cart .button:hover {
	background: var(--hilucy-branding-button-hover) !important;
	border-color: var(--hilucy-branding-button-hover) !important;
	color: var(--hilucy-branding-button-text) !important;
}

.hilucy-branding-field {
	display: grid;
	gap: 24px;
	padding: 24px;
	border-radius: 18px;
	border: 1px solid #e2e9f3;
	background: #ffffff;
	box-shadow: 0 16px 38px rgba(15, 178, 233, 0.08);
}

@media (max-width: 640px) {
	.hilucy-branding-field {
		padding: 18px;
		gap: 20px;
	}
}

.hilucy-branding-field__option-card {
	background: #f5f9fd;
	border: 1px solid #dfe7f2;
	border-radius: 14px;
	padding: 16px 18px;
	display: grid;
	gap: 8px;
}

.hilucy-branding-field__toggle {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-weight: 600;
	color: #1d2330;
	cursor: pointer;
	position: relative;
}

.hilucy-branding-field__toggle input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hilucy-branding-field__toggle-switch {
	width: 46px;
	height: 26px;
	border-radius: 999px;
	background: #d7dde6;
	position: relative;
	flex-shrink: 0;
	transition: background 0.2s ease;
}

.hilucy-branding-field__toggle-switch::after {
	content: '';
	position: absolute;
	top: 4px;
	left: 4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow: 0 2px 6px rgba(15, 178, 233, 0.25);
	transition: transform 0.2s ease;
}

.hilucy-branding-field__toggle input:checked + .hilucy-branding-field__toggle-switch {
	background: #0fb2e9;
}

.hilucy-branding-field__toggle input:checked + .hilucy-branding-field__toggle-switch::after {
	transform: translateX(18px);
}

.hilucy-branding-field__toggle-label {
	display: inline-flex;
	align-items: center;
	line-height: 1.3;
}

.hilucy-branding-field__helper {
	margin: 0;
	color: #5d6b7d;
	font-size: 0.85rem;
}

.hilucy-branding-field__color-grid {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hilucy-branding-field__color-card {
	background: #f8fbfe;
	border: 1px solid #e2e9f3;
	border-radius: 16px;
	padding: 18px;
	display: grid;
	gap: 10px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hilucy-branding-field__color-card:hover {
	border-color: #0fb2e9;
	box-shadow: 0 10px 28px rgba(15, 178, 233, 0.12);
}

.hilucy-branding-field__color-title {
	font-weight: 600;
	color: #1d2230;
}

.hilucy-branding-field__color-control {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hilucy-branding-field__input {
	width: 54px;
	height: 38px;
	border-radius: 12px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	box-shadow: 0 0 0 1px rgba(13, 25, 44, 0.08);
}

.hilucy-branding-field__input::-webkit-color-swatch-wrapper {
	padding: 0;
}

.hilucy-branding-field__input::-webkit-color-swatch {
	border: none;
	border-radius: 10px;
}

.hilucy-branding-field__input::-moz-color-swatch {
	border: none;
	border-radius: 10px;
}

.hilucy-branding-field__color-code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.82rem;
	padding: 5px 10px;
	border-radius: 8px;
	background: #ffffff;
	color: #2f3747;
	text-transform: uppercase;
	box-shadow: inset 0 0 0 1px #e4eaf2;
}

.hilucy-branding-field__preview {
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	align-items: stretch;
}

.preview-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-radius: 18px;
	background: var(--hilucy-branding-header, #1d1d1f);
	color: var(--hilucy-branding-header-text, #ffffff);
	box-shadow: 0 16px 32px rgba(29, 29, 31, 0.25);
	min-height: 96px;
}

.preview-header__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.preview-header__label {
	font-weight: 600;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.preview-header__status {
	font-size: 0.82rem;
	opacity: 0.85;
}

.preview-header__color {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 0.8rem;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	color: #ffffff;
	text-transform: uppercase;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.preview-header__color--text {
	background: rgba(255, 255, 255, 0.12);
	color: var(--hilucy-branding-header-text, #ffffff);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

.preview-cover {
	position: relative;
	min-height: 110px;
	border-radius: 18px;
	background: var(--hilucy-branding-cover, #0fb2e9);
	color: rgba(255, 255, 255, 0.88);
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	padding: 18px 20px;
	box-shadow: 0 12px 28px rgba(15, 178, 233, 0.28);
}

.preview-cover::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.45) 100%);
	border-radius: inherit;
	pointer-events: none;
}

.preview-cover__label {
	position: relative;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 0.78rem;
}

.preview-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--hilucy-branding-button, #0fb2e9);
	color: var(--hilucy-branding-button-text, #ffffff);
	font-weight: 600;
	box-shadow: 0 10px 24px rgba(15, 178, 233, 0.35);
}

.hilucy-branding-field__note {
	margin: 0;
	color: #5d6b7d;
	font-size: 0.85rem;
}

.hilucy-branding-active .single-job-listing .profile-cover.profile-cover-no-img {
	background: var(--hilucy-branding-cover, #0fb2e9) !important;
}

body.hilucy-branding-active.hilucy-branding-header .c27-main-header:not(.header-scroll) .header-skin,
body.hilucy-branding-active.hilucy-branding-header .c27-main-header.header-scroll .header-skin {
	background: var(--hilucy-branding-header, #1d1d1f) !important;
	border-bottom: 1px solid var(--hilucy-branding-header, #1d1d1f) !important;
}

@media (min-width: 1025px) {
	/* Limit header branding typography overrides to desktop nav */
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .main-nav > li > a,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .main-nav > li > a i,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .user-area a,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .search-trigger a,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .header-right .icon-btn,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .header-right .icon-btn i,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .submenu-toggle .material-icons {
		color: var(--hilucy-branding-header-text, #ffffff) !important;
	}

	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .icon-btn {
		border-color: rgba(255, 255, 255, 0.35) !important;
	}

	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .main-nav > li:hover > a,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .main-nav > li.current-menu-item > a {
		color: var(--hilucy-branding-header-text, #ffffff) !important;
		opacity: 0.85;
	}

	/* Keep dropdown menus readable when header branding is enabled */
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .main-nav .sub-menu a,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .user-area .sub-menu a,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .user-area .dropdown-menu a {
		color: #1f2937 !important;
	}

	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .main-nav .sub-menu a:hover,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .user-area .sub-menu a:hover,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .user-area .dropdown-menu a:hover,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .main-nav .sub-menu a:focus,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .user-area .sub-menu a:focus,
	body.hilucy-branding-active.hilucy-branding-header-text .c27-main-header .user-area .dropdown-menu a:focus {
		color: #0fb2e9 !important;
	}
}

/* Keep mobile flyout navigation using its native typography and colors. */
.mobile-menu-open .c27-main-header .main-nav > li > a,
.mobile-menu-open .c27-main-header .main-nav > li > a i,
.mobile-menu-open .c27-main-header .user-area a,
.mobile-menu-open .c27-main-header .search-trigger a,
.mobile-menu-open .c27-main-header .header-right .icon-btn,
.mobile-menu-open .c27-main-header .header-right .icon-btn i,
.mobile-menu-open .c27-main-header .submenu-toggle .material-icons {
	color: inherit !important;
}

.mobile-menu-open .c27-main-header .icon-btn {
	border-color: inherit !important;
}
