/**
 * MarketplacePress plugin fallback frontend styles.
 */

.mpp-page,
.mpp-submit-listing,
.mpp-dashboard,
.mpp-search-form,
.mpp-search-results {
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px;
}

.mpp-listing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 20px;
}

.mpp-listing-card {
	overflow: hidden;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.mpp-listing-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	background: #f1f5f9;
}

.mpp-listing-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.mpp-listing-card__media picture {
	display: block;
	width: 100%;
	height: 100%;
}

.mpp-listing-card__placeholder {
	display: grid;
	height: 100%;
	place-items: center;
	justify-items: center;
	gap: 10px;
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.mpp-listing-card__placeholder-icon,
.mpp-listing-detail__placeholder-icon {
	display: block;
	width: 52px;
	height: 38px;
	border: 3px solid rgba(34, 113, 177, 0.22);
	border-radius: 12px;
	background: radial-gradient(circle at 72% 32%, rgba(34, 113, 177, 0.28) 0 10%, transparent 11%);
}

.mpp-listing-detail__image {
	display: grid;
	place-items: center;
	overflow: hidden;
	background: #f8fafc;
	aspect-ratio: 4 / 3;
}

.mpp-listing-detail__image picture,
.mpp-listing-detail__image img {
	display: block;
	width: 100%;
	height: 100%;
}

.mpp-listing-detail__image img {
	object-fit: contain;
	object-position: center;
}

.mpp-listing-detail__gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
	margin-top: -12px;
	margin-bottom: 24px;
}

.mpp-listing-detail__gallery-controls {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 10px;
}

.mpp-gallery-control,
.mpp-gallery-thumb {
	cursor: pointer;
}

.mpp-gallery-control {
	width: 34px;
	height: 34px;
	border: 1px solid #dbe4ee;
	border-radius: 999px;
	background: #fff;
	color: #0f172a;
	font-size: 20px;
	line-height: 1;
}

.mpp-gallery-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	background: transparent;
	overflow: hidden;
}

.mpp-gallery-thumb.is-active,
.mpp-gallery-thumb:focus {
	border-color: #0f766e;
	outline: none;
}

.mpp-listing-detail__gallery picture,
.mpp-listing-detail__gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
}

.mpp-listing-detail__gallery img {
	height: 100%;
	object-fit: cover;
	object-position: center;
	border-radius: 6px;
}

.mpp-listing-related {
	margin-top: 34px;
}

.mpp-listing-related h2 {
	margin: 0 0 16px;
	font-size: 1.25rem;
}

.mpp-internal-links {
	margin-top: 28px;
}

.mpp-internal-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpp-internal-links a {
	display: inline-flex;
	padding: 8px 12px;
	border: 1px solid #dbe4ee;
	border-radius: 999px;
	background: #fff;
	text-decoration: none;
}

.mpp-marketplace-archive.is-loading {
	opacity: 0.72;
	pointer-events: none;
}

.mpp-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mpp-seller-box__since,
.mpp-seller-box__profile {
	font-size: 0.92rem;
}

.mpp-listing-card__body,
.mpp-listing-detail,
.mpp-submission-form,
.mpp-category-picker,
.mpp-dashboard-listings,
.mpp-search-form {
	display: grid;
	gap: 14px;
}

.mpp-listing-card__body {
	padding: 16px;
}

.mpp-fields {
	display: grid;
	gap: 8px;
}

.mpp-field {
	display: flex;
	gap: 8px;
	justify-content: space-between;
	font-size: 0.95rem;
}

.mpp-field__label {
	color: #475569;
}

.mpp-listing-detail .mpp-fields--single {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 8px;
	margin-top: 0;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
}

.mpp-listing-detail .mpp-fields--single .mpp-field {
	display: grid;
	gap: 2px;
	min-width: 0;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	font-size: 13px;
	line-height: 1.25;
}

.mpp-listing-detail .mpp-fields--single .mpp-field__label {
	color: #64748b;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
}

.mpp-listing-detail .mpp-fields--single .mpp-field__value {
	overflow-wrap: anywhere;
	color: #0f172a;
	font-weight: 800;
	text-align: left;
}

@media (max-width: 760px) {
	.mpp-listing-detail .mpp-fields--single {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		padding: 10px;
	}

	.mpp-listing-detail .mpp-fields--single .mpp-field {
		padding: 9px;
		font-size: 12px;
	}

}

.mpp-submission-form input[type="text"],
.mpp-submission-form input[type="email"],
.mpp-submission-form input[type="tel"],
.mpp-submission-form input[type="url"],
.mpp-submission-form input[type="number"],
.mpp-submission-form input[type="file"],
.mpp-submission-form select,
.mpp-submission-form textarea,
.mpp-search-form input,
.mpp-search-form select {
	width: 100%;
	max-width: 100%;
}

.mpp-submission-notice,
.mpp-dashboard-notice,
.mpp-empty-state,
.mpp-dashboard-empty {
	padding: 14px 16px;
	border: 1px solid #cbd5e1;
	border-left: 4px solid #2271b1;
	background: #f8fafc;
}

.mpp-submission-notice--error,
.mpp-dashboard-notice--error {
	border-left-color: #b32d2e;
}

.mpp-submission-notice--success,
.mpp-dashboard-notice--success {
	border-left-color: #008a20;
}

.mpp-dashboard-table {
	width: 100%;
	border-collapse: collapse;
}

.mpp-dashboard-table th,
.mpp-dashboard-table td {
	padding: 10px;
	border-bottom: 1px solid #e2e8f0;
	text-align: left;
}

.mpp-dashboard-action--danger {
	color: #b32d2e;
}

.mpp-contact-settings,
.mpp-contact-actions {
	display: grid;
	gap: 12px;
	margin: 20px 0;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
}

.mpp-contact-actions__title {
	margin: 0;
	font-size: 1.25rem;
}

.mpp-contact-actions__name {
	margin: 0;
	color: #475569;
	font-weight: 700;
}

.mpp-contact-actions__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.mpp-contact-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
}

.mpp-contact-action--whatsapp {
	background: #128c7e;
}

.mpp-contact-action--email {
	background: #334155;
}

.mpp-favorite-button,
.mpp-report-form button,
.mpp-review-form button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 0;
	border-radius: 6px;
	background: #2271b1;
	color: #fff;
	text-decoration: none;
	cursor: pointer;
}

.mpp-favorite-button {
	margin: 0 16px 16px;
}

.mpp-favorite-button.is-saved {
	background: #008a20;
}

.mpp-favorite-button.is-disabled {
	background: #64748b;
}

.mpp-seller-box,
.mpp-reviews,
.mpp-report-listing,
.mpp-favorites,
.mpp-seller-profile {
	display: grid;
	gap: 12px;
	margin: 20px 0;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
}

.mpp-seller-box h2,
.mpp-reviews h2,
.mpp-report-listing h2,
.mpp-favorites h2,
.mpp-seller-profile h2 {
	margin: 0;
}

.mpp-rating-summary {
	color: #475569;
	font-weight: 700;
}

.mpp-review-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding-left: 20px;
}

.mpp-report-form,
.mpp-review-form {
	display: grid;
	gap: 12px;
}

.mpp-report-form select,
.mpp-report-form textarea,
.mpp-review-form select,
.mpp-review-form textarea {
	width: 100%;
	max-width: 100%;
}

.mpp-featured-badge {
	display: inline-flex;
	width: fit-content;
	margin: 10px 16px 0;
	padding: 4px 8px;
	border-radius: 999px;
	background: #f59e0b;
	color: #111827;
	font-size: 0.82rem;
	font-weight: 700;
}

.mpp-home-section {
	margin: 28px 0;
}

.mpp-homepage-sections {
	display: grid;
	gap: 34px;
	margin: 28px 0;
}

.mpp-homepage-section {
	display: grid;
	gap: 16px;
}

.mpp-homepage-section__header {
	display: flex;
	gap: 18px;
	align-items: end;
	justify-content: space-between;
}

.mpp-homepage-section__copy {
	display: grid;
	gap: 6px;
	min-width: 0;
}

.mpp-homepage-section__copy h2,
.mpp-homepage-section__copy p {
	margin: 0;
}

.mpp-homepage-section__copy h2 {
	font-size: clamp(1.35rem, 2vw, 1.85rem);
	line-height: 1.2;
}

.mpp-homepage-section__copy h2 a {
	color: inherit;
	text-decoration: none;
}

.mpp-homepage-section__copy p {
	max-width: 720px;
	color: #64748b;
	line-height: 1.5;
}

.mpp-homepage-section__view-all {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 14px;
	border: 1px solid #0f6b5f;
	border-radius: 999px;
	background: #fff;
	color: #0f6b5f;
	font-weight: 800;
	text-decoration: none;
}

.mpp-homepage-section__view-all:hover,
.mpp-homepage-section__view-all:focus {
	background: #0f6b5f;
	color: #fff;
}

.mpp-homepage-section__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
	.mpp-homepage-section__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.mpp-homepage-section__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.mpp-homepage-section__view-all {
		width: 100%;
	}

	.mpp-homepage-section__grid {
		grid-template-columns: 1fr;
	}
}

.mpp-listing-card--home-section .mpp-listing-card__excerpt,
.mpp-listing-card--home-section .mpp-listing-card__datetime {
	display: none;
}

@media (max-width: 767px) {
	.home .mpp-home-sections-band .mpp-listing-card__media,
	.home .mpp-homepage-sections .mpp-listing-card__media {
		display: none !important;
	}

	.home .mpp-home-sections-band .mpp-listing-card,
	.home .mpp-homepage-sections .mpp-listing-card {
		display: block;
		border-color: #e2e8f0;
		border-radius: 8px;
		background: #fff;
		box-shadow: none;
	}

	.home .mpp-home-sections-band .mpp-listing-card__body,
	.home .mpp-homepage-sections .mpp-listing-card__body {
		display: flex;
		flex-direction: column;
		gap: 4px;
		padding: 10px 12px;
	}

	.home .mpp-home-sections-band .mpp-fields,
	.home .mpp-home-sections-band .mpp-rating-summary,
	.home .mpp-home-sections-band .mpp-featured-badge,
	.home .mpp-home-sections-band .mpp-verified-badge,
	.home .mpp-home-sections-band .mpp-favorite-button,
	.home .mpp-homepage-sections .mpp-fields,
	.home .mpp-homepage-sections .mpp-rating-summary,
	.home .mpp-homepage-sections .mpp-featured-badge,
	.home .mpp-homepage-sections .mpp-verified-badge,
	.home .mpp-homepage-sections .mpp-favorite-button {
		display: none !important;
	}

	.home .mpp-home-sections-band .mpp-listing-card__title,
	.home .mpp-homepage-sections .mpp-listing-card__title {
		order: 1;
		margin: 0 !important;
		font-size: 15px !important;
		font-weight: 600 !important;
		line-height: 1.35 !important;
	}

	.home .mpp-home-sections-band .mpp-listing-card__title a,
	.home .mpp-homepage-sections .mpp-listing-card__title a {
		display: -webkit-box !important;
		-webkit-box-orient: vertical !important;
		-webkit-line-clamp: 2 !important;
		overflow: hidden;
		color: #17202a;
		text-decoration: none;
		overflow-wrap: anywhere;
	}

	.home .mpp-home-sections-band .mpp-listing-card--home-section .mpp-listing-card__excerpt,
	.home .mpp-homepage-sections .mpp-listing-card--home-section .mpp-listing-card__excerpt {
		display: -webkit-box !important;
		order: 2;
		margin: 1px 0 0;
		color: #64748b;
		font-size: 12.5px;
		line-height: 1.35;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		overflow: hidden;
	}

	.home .mpp-home-sections-band .mpp-listing-card__meta,
	.home .mpp-homepage-sections .mpp-listing-card__meta {
		display: flex !important;
		order: 3;
		flex-wrap: wrap;
		gap: 3px 6px;
		margin: 1px 0 0;
		color: #64748b;
		font-size: 11.5px;
		font-weight: 600;
		line-height: 1.3;
	}

	.home .mpp-home-sections-band .mpp-listing-card__meta span,
	.home .mpp-homepage-sections .mpp-listing-card__meta span {
		padding: 0;
		border: 0;
		background: transparent;
		color: inherit;
		font: inherit;
	}

	.home .mpp-home-sections-band .mpp-listing-card__meta span + span::before,
	.home .mpp-homepage-sections .mpp-listing-card__meta span + span::before {
		content: "•";
		margin-right: 6px;
		color: #94a3b8;
	}

	.home .mpp-home-sections-band .mpp-listing-card--home-section .mpp-listing-card__datetime,
	.home .mpp-homepage-sections .mpp-listing-card--home-section .mpp-listing-card__datetime {
		display: block !important;
		order: 4;
		margin: 0;
		color: #64748b;
		font-size: 11.5px;
		font-weight: 500;
		line-height: 1.3;
	}

	.home .mpp-home-sections-band .mpp-listing-card__value,
	.home .mpp-homepage-sections .mpp-listing-card__value {
		display: flex !important;
		order: 5;
		min-height: 0;
		margin: 1px 0 0;
		color: #0f6b5f;
		font-size: 14px;
		font-weight: 800;
		line-height: 1.25;
	}

	.home .mpp-home-sections-band .mpp-listing-card__price-old,
	.home .mpp-home-sections-band .mpp-price-old,
	.home .mpp-homepage-sections .mpp-listing-card__price-old,
	.home .mpp-homepage-sections .mpp-price-old {
		display: none !important;
	}
}

.mpp-category-grid__items {
	display: grid;
	grid-template-columns: repeat(var(--mpp-columns, 4), minmax(0, 1fr));
	gap: 16px;
}

.mpp-category-card {
	display: grid;
	gap: 8px;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
	color: inherit;
	text-decoration: none;
}

.mpp-category-card__banner {
	width: 100%;
	aspect-ratio: 16 / 7;
	object-fit: cover;
	border-radius: 6px;
}

.mpp-category-card__icon {
	display: inline-grid;
	width: 46px;
	height: 42px;
	place-items: center;
	padding: 0 10px;
	border-radius: 12px;
	background: #eef7f5;
	color: var(--mpp-category-color, #2271b1);
	font-size: 0.82rem;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpp-category-card__icon:empty::before {
	content: "";
	display: block;
	width: 18px;
	height: 14px;
	border: 2px solid currentColor;
	border-top-width: 6px;
	border-radius: 4px;
	opacity: 0.9;
}

.mpp-message-seller,
.mpp-messages,
.mpp-account,
.mpp-login-form,
.mpp-register-form,
.mpp-notifications {
	display: grid;
	gap: 14px;
	margin: 20px 0;
	padding: 16px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff;
}

.mpp-account {
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}

.mpp-auth-card {
	overflow: hidden;
	border: 1px solid #dbe5e2;
	border-radius: 20px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.11);
}

.mpp-auth-card__header {
	padding: 30px 34px;
	background: linear-gradient(135deg, #0f6b5f, #1d4ed8);
	color: #fff;
}

.mpp-auth-card__header p {
	margin: 0 0 8px;
	font-weight: 800;
	text-transform: uppercase;
}

.mpp-auth-card__header h1 {
	margin: 0;
	color: #fff;
}

.mpp-auth-card__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mpp-auth-card__panel {
	margin: 0;
	padding: 30px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.mpp-auth-card__panel h2 {
	margin: 0 0 8px;
	color: #0f172a;
	font-size: 1.45rem;
	line-height: 1.2;
}

.mpp-auth-card__panel + .mpp-auth-card__panel {
	border-left: 1px solid #e2e8f0;
}

.mpp-auth-card__intro {
	margin: 0 0 18px;
	color: #64748b;
	line-height: 1.5;
}

.mpp-auth-card__trust {
	margin: 4px 0 0;
	color: #64748b;
	font-size: 0.9rem;
	line-height: 1.45;
	text-align: center;
}

.mpp-login-form input:not([type="checkbox"]):not([type="hidden"]),
.mpp-register-form input:not([type="checkbox"]):not([type="hidden"]) {
	min-height: 44px;
	width: 100%;
	max-width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 12px;
	background: #fff;
}

.mpp-login-form button,
.mpp-register-form button {
	width: 100%;
	min-height: 46px;
	border: 0;
	background: linear-gradient(135deg, #0f6b5f, #1d4ed8);
	color: #fff;
	cursor: pointer;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.mpp-login-form button:hover,
.mpp-login-form button:focus,
.mpp-register-form button:hover,
.mpp-register-form button:focus {
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(15, 107, 95, 0.2);
}

.mpp-login-form p,
.mpp-register-form p {
	margin: 0;
}

.mpp-login-form p:not(.mpp-checkbox-field) > label,
.mpp-register-form p:not(.mpp-checkbox-field) > label {
	display: block;
	margin: 0 0 6px;
	color: #0f172a;
	font-weight: 800;
}

.mpp-checkbox-field label {
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	margin: 0;
	color: #334155;
	font-weight: 700;
	line-height: 1.45;
	cursor: pointer;
}

.mpp-checkbox-field input[type="checkbox"] {
	flex: 0 0 auto;
	width: 17px;
	height: 17px;
	min-height: 0;
	margin: 2px 0 0;
	accent-color: #0f6b5f;
}

.mpp-checkbox-field a {
	color: #0f6b5f;
	font-weight: 800;
}

.mpp-form-help {
	display: block;
	margin-top: 6px;
	color: #64748b;
	font-size: 0.88rem;
}

.mpp-forgot-password {
	margin-top: 16px;
	padding-top: 14px;
	border-top: 1px solid #e2e8f0;
}

.mpp-forgot-password summary {
	cursor: pointer;
	color: #0f6b5f;
	font-weight: 800;
}

@media (max-width: 760px) {
	.mpp-auth-card__grid {
		grid-template-columns: 1fr;
	}

	.mpp-auth-card__header,
	.mpp-auth-card__panel {
		padding: 24px;
	}

	.mpp-auth-card__panel + .mpp-auth-card__panel {
		border-top: 1px solid #e2e8f0;
		border-left: 0;
	}
}

.mpp-message-form,
.mpp-login-form form,
.mpp-forgot-password-form,
.mpp-register-form {
	display: grid;
	gap: 12px;
}

.mpp-message-form textarea,
.mpp-login-form input:not([type="checkbox"]):not([type="hidden"]),
.mpp-register-form input:not([type="checkbox"]):not([type="hidden"]) {
	width: 100%;
	max-width: 100%;
}

.mpp-dashboard__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 16px;
}

.mpp-dashboard__nav a,
.mpp-account-profile__inbox {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 8px 12px;
	border: 1px solid #cce4de;
	border-radius: 8px;
	background: #eef7f5;
	color: #0f6b5f;
	font-weight: 800;
	text-decoration: none;
}

.mpp-dashboard__nav a.is-active {
	border-color: #0f6b5f;
	background: #0f6b5f;
	color: #fff;
}

.mpp-message-list,
.mpp-notification-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpp-message-item,
.mpp-notification-list li {
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
}

.mpp-messages__header,
.mpp-message-thread__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
}

.mpp-messages__header h2,
.mpp-message-thread__header h3 {
	margin: 0;
}

.mpp-messages__eyebrow,
.mpp-message-thread__header p {
	margin: 0 0 4px;
	color: #64748b;
	font-size: 0.86rem;
	font-weight: 700;
}

.mpp-messages__count,
.mpp-thread-row__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: #0f6b5f;
	color: #fff;
	font-size: 0.78rem;
	font-weight: 800;
	line-height: 1;
}

.mpp-messages__count {
	padding: 6px 10px;
}

.mpp-thread-list {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mpp-thread-row {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr) auto;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mpp-thread-row:hover,
.mpp-thread-row:focus {
	border-color: #b7d8d1;
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.mpp-thread-row--unread {
	border-color: #9fd4c9;
	background: #f2fbf8;
}

.mpp-thread-row__thumb,
.mpp-message-thread__thumb {
	display: block;
	overflow: hidden;
	width: 58px;
	height: 58px;
	border-radius: 8px;
	background: #eef2f7;
}

.mpp-thread-row__thumb img,
.mpp-message-thread__thumb img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
}

.mpp-thread-row__thumb:empty::before,
.mpp-message-thread__thumb--empty::before {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #edf7f5, #eef2ff);
}

.mpp-thread-row__main {
	display: grid;
	min-width: 0;
	gap: 4px;
}

.mpp-thread-row__main strong,
.mpp-thread-row__main span,
.mpp-thread-row__main small {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpp-thread-row__main strong {
	color: #111827;
	font-weight: 800;
}

.mpp-thread-row__main span {
	color: #334155;
	font-weight: 700;
}

.mpp-thread-row__main small,
.mpp-thread-row__meta {
	color: #64748b;
	font-size: 0.86rem;
}

.mpp-thread-row__meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	white-space: nowrap;
}

.mpp-thread-row__badge {
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
}

.mpp-messages__back {
	width: fit-content;
	color: #0f6b5f;
	font-weight: 800;
	text-decoration: none;
}

.mpp-message-thread {
	display: grid;
	gap: 16px;
}

.mpp-message-thread__header {
	padding: 14px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #f8fafc;
}

.mpp-message-thread__listing {
	display: grid;
	grid-template-columns: 58px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
}

.mpp-message-thread__listing-text {
	display: grid;
	min-width: 0;
	gap: 3px;
}

.mpp-message-thread__listing-text span {
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 800;
	text-transform: uppercase;
}

.mpp-message-thread__listing-text strong,
.mpp-message-thread__listing-text a {
	display: block;
	overflow: hidden;
	color: #111827;
	font-weight: 800;
	text-decoration: none;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mpp-message-thread__header a {
	color: #111827;
	text-decoration: none;
}

.mpp-message-thread__header time {
	color: #64748b;
	font-size: 0.84rem;
	white-space: nowrap;
}

.mpp-messages .mpp-message-list .mpp-message-item {
	display: flex;
	padding: 0;
	border: 0;
	background: transparent;
}

.mpp-messages .mpp-message-item--sent {
	justify-content: flex-end;
}

.mpp-messages .mpp-message-item--received {
	justify-content: flex-start;
}

.mpp-message-item__bubble {
	max-width: min(72%, 640px);
	padding: 11px 13px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	color: #172033;
	overflow-wrap: anywhere;
}

.mpp-message-item--sent .mpp-message-item__bubble {
	border-color: #0f6b5f;
	background: #0f6b5f;
	color: #fff;
}

.mpp-message-item__bubble strong {
	display: block;
	margin-bottom: 4px;
	font-size: 0.84rem;
}

.mpp-message-item__bubble p {
	margin: 0;
	line-height: 1.45;
	white-space: pre-wrap;
}

.mpp-message-item__bubble small {
	display: block;
	margin-top: 6px;
	color: #64748b;
	font-size: 0.78rem;
}

.mpp-message-item--sent .mpp-message-item__bubble small,
.mpp-message-item--sent .mpp-message-item__bubble strong {
	color: rgba(255, 255, 255, 0.82);
}

.mpp-message-quick-replies {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.mpp-message-form .mpp-message-quick-replies button {
	width: auto;
	min-height: 34px;
	padding: 7px 10px;
	border: 1px solid #cce4de;
	border-radius: 999px;
	background: #eef7f5;
	color: #0f6b5f;
	box-shadow: none;
	font-size: 0.84rem;
	font-weight: 800;
}

.mpp-message-form__status {
	padding: 10px 12px;
	border: 1px solid #cce4de;
	border-radius: 8px;
	background: #eef7f5;
	color: #0f6b5f;
	font-size: 0.9rem;
	font-weight: 700;
}

.mpp-message-form__status.is-error {
	border-color: #fecaca;
	background: #fef2f2;
	color: #b42318;
}

.mpp-chat-bottom {
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 700px) {
	.mpp-messages__header,
	.mpp-message-thread__header {
		display: grid;
	}

	.mpp-thread-row {
		grid-template-columns: 48px minmax(0, 1fr);
	}

	.mpp-thread-row__meta {
		grid-column: 1 / -1;
		justify-content: space-between;
	}

	.mpp-thread-row__thumb,
	.mpp-message-thread__thumb {
		width: 48px;
		height: 48px;
	}

	.mpp-message-item__bubble {
		max-width: 88%;
	}

	.mpp-dashboard-table thead {
		display: none;
	}

	.mpp-dashboard-table tr,
	.mpp-dashboard-table td {
		display: block;
	}

	.mpp-dashboard-table td::before {
		content: attr(data-label) ": ";
		font-weight: 700;
	}

	.mpp-contact-action {
		width: 100%;
	}
}

/* Fallback polish for sites not using MarketplacePress Theme. */
.mpp-listing-card {
	position: relative;
	display: flex;
	min-height: 100%;
	flex-direction: column;
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.mpp-listing-card__media {
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #edf7f5, #eef2ff);
}

.mpp-listing-card__body {
	flex: 1;
}

.mpp-listing-detail__image {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: linear-gradient(135deg, #edf7f5, #eef2ff);
}

.mpp-listing-detail__placeholder {
	display: grid;
	height: 100%;
	gap: 12px;
	place-items: center;
	align-content: center;
	color: #64748b;
	font-size: 0.82rem;
	font-weight: 800;
	text-transform: uppercase;
}

.mpp-listing-detail__image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.mpp-search-form,
.mpp-submit-listing,
.mpp-edit-listing,
.mpp-dashboard,
.mpp-seller-box,
.mpp-reviews,
.mpp-report-listing,
.mpp-message-seller,
.mpp-messages,
.mpp-notifications,
.mpp-favorites {
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.mpp-contact-action,
.mpp-favorite-button,
.mpp-report-form button,
.mpp-review-form button,
.mpp-message-form button,
.mpp-login-form button,
.mpp-register-form button {
	border-radius: 8px;
	font-weight: 800;
}

.mpp-listing-detail .mpp-featured-badge {
	position: static;
	margin: 0;
}

.mpp-verified-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	width: fit-content;
	max-width: 100%;
	padding: 4px 8px;
	border: 1px solid #b7ead2;
	border-radius: 999px;
	background: #ecfdf3;
	color: #027a48;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	vertical-align: middle;
	white-space: nowrap;
}

.mpp-verified-badge__tick {
	display: inline-grid;
	width: 14px;
	height: 14px;
	place-items: center;
	border-radius: 50%;
	background: #12b76a;
	color: #fff;
	font-size: 10px;
	line-height: 1;
}

.mpp-verified-badge__tick::before {
	content: "\2713";
}

.mpp-listing-card .mpp-verified-badge--card {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	box-shadow: 0 8px 18px rgba(2, 122, 72, 0.14);
}

.mpp-listing-detail__badges,
.mpp-seller-box__identity,
.mpp-contact-actions__name {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.mpp-verified-badge--dashboard {
	margin-left: 8px;
}

.mpp-compact-search {
	margin: 0 0 24px;
}

.mpp-compact-search .mpp-search-form {
	display: block;
	margin: 0;
	padding: 14px;
	border-radius: 12px;
}

.mpp-compact-search .mpp-search-form__grid {
	display: grid;
	grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) auto;
	gap: 10px;
	align-items: end;
	width: 100%;
}

.mpp-compact-search .mpp-search-form__actions {
	margin: 0;
}

.mpp-compact-search .mpp-search-form button {
	height: 42px;
	white-space: nowrap;
}

@media (min-width: 981px) {
	.mpp-search-form {
		display: block;
		width: 100%;
	}

	.mpp-search-form .mpp-search-form__grid {
		display: grid;
		grid-template-columns: minmax(180px, 1.2fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(180px, 1fr) auto;
		gap: 10px;
		align-items: end;
		width: 100%;
	}

	.mpp-search-form .mpp-search-form__field,
	.mpp-search-form .mpp-search-form__actions {
		min-width: 0;
		margin: 0;
	}

	.mpp-search-form .mpp-search-form__actions {
		align-self: end;
	}

	.mpp-search-form button {
		height: 42px;
		white-space: nowrap;
	}
}

.mpp-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	align-items: center;
	margin: 0 0 14px;
	color: #64748b;
	font-size: 13px;
	font-weight: 700;
}

.mpp-breadcrumb a {
	color: #0f6b5f;
	text-decoration: none;
}

.mpp-breadcrumb__separator {
	color: #94a3b8;
}

@media (max-width: 760px) {
	.mpp-compact-search .mpp-search-form,
	.mpp-compact-search .mpp-search-form__grid {
		grid-template-columns: 1fr;
	}

	.mpp-compact-search .mpp-search-form button {
		width: 100%;
	}
}
.mpp-location-field {
	display: grid;
	position: relative;
	gap: 6px;
}

.mpp-location-field__search {
	width: 100%;
}

.mpp-location-field__results {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	left: 0;
	z-index: 20;
	max-height: 240px;
	overflow: auto;
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.mpp-location-field__option {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 0;
	background: transparent;
	color: #0f172a;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mpp-search-form .mpp-location-field__option,
.mpp-archive-filters .mpp-location-field__option,
.mpp-submission-form .mpp-location-field__option,
.mpp-edit-listing .mpp-location-field__option {
	border: 0;
	background: transparent;
	color: #0f172a;
	box-shadow: none;
	text-align: left;
}

.mpp-location-field__option:hover,
.mpp-location-field__option:focus,
.mpp-location-field__option.is-selected,
.mpp-search-form .mpp-location-field__option:hover,
.mpp-search-form .mpp-location-field__option:focus,
.mpp-search-form .mpp-location-field__option.is-selected,
.mpp-archive-filters .mpp-location-field__option:hover,
.mpp-archive-filters .mpp-location-field__option:focus,
.mpp-archive-filters .mpp-location-field__option.is-selected,
.mpp-submission-form .mpp-location-field__option:hover,
.mpp-submission-form .mpp-location-field__option:focus,
.mpp-submission-form .mpp-location-field__option.is-selected,
.mpp-edit-listing .mpp-location-field__option:hover,
.mpp-edit-listing .mpp-location-field__option:focus,
.mpp-edit-listing .mpp-location-field__option.is-selected {
	background: #f5f5f5;
	color: #111827;
}
