/* The Marketplace 1.3.0 presentation layer. */

.mw-immersive-body {
	min-width: 320px;
	margin: 0;
	background: #f5f4f0;
}

.mw-immersive-body.admin-bar .vmp-portal-sidebar {
	top: 32px;
	height: calc(100vh - 32px);
}

.mw-immersive-body #wpadminbar {
	position: fixed;
}

.mw-full-width-page,
.mw-full-width-entry,
.mw-full-width-content,
.mw-full-width-content > *,
.market-weave-marketplace-page .mw-page-content,
.market-weave-marketplace-page .mw-page-content > article,
.market-weave-marketplace-page .entry-content,
.market-weave-marketplace-page .entry-content > * {
	width: 100%;
	max-width: none;
	margin-right: 0;
	margin-left: 0;
}

.mw-full-width-page {
	min-height: 60vh;
}

.mw-full-width-title {
	padding-top: clamp(40px, 6vw, 80px);
	margin-bottom: 35px;
}

.mw-full-width-content > .vmp-shell,
.market-weave-marketplace-page .entry-content > .vmp-shell {
	width: min(calc(100% - 40px), var(--mw-container)) !important;
	max-width: none !important;
	margin-right: auto !important;
	margin-left: auto !important;
}

.mw-full-width-immersive,
.mw-full-width-immersive .mw-full-width-entry,
.mw-full-width-immersive .mw-full-width-content {
	min-height: 100vh;
	padding: 0;
}

.mw-full-width-immersive .vmp-shell,
.mw-full-width-immersive .vmp-login-shell,
.mw-full-width-immersive .vmp-portal {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}

.market-weave-vendor-portal .mw-marketplace-page,
.market-weave-vendor-login .mw-marketplace-page {
	width: 100%;
	max-width: none;
	padding: 0;
}

.market-weave-vendor-portal .mw-marketplace-page > article,
.market-weave-vendor-login .mw-marketplace-page > article {
	width: 100%;
}

.market-weave-vendor-dashboard .mw-marketplace-page {
	width: 100%;
	max-width: none;
	padding-right: 0;
	padding-left: 0;
}

.market-weave-vendor-dashboard .vmp-shell {
	width: min(calc(100% - 40px), 1500px) !important;
	max-width: none !important;
}

.vmp-secondary-button {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 8px 15px;
	border: 1px solid var(--mw-line);
	border-radius: 999px;
	background: var(--mw-white);
	color: var(--mw-ink);
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.vmp-secondary-button:hover {
	border-color: var(--mw-accent);
	color: var(--mw-accent-dark);
}

.vmp-discovery-filters {
	display: grid;
	grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(135px, 1fr)) auto;
	gap: 10px;
	align-items: end;
	padding: 22px;
	margin-bottom: 42px;
	border: 1px solid var(--mw-line);
	border-radius: var(--mw-radius);
	background: var(--mw-white);
	box-shadow: 0 15px 45px rgba(23, 35, 31, 0.05);
}

.vmp-discovery-filters input,
.vmp-discovery-filters select {
	width: 100%;
}

.vmp-discovery-filters .vmp-check {
	min-height: 47px;
	padding: 0 12px;
	border: 1px solid var(--mw-line);
	border-radius: 10px;
}

.vmp-discovery-section {
	padding: 24px 0 55px;
}

.vmp-discovery-section > h2,
.vmp-discovery-section .vmp-dashboard-head h2 {
	font-size: clamp(1.8rem, 3vw, 3rem);
}

.vmp-collection-grid,
.vmp-comparison-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
}

.vmp-collection-card {
	position: relative;
	min-height: 260px;
	overflow: hidden;
	border-radius: var(--mw-radius);
	background: var(--mw-ink);
	color: var(--mw-white);
	text-decoration: none;
}

.vmp-collection-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.62;
	transition: transform 0.35s ease;
}

.vmp-collection-card:hover img {
	transform: scale(1.04);
}

.vmp-collection-card > div {
	position: absolute;
	z-index: 1;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 25px;
	background: linear-gradient(transparent, rgba(15, 25, 21, 0.92));
}

.vmp-collection-card h3 {
	margin-bottom: 5px;
	color: inherit;
}

.vmp-comparison-grid .vmp-panel {
	position: relative;
}

.vmp-comparison-grid img {
	width: 100%;
	aspect-ratio: 1;
	border-radius: 12px;
	object-fit: cover;
}

.vmp-comparison-grid h2 {
	margin-top: 15px;
	font-size: 1.15rem;
}

.vmp-summary-list {
	margin: 20px 0;
}

.vmp-summary-list > div {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	padding: 10px 0;
	border-bottom: 1px solid var(--mw-line);
}

.vmp-summary-list dt {
	color: var(--mw-muted);
}

.vmp-summary-list dd {
	margin: 0;
	font-weight: 700;
	text-align: right;
}

.vmp-customer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 15px 0;
}

.vmp-inline-action {
	margin: 0;
}

.vmp-store-announcement,
.vmp-store-alert,
.vmp-minimum-order,
.vmp-store-open-status {
	padding: 15px 18px;
	margin: 14px 0;
	border-radius: 12px;
}

.vmp-store-announcement {
	background: #fff7ed;
	color: #9a3412;
}

.vmp-store-alert {
	background: #fef2f2;
	color: #991b1b;
}

.vmp-store-open-status {
	display: inline-block;
	background: #ecfdf5;
	color: #065f46;
	font-size: 0.82rem;
	font-weight: 800;
}

.vmp-store-reviews {
	padding-top: 50px;
}

.vmp-review-score {
	padding: 10px 14px;
	border-radius: 12px;
	background: var(--mw-ink);
	color: var(--mw-white);
}

.vmp-review-card {
	border-left: 4px solid var(--mw-accent) !important;
}

.vmp-login-shell {
	width: 100%;
	min-height: 72vh;
	margin: 0;
	background: linear-gradient(135deg, var(--mw-cream), var(--mw-sage));
}

.vmp-login-panel {
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(23, 35, 31, 0.14);
}

.vmp-ticket-thread {
	max-height: 600px;
	overflow-y: auto;
	padding: 15px;
	border-radius: 14px;
	background: var(--mw-cream);
}

.vmp-ticket-message {
	border-radius: 14px 14px 14px 3px;
}

.vmp-ticket-vendor {
	border-radius: 14px 14px 3px 14px;
	background: var(--mw-sage);
}

.vmp-portal {
	width: 100%;
	max-width: none;
	min-height: 100vh;
	margin: 0;
	background: #f5f4f0;
}

.vmp-portal-sidebar {
	z-index: 4;
	border-color: var(--mw-line);
	background: var(--mw-ink);
	color: var(--mw-white);
}

.vmp-portal-brand small {
	color: rgba(255, 255, 255, 0.55);
}

.vmp-portal-nav a,
.vmp-portal-sidebar-foot a {
	color: rgba(255, 255, 255, 0.78);
}

.vmp-portal-nav a:hover,
.vmp-portal-nav a.is-active {
	background: rgba(255, 255, 255, 0.12);
	color: var(--mw-white);
}

.vmp-portal-nav a span {
	background: var(--mw-accent);
}

.vmp-portal-main {
	width: 100%;
	max-width: none;
	padding: 32px clamp(18px, 4vw, 56px) 70px;
}

.vmp-portal-panel {
	padding: clamp(20px, 3vw, 30px);
	border: 1px solid var(--mw-line);
	border-radius: 16px;
	background: var(--mw-white);
	box-shadow: 0 12px 35px rgba(23, 35, 31, 0.045);
}

.vmp-portal-stats > div {
	padding: 21px;
	border: 1px solid var(--mw-line);
	border-radius: 14px;
	background: var(--mw-white);
}

.vmp-portal-stats strong {
	display: block;
	margin-top: 8px;
	font-family: Manrope, sans-serif;
	font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.vmp-portal-form,
.vmp-staff-list,
.vmp-notification-list,
.vmp-shipping-rate-list {
	display: grid;
	gap: 14px;
}

.vmp-portal-form label > span,
.vmp-form-label {
	display: block;
	margin-bottom: 5px;
	font-size: 0.78rem;
	font-weight: 800;
}

.vmp-portal-form input,
.vmp-portal-form select,
.vmp-portal-form textarea {
	width: 100%;
}

.vmp-portal-form-grid,
.vmp-permission-grid,
.vmp-kyc-documents,
.vmp-hours-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}

.vmp-portal-table {
	width: 100%;
	border-collapse: collapse;
}

.vmp-portal-table th,
.vmp-portal-table td {
	padding: 13px 12px;
	border-bottom: 1px solid var(--mw-line);
	text-align: left;
	vertical-align: top;
}

.vmp-portal-table th {
	color: var(--mw-muted);
	font-size: 0.7rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.vmp-table-scroll {
	overflow-x: auto;
}

.vmp-notification-item,
.vmp-staff-card,
.vmp-shipping-rate {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 18px;
	padding: 17px;
	border: 1px solid var(--mw-line);
	border-radius: 12px;
	background: var(--mw-white);
}

.vmp-notification-item.is-unread {
	border-left: 4px solid var(--mw-accent);
}

.vmp-portal-balance {
	font-family: Manrope, sans-serif;
	font-size: 2.2rem;
	font-weight: 800;
}

.vmp-portal-balance small {
	display: block;
	color: var(--mw-muted);
	font-family: "DM Sans", sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
}

.vmp-advanced-product-fields,
.vmp-product-addons,
.vmp-variation-editor {
	border-color: var(--mw-line);
	border-radius: 12px;
	background: var(--mw-cream);
}

.vmp-addon-field {
	padding: 13px 0;
	border-bottom: 1px solid var(--mw-line);
}

.vmp-addon-field > label:first-child {
	font-weight: 800;
}

.vmp-media-preview img {
	max-width: 180px;
	border-radius: 10px;
}

@media (max-width: 1100px) {
	.vmp-discovery-filters {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vmp-collection-grid,
	.vmp-comparison-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vmp-portal {
		grid-template-columns: 215px minmax(0, 1fr);
	}

	.vmp-portal-two-column,
	.vmp-product-layout,
	.vmp-order-layout {
		grid-template-columns: 1fr !important;
	}
}

@media (max-width: 780px) {
	.mw-immersive-body.admin-bar .vmp-portal-sidebar {
		top: 0;
		height: auto;
	}

	.vmp-discovery-filters,
	.vmp-collection-grid,
	.vmp-comparison-grid,
	.vmp-portal-form-grid,
	.vmp-permission-grid,
	.vmp-kyc-documents,
	.vmp-hours-grid {
		grid-template-columns: 1fr;
	}

	.vmp-portal {
		display: block;
	}

	.vmp-portal-sidebar {
		position: relative;
		width: 100%;
		height: auto;
		padding: 16px;
	}

	.vmp-portal-nav {
		display: flex;
		overflow-x: auto;
		padding-bottom: 7px;
	}

	.vmp-portal-nav a {
		flex: 0 0 auto;
	}

	.vmp-portal-sidebar-foot {
		display: flex;
		margin-top: 12px;
	}

	.vmp-portal-header,
	.vmp-portal-section-head,
	.vmp-dashboard-head {
		align-items: flex-start;
		flex-direction: column;
	}

	.vmp-portal-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vmp-notification-item,
	.vmp-staff-card,
	.vmp-shipping-rate {
		flex-direction: column;
	}
}

@media (max-width: 520px) {
	.mw-full-width-content > .vmp-shell,
	.market-weave-marketplace-page .entry-content > .vmp-shell,
	.market-weave-vendor-dashboard .vmp-shell {
		width: min(calc(100% - 24px), 1500px) !important;
	}

	.vmp-portal-main {
		padding-inline: 14px;
	}

	.vmp-portal-stats {
		grid-template-columns: 1fr;
	}
}
