/* ============================================================
   Face520 Header Extras: Customer Support Button with red badge
   Injected via JS into WoodMart header right column
   ============================================================ */

/* --- Container: Support button group --- */
.face520-header-extras {
	display: inline-flex;
	align-items: center;
	gap: 0;
	flex-shrink: 0;
	width: auto;
	max-width: none;
}

/* --- Support Button --- */
.face520-header-extras .face520-support-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	padding: 0 10px;
	color: var(--wd-header-el-color, #333);
	background: transparent;
	border: none !important;
	cursor: pointer;
	text-decoration: none;
	transition: color 0.25s ease;
	line-height: 1;
	flex-shrink: 0;
	width: auto;
	min-height: 0 !important;
	min-width: 0;
}

.face520-header-extras .face520-support-btn:hover {
	color: var(--wd-header-el-color-hover, rgba(51, 51, 51, 0.6));
	background: transparent !important;
}

/* Support text label */
.face520-header-extras .face520-support-text {
	font-weight: var(--wd-header-el-font-weight, 600);
	font-size: var(--wd-header-el-font-size, 13px);
	text-transform: var(--wd-header-el-transform, none);
	white-space: nowrap;
	flex-shrink: 0;
}

/* --- Red Badge (matching WoodMart's wd-tools-count style) --- */
.face520-header-extras .face520-support-count {
	position: absolute;
	top: -5px;
	right: -9px;
	z-index: 1;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	text-align: center;
	letter-spacing: 0;
	font-weight: 400;
	font-size: 9px;
	line-height: 15px;
	background-color: var(--wd-primary-color, #83b735);
	color: #fff;
	display: none; /* hidden by default, shown via JS when count > 0 */
}

.face520-header-extras .face520-support-count.has-messages {
	display: inline-block;
}

/* --- Top bar adjustments --- */
.whb-top-bar .face520-header-extras .face520-support-btn {
	height: 30px;
	font-size: 12px;
}

.whb-top-bar .face520-header-extras .face520-support-count {
	width: 13px;
	height: 13px;
	font-size: 8px;
	line-height: 13px;
	top: -3px;
	right: -7px;
}

/* --- Light header color scheme --- */
.whb-color-light .face520-header-extras .face520-support-btn {
	color: #fff;
}

.whb-color-light .face520-header-extras .face520-support-btn:hover {
	color: rgba(255, 255, 255, 0.8);
}

/* --- Mobile responsive --- */
@media (max-width: 768px) {
	.face520-header-extras .face520-support-btn {
		padding: 0 8px;
	}
}

/* --- Support dropdown/popup placeholder (future use) --- */
.face520-support-dropdown {
	position: absolute;
	top: 100%;
	right: 0;
	margin-top: 8px;
	width: 280px;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
	z-index: 390;
	display: none;
}

.face520-support-dropdown.is-open {
	display: block;
}

.face520-support-dropdown .support-dropdown-header {
	padding: 14px 16px;
	border-bottom: 1px solid #eee;
	font-weight: 600;
	font-size: 14px;
	color: #333;
}

.face520-support-dropdown .support-dropdown-body {
	padding: 12px 16px;
	font-size: 13px;
	color: #666;
}

.face520-support-dropdown .support-dropdown-footer {
	padding: 10px 16px;
	border-top: 1px solid #eee;
	text-align: center;
}

.face520-support-dropdown .support-dropdown-footer a {
	display: block;
	padding: 8px;
	color: #83b735;
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	border-radius: 4px;
	transition: background-color 0.2s;
}

.face520-support-dropdown .support-dropdown-footer a:hover {
	background-color: #f5f5f5;
}
