/* SMV Marketplace – Frontend */

.smv-directory,
.smv-single-profile,
.smv-dashboard,
.smv-quote-form-wrap,
.smv-payment-buttons {
	max-width: 1100px;
	margin: 0 auto;
}

/* Filters */
.smv-directory-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
	align-items: center;
}
.smv-directory-filters input[type="search"],
.smv-directory-filters select {
	padding: 10px 14px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 15px;
	min-width: 180px;
}

/* Grid */
.smv-vendor-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
}
.smv-vendor-card {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s;
}
.smv-vendor-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.smv-card-image {
	display: block;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #f4f4f4;
}
.smv-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.smv-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	font-weight: 700;
	color: #bbb;
	background: #eee;
}
.smv-card-body {
	padding: 16px;
}
.smv-card-body h3 {
	margin: 0 0 6px;
	font-size: 1.15rem;
}
.smv-card-body h3 a {
	text-decoration: none;
	color: inherit;
}
.smv-location {
	color: #666;
	font-size: 0.9rem;
	margin: 0 0 8px;
}
.smv-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.smv-tags span {
	background: #f0f0f0;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	color: #444;
}

/* Buttons */
.smv-btn {
	display: inline-block;
	background: #1a1a1a;
	color: #fff !important;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.15s;
}
.smv-btn:hover {
	background: #333;
}
.smv-btn-outline {
	background: transparent;
	color: #1a1a1a !important;
	border: 1px solid #1a1a1a;
}
.smv-btn-outline:hover {
	background: #1a1a1a;
	color: #fff !important;
}
.smv-btn-pay {
	background: #635bff;
}
.smv-btn-pay:hover {
	background: #4b45c6;
}

/* Single profile */
.smv-profile-header {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-bottom: 28px;
}
.smv-avatar {
	width: 120px;
	height: 120px;
	object-fit: cover;
	border-radius: 50%;
	flex-shrink: 0;
}
.smv-profile-bio {
	margin-bottom: 32px;
	line-height: 1.65;
}
.smv-gallery h3 {
	margin-bottom: 16px;
}
.smv-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
	margin-bottom: 32px;
}
.smv-gallery-item img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 8px;
	display: block;
}
.smv-profile-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	margin-top: 40px;
	padding-top: 32px;
	border-top: 1px solid #eee;
}
@media (max-width: 700px) {
	.smv-profile-actions {
		grid-template-columns: 1fr;
	}
	.smv-profile-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
}

/* Forms */
.smv-quote-form p,
.smv-pay-form p,
.smv-profile-form p {
	margin-bottom: 14px;
}
.smv-quote-form label,
.smv-pay-form label,
.smv-profile-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 14px;
}
.smv-quote-form input[type="text"],
.smv-quote-form input[type="email"],
.smv-quote-form input[type="number"],
.smv-quote-form textarea,
.smv-pay-form input,
.smv-pay-form select,
.smv-pay-form textarea,
.smv-profile-form input[type="text"],
.smv-profile-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.smv-profile-form .description,
.smv-pay-form .description {
	font-size: 13px;
	color: #666;
}

/* Dashboard */
.smv-status-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 20px;
}
.status-approved { background: #e6f6ea; color: #0a7a2f; }
.status-pending  { background: #fff8e5; color: #9a6b00; }
.status-rejected { background: #fce8e8; color: #b32d2e; }
.status-none     { background: #f0f0f0; color: #555; }

.smv-current-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin: 10px 0;
}
.smv-gal-item {
	text-align: center;
}
.smv-gal-item img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 6px;
	display: block;
	margin-bottom: 4px;
}

.smv-quotes-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.smv-quotes-table th,
.smv-quotes-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	text-align: left;
}
.smv-quotes-table th {
	background: #f8f8f8;
	font-weight: 600;
}

/* Notices */
.smv-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.smv-success {
	background: #e6f6ea;
	color: #0a7a2f;
	border: 1px solid #b3e0c0;
}
.smv-empty {
	text-align: center;
	color: #666;
	padding: 40px 0;
}

.smv-payment-success {
	text-align: center;
	padding: 40px 20px;
}

/* Vendor login / registration */
.smv-vendor-auth {
	max-width: 960px;
	margin: 0 auto;
}
.smv-auth-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}
@media (max-width: 700px) {
	.smv-auth-grid {
		grid-template-columns: 1fr;
	}
}
.smv-auth-col {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	padding: 24px;
}
.smv-auth-col h3 {
	margin: 0 0 8px;
	font-size: 1.25rem;
}
.smv-auth-intro {
	color: #666;
	font-size: 0.95rem;
	margin: 0 0 18px;
}
.smv-auth-form p {
	margin-bottom: 14px;
}
.smv-auth-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
	font-size: 14px;
}
.smv-auth-form input[type="text"],
.smv-auth-form input[type="email"],
.smv-auth-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.smv-auth-form .smv-remember label {
	font-weight: 400;
	display: inline;
}
.smv-auth-links {
	font-size: 14px;
}
.smv-auth-links a {
	color: #555;
}
.smv-notice.smv-error {
	background: #fce8e8;
	color: #b32d2e;
	border: 1px solid #f0b8b8;
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
}
.smv-auth-logged-in {
	text-align: center;
	padding: 24px;
}

/* Single profile – enhanced layout */
.smv-single-profile {
	max-width: 960px;
	margin: 0 auto;
}
.smv-profile-header {
	display: flex;
	gap: 28px;
	align-items: center;
	margin-bottom: 32px;
	padding-bottom: 28px;
	border-bottom: 1px solid #eee;
}
.smv-profile-avatar-wrap {
	flex-shrink: 0;
}
.smv-avatar {
	width: 140px;
	height: 140px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #f0f0f0;
	display: block;
}
.smv-avatar-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #1a1a1a;
	color: #fff;
	font-size: 48px;
	font-weight: 700;
}
.smv-vendor-name {
	margin: 0 0 10px;
	font-size: 1.75rem;
	line-height: 1.25;
}
.smv-meta-label {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
	margin-bottom: 4px;
	font-weight: 600;
}
.smv-location {
	margin: 0 0 12px;
	color: #444;
	font-size: 1rem;
}
.smv-specialties {
	margin-top: 4px;
}
.smv-section-title {
	font-size: 1.2rem;
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid #1a1a1a;
	display: inline-block;
}
.smv-profile-bio {
	margin-bottom: 36px;
	line-height: 1.7;
	color: #333;
}

/* Gallery slider */
.smv-gallery-slider-wrap {
	margin-bottom: 40px;
}
.smv-slider {
	position: relative;
	background: #111;
	border-radius: 12px;
	overflow: hidden;
}
.smv-slider-track {
	position: relative;
	aspect-ratio: 16 / 10;
	min-height: 280px;
}
.smv-slider {
	--smv-transition-ms: 450ms;
}
.smv-slider-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--smv-transition-ms) ease, transform var(--smv-transition-ms) ease;
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateX(0);
}
.smv-slider-slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	transform: translateX(0);
}
/* Slide effect */
.smv-slider[data-effect="slide"] .smv-slider-slide.is-enter-next {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transform: translateX(100%);
	animation: smv-slide-in-next var(--smv-transition-ms) ease forwards;
}
.smv-slider[data-effect="slide"] .smv-slider-slide.is-enter-prev {
	opacity: 1;
	visibility: visible;
	z-index: 2;
	transform: translateX(-100%);
	animation: smv-slide-in-prev var(--smv-transition-ms) ease forwards;
}
.smv-slider[data-effect="slide"] .smv-slider-slide.is-exit-next {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	animation: smv-slide-out-next var(--smv-transition-ms) ease forwards;
}
.smv-slider[data-effect="slide"] .smv-slider-slide.is-exit-prev {
	opacity: 1;
	visibility: visible;
	z-index: 1;
	animation: smv-slide-out-prev var(--smv-transition-ms) ease forwards;
}
@keyframes smv-slide-in-next {
	from { transform: translateX(100%); }
	to   { transform: translateX(0); }
}
@keyframes smv-slide-in-prev {
	from { transform: translateX(-100%); }
	to   { transform: translateX(0); }
}
@keyframes smv-slide-out-next {
	from { transform: translateX(0); opacity: 1; }
	to   { transform: translateX(-100%); opacity: 0; }
}
@keyframes smv-slide-out-prev {
	from { transform: translateX(0); opacity: 1; }
	to   { transform: translateX(100%); opacity: 0; }
}
.smv-slider-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}
.smv-slider-slide a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}
.smv-slider-slide img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	margin: 0 auto;
}
.smv-slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	background: rgba(255,255,255,0.9);
	border: none;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
	box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.smv-slider-btn:hover {
	background: #fff;
}
.smv-slider-prev { left: 12px; }
.smv-slider-next { right: 12px; }
.smv-slider-dots {
	position: absolute;
	bottom: 12px;
	left: 0;
	right: 0;
	z-index: 2;
	display: flex;
	justify-content: center;
	gap: 8px;
}
.smv-slider-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: none;
	background: rgba(255,255,255,0.45);
	cursor: pointer;
	padding: 0;
}
.smv-slider-dot.is-active {
	background: #fff;
}
.smv-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.smv-thumb {
	border: 2px solid transparent;
	padding: 0;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: none;
	width: 64px;
	height: 64px;
}
.smv-thumb.is-active {
	border-color: #1a1a1a;
}
.smv-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
@media (max-width: 700px) {
	.smv-profile-header {
		flex-direction: column;
		text-align: center;
	}
	.smv-specialties .smv-tags {
		justify-content: center;
	}
	.smv-slider-track {
		aspect-ratio: 4 / 3;
		min-height: 220px;
	}
}

/* Full-card link to individual vendor profile */
.smv-vendor-card .smv-card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}
.smv-vendor-card .smv-card-image {
	display: block;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #f4f4f4;
}
.smv-vendor-card .smv-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.smv-vendor-card .smv-card-body {
	display: block;
	padding: 16px;
}
.smv-vendor-card .smv-card-title {
	display: block;
	font-size: 1.15rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: #1a1a1a;
}
.smv-vendor-card .smv-card-link:hover .smv-card-title {
	text-decoration: underline;
}
.smv-vendor-card .smv-location {
	display: block;
}
.smv-vendor-card .smv-tags {
	display: flex;
}
.smv-vendor-card .smv-btn {
	margin-top: 8px;
	pointer-events: none; /* whole card is the link */
}

/* Messaging / quote threads */
.smv-quotes-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.smv-quote-item {
	border: 1px solid #e5e5e5;
	border-radius: 10px;
	background: #fff;
	overflow: hidden;
}
.smv-quote-item > summary {
	cursor: pointer;
	padding: 14px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	list-style: none;
	background: #fafafa;
}
.smv-quote-item > summary::-webkit-details-marker { display: none; }
.smv-quote-sum-date { color: #888; font-size: 13px; }
.smv-quote-sum-email { color: #666; font-size: 13px; }
.smv-quote-status {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	background: #eee;
	padding: 2px 8px;
	border-radius: 999px;
}
.smv-unread-badge {
	background: #c62828;
	color: #fff;
	font-size: 12px;
	padding: 2px 8px;
	border-radius: 999px;
	font-weight: 600;
}
.smv-quote-thread-wrap {
	padding: 16px;
	border-top: 1px solid #eee;
}
.smv-thread {
	max-width: 720px;
}
.smv-thread-header {
	margin-bottom: 12px;
	font-size: 1.05rem;
}
.smv-thread-messages {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 420px;
	overflow-y: auto;
	padding: 8px 4px 16px;
	margin-bottom: 12px;
	background: #f7f7f7;
	border-radius: 8px;
}
.smv-msg {
	max-width: 85%;
	padding: 10px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e8e8e8;
}
.smv-msg-mine {
	align-self: flex-end;
	background: #1a1a1a;
	color: #fff;
	border-color: #1a1a1a;
}
.smv-msg-mine .smv-msg-meta { color: rgba(255,255,255,0.7); }
.smv-msg-theirs {
	align-self: flex-start;
}
.smv-msg-meta {
	font-size: 12px;
	color: #888;
	margin-bottom: 4px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
}
.smv-msg-body {
	line-height: 1.5;
	word-break: break-word;
}
.smv-thread-reply textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 8px;
	font: inherit;
	margin-bottom: 10px;
	box-sizing: border-box;
}
.smv-thread-empty {
	text-align: center;
	color: #888;
	padding: 20px;
}
.smv-thread-locked {
	padding: 24px;
	text-align: center;
	background: #fafafa;
	border-radius: 8px;
}

/* Vendor dashboard stat cards */
.smv-stat-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0 0 28px;
}
.smv-stat-card {
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	padding: 20px 18px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	position: relative;
	overflow: hidden;
}
.smv-stat-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
}
.smv-stat-new::before { background: #c62828; }
.smv-stat-all::before { background: #1565c0; }
.smv-stat-commissions::before { background: #2e7d32; }
.smv-stat-label {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	margin-bottom: 8px;
}
.smv-stat-value {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	color: #1a1a1a;
	margin-bottom: 6px;
}
.smv-stat-hint {
	font-size: 13px;
	color: #888;
}
@media (max-width: 700px) {
	.smv-stat-cards {
		grid-template-columns: 1fr;
	}
}

/* Quote status badges */
.smv-quote-status-badge,
.smv-admin-status {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 3px 10px;
	border-radius: 999px;
	background: #eee;
	color: #444;
	vertical-align: middle;
}
.smv-quote-status-badge.status-new,
.smv-admin-status.status-new { background: #ffebee; color: #c62828; }
.smv-quote-status-badge.status-open,
.smv-admin-status.status-open { background: #e3f2fd; color: #1565c0; }
.smv-quote-status-badge.status-quoted,
.smv-admin-status.status-quoted { background: #fff3e0; color: #ef6c00; }
.smv-quote-status-badge.status-accepted,
.smv-admin-status.status-accepted { background: #e8f5e9; color: #2e7d32; }
.smv-quote-status-badge.status-declined,
.smv-admin-status.status-declined { background: #fce4ec; color: #ad1457; }
.smv-quote-status-badge.status-completed,
.smv-admin-status.status-completed { background: #e0f2f1; color: #00695c; }
.smv-quote-status-badge.status-closed,
.smv-admin-status.status-closed { background: #eceff1; color: #546e7a; }

.smv-thread-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	justify-content: space-between;
}

.smv-status-form {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
	padding: 12px;
	background: #f7f7f7;
	border-radius: 8px;
}
.smv-status-form label {
	font-weight: 600;
	font-size: 13px;
}
.smv-status-form select {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font: inherit;
}
.smv-btn-sm {
	padding: 6px 12px !important;
	font-size: 13px !important;
}

.smv-msg-system,
.smv-msg-from-system {
	align-self: center;
	max-width: 95%;
	background: transparent;
	border: none;
	border-left: 3px solid #90a4ae;
	border-radius: 0;
	padding: 6px 12px;
	color: #546e7a;
	font-size: 13px;
	font-style: italic;
}
.smv-msg-system .smv-msg-meta,
.smv-msg-from-system .smv-msg-meta {
	color: #90a4ae;
}


/* Message attachments */
.smv-msg-attachments {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}
.smv-msg-att-image {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	max-width: 160px;
	border: 1px solid rgba(0,0,0,0.08);
}
.smv-msg-att-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 120px;
	object-fit: cover;
}
.smv-msg-mine .smv-msg-att-image {
	border-color: rgba(255,255,255,0.25);
}
.smv-msg-att-file {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgba(0,0,0,0.06);
	text-decoration: none;
	font-size: 13px;
	color: inherit;
}
.smv-msg-mine .smv-msg-att-file {
	background: rgba(255,255,255,0.18);
	color: #fff;
}
.smv-msg-attach-row {
	margin: 10px 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}
.smv-msg-attach-label span {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	margin-right: 8px;
}
.smv-msg-attach-label input[type="file"] {
	font-size: 13px;
	max-width: 100%;
}
.smv-msg-attach-hint {
	font-size: 12px;
	color: #666;
}


/* Ensure customer (theirs) message text is always readable */
.smv-msg-theirs .smv-msg-body,
.smv-msg-theirs .smv-msg-meta {
	color: #222;
}
.smv-msg-theirs {
	background: #fff;
	color: #222;
}
.smv-quote-thread-wrap .smv-thread-messages {
	min-height: 80px;
}

/* Dashboard expanded stats */
.smv-stat-cards {
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.smv-stat-active::before { background: #ef6c00; }
.smv-stat-response::before { background: #6a1b9a; }
.smv-stat-payments::before { background: #00838f; }
.smv-stat-payments .smv-stat-value { display: none; }
.smv-pay-summary {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 4px 0 8px;
	text-align: left;
}
.smv-pay-row {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
	color: #444;
}
.smv-pay-row strong { color: #1a1a1a; font-size: 14px; }
.smv-pay-row-total {
	padding-top: 6px;
	border-top: 1px solid #eee;
	font-weight: 600;
}

/* Unread / active quote rows */
.smv-quote-has-unread {
	border-color: #c62828;
	box-shadow: 0 0 0 1px rgba(198, 40, 40, 0.15);
}
.smv-quote-has-unread > summary {
	background: #fff5f5;
}
.smv-quote-active:not(.smv-quote-has-unread) > summary {
	background: #fff8f0;
}
.smv-unread-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c62828;
	flex-shrink: 0;
	box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.2);
}
.smv-active-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	padding: 2px 8px;
	border-radius: 999px;
	background: #fff3e0;
	color: #ef6c00;
}

/* Unread messages in thread */
.smv-msg-unread {
	box-shadow: 0 0 0 2px #c62828;
	position: relative;
}
.smv-msg-unread::before {
	content: 'New';
	position: absolute;
	top: -8px;
	right: 10px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	background: #c62828;
	color: #fff;
	padding: 1px 6px;
	border-radius: 999px;
	letter-spacing: 0.03em;
}
.smv-msg-theirs.smv-msg-unread {
	background: #fff5f5;
	border-color: #ef9a9a;
}

/* Dash profile details card */
.smv-dash-profile-card {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 16px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 12px;
	box-sizing: border-box;
}
.smv-dash-profile-card--vertical {
	flex-direction: column;
	align-items: center;
	text-align: center;
}
.smv-dash-profile-card__img img {
	display: block;
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 50%;
}
.smv-dash-profile-card__placeholder {
	display: block;
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: #e0e0e0;
}
.smv-dash-profile-card__body {
	flex: 1;
	min-width: 0;
}
.smv-dash-profile-card__name {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 6px;
	line-height: 1.2;
}
.smv-dash-profile-card__meta {
	font-size: 13px;
	color: #666;
	margin: 4px 0;
}
.smv-dash-profile-card__bio {
	font-size: 13px;
	color: #444;
	margin: 8px 0;
	line-height: 1.45;
}
.smv-dash-profile-card__link {
	display: inline-block;
	margin-top: 10px;
	text-decoration: none;
}
.smv-dash-profile-card__hint {
	margin-top: 8px;
	font-size: 12px;
	color: #888;
}
.smv-dash-profile-card .smv-status-badge {
	margin-bottom: 6px;
}

/* Artist profile link button */
.smv-profile-link-wrap {
	line-height: 1;
}
.smv-profile-link-btn {
	display: inline-block;
	padding: 10px 18px;
	background: #1a1a1a;
	color: #fff;
	text-decoration: none;
	border-radius: 6px;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}
.smv-profile-link-btn:hover {
	background: #333;
	color: #fff;
}
.smv-profile-link-pending {
	font-size: 13px;
	color: #888;
}

/* Profile form save button sizes */
.smv-profile-form .smv-btn--xs {
	padding: 6px 12px;
	font-size: 12px;
	min-height: 28px;
	line-height: 1.2;
}
.smv-profile-form .smv-btn--sm {
	padding: 8px 14px;
	font-size: 13px;
	min-height: 34px;
	line-height: 1.2;
}
.smv-profile-form .smv-btn--md {
	padding: 10px 18px;
	font-size: 14px;
	min-height: 40px;
	line-height: 1.2;
}
.smv-profile-form .smv-btn--lg {
	padding: 12px 22px;
	font-size: 16px;
	min-height: 46px;
	line-height: 1.2;
}
.smv-profile-form .smv-btn--xl {
	padding: 14px 28px;
	font-size: 18px;
	min-height: 52px;
	line-height: 1.2;
}

/* ========== Responsive: tablet ========== */
@media (max-width: 900px) {
	.smv-directory,
	.smv-single-profile,
	.smv-dashboard,
	.smv-quote-form-wrap,
	.smv-payment-buttons {
		max-width: 100%;
		padding-left: 12px;
		padding-right: 12px;
		box-sizing: border-box;
	}

	.smv-vendor-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.smv-stat-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.smv-directory-filters {
		gap: 8px;
	}

	.smv-directory-filters input[type="search"],
	.smv-directory-filters select {
		min-width: 0;
		flex: 1 1 140px;
	}
}

/* ========== Responsive: mobile ========== */
@media (max-width: 600px) {
	.smv-directory,
	.smv-single-profile,
	.smv-dashboard,
	.smv-quote-form-wrap,
	.smv-payment-buttons,
	.smv-vendor-auth {
		padding-left: 10px;
		padding-right: 10px;
		box-sizing: border-box;
	}

	/* Directory filters – stack full width */
	.smv-directory-filters {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		margin-bottom: 16px;
	}

	.smv-directory-filters input[type="search"],
	.smv-directory-filters select,
	.smv-directory-filters .smv-btn {
		width: 100%;
		min-width: 0;
		box-sizing: border-box;
	}

	/* Artist cards – single column */
	.smv-vendor-grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.smv-vendor-card .smv-card-body {
		padding: 12px;
	}

	.smv-vendor-card .smv-card-title {
		font-size: 1.05rem;
	}

	.smv-vendor-card .smv-btn {
		display: block;
		text-align: center;
		width: 100%;
		box-sizing: border-box;
	}

	.smv-dir-pagination {
		text-align: center;
		font-size: 14px;
		margin-top: 16px;
	}

	.smv-dir-pagination a,
	.smv-dir-pagination span {
		display: inline-block;
		padding: 6px 10px;
		margin: 2px;
	}

	/* Stat cards */
	.smv-stat-cards {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.smv-stat-card {
		padding: 14px 14px 14px 18px;
	}

	.smv-stat-value {
		font-size: 1.5rem;
	}

	/* Profile header */
	.smv-profile-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 12px;
	}

	.smv-profile-header img,
	.smv-profile-image img {
		max-width: 140px;
		height: auto;
	}

	.smv-specialties .smv-tags,
	.smv-tags {
		justify-content: center;
		flex-wrap: wrap;
	}

	/* Gallery slider */
	.smv-slider-track,
	.smv-profile-gallery .smv-slider-track {
		aspect-ratio: 4 / 3;
		min-height: 180px;
		max-height: 280px;
	}

	.smv-slider-arrow {
		width: 36px;
		height: 36px;
		font-size: 18px;
	}

	/* Forms */
	.smv-quote-form input[type="text"],
	.smv-quote-form input[type="email"],
	.smv-quote-form input[type="number"],
	.smv-quote-form textarea,
	.smv-pay-form input,
	.smv-pay-form select,
	.smv-pay-form textarea,
	.smv-profile-form input[type="text"],
	.smv-profile-form textarea,
	.smv-profile-form input[type="file"] {
		font-size: 16px; /* avoids iOS zoom on focus */
	}

	.smv-btn,
	.smv-profile-form .smv-btn,
	.smv-quote-form .smv-btn,
	.smv-pay-form .smv-btn {
		width: 100%;
		box-sizing: border-box;
		text-align: center;
		min-height: 44px; /* touch target */
	}

	.smv-form-actions {
		text-align: stretch;
	}

	.smv-profile-actions {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	/* Dashboard */
	.smv-dashboard h2,
	.smv-dashboard h3 {
		font-size: 1.15rem;
	}

	.smv-dash-profile-card {
		flex-direction: column;
		text-align: center;
		align-items: center;
	}

	.smv-dash-profile-card img {
		margin: 0 auto;
	}

	.smv-current-gallery {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 8px;
	}

	/* Messages / quotes list */
	.smv-quotes-list,
	.smv-message-thread {
		font-size: 14px;
	}

	.smv-message-bubble {
		max-width: 92%;
	}

	.smv-pay-summary .smv-pay-row {
		flex-wrap: wrap;
		gap: 4px;
	}

	/* Auth forms */
	.smv-vendor-auth {
		padding: 10px;
	}

	.smv-vendor-auth form {
		width: 100%;
	}
}

/* ========== Responsive: very small phones ========== */
@media (max-width: 380px) {
	.smv-vendor-grid {
		gap: 10px;
	}

	.smv-stat-value {
		font-size: 1.35rem;
	}

	.smv-current-gallery {
		grid-template-columns: 1fr 1fr !important;
	}

	.smv-directory-filters input[type="search"],
	.smv-directory-filters select {
		font-size: 15px;
		padding: 10px 12px;
	}
}


/* ── In-thread invoices (v1.8.0) ───────────────────────────── */
.smv-msg.smv-msg-invoice {
	max-width: 95%;
}
.smv-msg-mine.smv-msg-invoice {
	background: #fff;
	color: #1a1a1a;
	border-color: #e8e8e8;
}
.smv-msg-mine.smv-msg-invoice .smv-msg-meta { color: #888; }
.smv-invoice {
	margin-top: 10px;
	padding: 14px 16px;
	background: #fff;
	color: #1a1a1a;
	border: 1px solid #d9d9e3;
	border-left: 4px solid #635bff;
	border-radius: 8px;
}
.smv-invoice-paid { border-left-color: #2e7d32; }
.smv-invoice-cancelled,
.smv-invoice-refunded { border-left-color: #9e9e9e; opacity: 0.85; }
.smv-invoice-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	color: #666;
}
.smv-invoice-badge {
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: #fff4e0;
	color: #8a5a00;
}
.smv-invoice-badge-paid { background: #e3f4e5; color: #1b5e20; }
.smv-invoice-badge-cancelled,
.smv-invoice-badge-refunded { background: #eee; color: #555; }
.smv-invoice-amount {
	font-size: 26px;
	font-weight: 700;
	margin: 6px 0 2px;
}
.smv-invoice-paid-on,
.smv-invoice-note,
.smv-invoice-secure {
	font-size: 12px;
	color: #777;
}
.smv-invoice-pay,
.smv-invoice-cancel {
	margin-top: 10px;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}
.smv-invoice-form-wrap {
	margin-top: 14px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 10px 14px;
	background: #fafafa;
}
.smv-invoice-form-wrap summary {
	cursor: pointer;
	font-weight: 600;
}
.smv-invoice-form { margin-top: 12px; }
.smv-invoice-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 10px;
}
.smv-invoice-form label span {
	display: block;
	font-size: 13px;
	margin-bottom: 4px;
}
.smv-invoice-form input[type="number"],
.smv-invoice-form select,
.smv-invoice-form textarea {
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font: inherit;
	box-sizing: border-box;
}
.smv-invoice-desc { display: block; margin-bottom: 10px; }
.smv-invoice-desc textarea { width: 100%; }
.smv-notice.smv-info {
	background: #e8f1fb;
	border-color: #b6d4f2;
	color: #174a7c;
}
