/**
 * 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 {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.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-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-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-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: 18px;
	background: #fff;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.mpp-auth-card__header {
	padding: 28px 32px;
	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: 26px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

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

.mpp-auth-card__intro {
	color: #64748b;
}

.mpp-login-form input,
.mpp-register-form input {
	min-height: 44px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	padding: 10px 12px;
}

.mpp-login-form button,
.mpp-register-form button {
	width: 100%;
}

.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__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,
.mpp-register-form input {
	width: 100%;
	max-width: 100%;
}

.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;
}

@media (max-width: 700px) {
	.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: 16 / 10;
	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: cover;
}

.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;
}
