/**
 * MyCreaTools - Vendor Header Bar Styles
 */

.mct-vhb-bar {
	position: relative;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	background-color: #ffffff;
	border-radius: 12px;
	padding: 16px 24px;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	font-family: inherit;
	transition: all 0.3s ease;
}

.mct-vhb-bar * {
	box-sizing: border-box;
}

/* Left Owner Info Group */
.mct-vhb-owner-info {
	display: flex;
	align-items: center;
	gap: 16px;
	flex: 1;
}

.mct-vhb-avatar-wrap {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	background-color: #6b7280;
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	font-weight: 600;
	flex-shrink: 0;
}

.mct-vhb-avatar-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mct-vhb-details {
	display: flex;
	flex-direction: column;
}

.mct-vhb-name {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.mct-badge-pro {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	background-color: #2563eb !important;
	color: #ffffff !important;
	font-size: 10px !important;
	font-weight: 800 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	padding: 2px 6px !important;
	border-radius: 4px !important;
	margin-left: 4px !important;
	vertical-align: middle !important;
	box-shadow: none !important;
	line-height: 1.2 !important;
}

.mct-vhb-subtitle {
	font-size: 14px;
	color: #94a3b8;
	margin-top: 2px;
	line-height: 1.3;
}

.mct-vhb-announcements {
	font-size: 14px;
	font-weight: 700;
	color: #dc2626;
	margin-top: 3px;
	line-height: 1.3;
}

.mct-vhb-rating-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.mct-vhb-stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: #eab308;
	font-size: 15px;
}

.mct-vhb-stars svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.mct-vhb-reviews {
	font-size: 14px;
	font-weight: 600;
	color: #1e293b;
}

/* Right Actions Stack */
.mct-vhb-actions-stack {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 160px;
	flex-shrink: 0;
}

.mct-vhb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	padding: 10px 16px;
	font-size: 16px;
	font-weight: 700;
	text-align: center;
	text-decoration: none !important;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	outline: none;
	border: 2px solid transparent;
	line-height: 1.2;
}

/* Top Button: Solid Red Primary */
.mct-vhb-btn-primary {
	background-color: #dc2626;
	color: #ffffff !important;
	border-color: #dc2626;
}

.mct-vhb-btn-primary:hover {
	background-color: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/* Bottom Button: Outline Red Secondary */
.mct-vhb-btn-outline {
	background-color: #ffffff;
	color: #dc2626 !important;
	border-color: #dc2626;
}

.mct-vhb-btn-outline:hover {
	background-color: #dc2626;
	color: #ffffff !important;
	border-color: #dc2626;
}

/* Modal Overlay for Shortcodes */
.mct-vhb-modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mct-vhb-modal-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

.mct-vhb-modal-card {
	background-color: #ffffff;
	width: 100%;
	max-width: 550px;
	max-height: 85vh;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: scale(0.95);
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mct-vhb-modal-overlay.is-open .mct-vhb-modal-card {
	transform: scale(1);
}

.mct-vhb-modal-header {
	padding: 16px 20px;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mct-vhb-modal-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
}

.mct-vhb-modal-close {
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	padding: 4px 8px;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
}

.mct-vhb-modal-close:hover {
	background-color: #f1f5f9;
	color: #0f172a;
}

.mct-vhb-modal-body {
	padding: 20px;
	overflow-y: auto;
}

/* Responsiveness */
@media (max-width: 640px) {
	.mct-vhb-bar {
		flex-direction: column;
		align-items: stretch;
		padding: 18px;
	}
	.mct-vhb-actions-stack {
		width: 100%;
	}
}
