/* ServiceNest Marketplace blocks. Uses the ServiceNest theme classes when present and plain fallbacks otherwise. */
.snmk-service-grid .snest-grid,
.snmk-service-areas .snest-chips {
	display: grid;
	gap: 1rem;
}

.snmk-service-grid .snest-grid--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.snmk-service-grid .snest-grid--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.snmk-service-grid .snest-grid--4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 960px) {
	.snmk-service-grid .snest-grid--3,
	.snmk-service-grid .snest-grid--4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.snmk-service-grid .snest-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

.snmk-service-grid .snest-card {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	padding: 1.25rem;
	background: #fff;
}

.snmk-service-grid .snest-card h3 {
	margin: 0 0 0.5rem;
}

.snmk-service-grid .snest-card p {
	margin: 0;
}

.snmk-service-areas .snest-chips {
	display: flex;
	flex-wrap: wrap;
}

.snmk-service-areas .snest-chip {
	margin: 0;
	padding: 0.4em 1em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
}

.snmk-service-areas .snest-chip a {
	text-decoration: none;
}

.snmk-find__form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: stretch;
}

.snmk-find__form select {
	flex: 1 1 11rem;
	min-width: 0;
	padding: 0.7em 1em;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.3);
	background: #fff;
}

.snmk-find__form button {
	flex: 0 0 auto;
	border-radius: 999px;
	cursor: pointer;
}

.snmk-empty {
	opacity: 0.75;
}

.snmk-find__form input[type="text"] {
	flex: 1 1 11rem;
	min-width: 0;
	padding: 0.7em 1em;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.3);
	background: #fff;
	font: inherit;
}

/* Phase 2: search filters. */
.snmk-filters__form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: 0.75rem 1rem;
	align-items: end;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	background: #fff;
}

.snmk-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	min-width: 0;
}

.snmk-field label {
	font-size: 0.875rem;
	font-weight: 600;
}

.snmk-field input[type="text"],
.snmk-field input[type="email"],
.snmk-field input[type="tel"],
.snmk-field input[type="url"],
.snmk-field input[type="number"],
.snmk-field select,
.snmk-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.8em;
	border: 1px solid rgba(0, 0, 0, 0.3);
	border-radius: 8px;
	background: #fff;
	font: inherit;
	color: inherit;
}

.snmk-field--checks,
.snmk-field--check {
	gap: 0.4rem;
}

.snmk-field--checks label,
.snmk-field--check label,
.snmk-field--consent label {
	font-weight: 400;
	display: flex;
	gap: 0.4rem;
	align-items: center;
}

.snmk-field--submit button,
.snmk-form button[type="submit"] {
	cursor: pointer;
	white-space: nowrap;
}

.snmk-summary {
	margin: 0.75rem 0 0;
	font-weight: 600;
}

.snmk-summary--warn {
	color: #8a2d1a;
}

.snmk-summary--note {
	font-weight: 400;
	font-size: 0.875rem;
	opacity: 0.85;
}

/* Chips, badges, facts. */
.snmk-chips,
.snmk-badges,
.snmk-facts,
.snmk-related__list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.snmk-chips li a,
.snmk-related__list li a {
	display: inline-block;
	padding: 0.35em 0.9em;
	border-radius: 999px;
	background: rgba(0, 0, 0, 0.06);
	text-decoration: none;
}

.snmk-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.3em;
	padding: 0.2em 0.7em;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	background: #e3efe7;
	color: #174536;
}

.snmk-badge__icon {
	font-size: 0.8em;
}

.snmk-facts {
	font-size: 0.875rem;
	gap: 0.3rem 1rem;
}

.snmk-fact--price {
	font-weight: 700;
}

.snmk-card-meta__tagline {
	margin: 0.25rem 0 0;
	font-size: 0.9375rem;
}

.snmk-card-meta > * + * {
	margin-block-start: 0.5rem;
}

/* Profile sections. */
.snmk-section-title {
	font-size: 1.375rem;
	margin: 0 0 0.75rem;
}

.snmk-prices {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.snmk-price {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 0.15rem 1rem;
	padding: 0.7rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.snmk-price__value {
	font-weight: 700;
	text-align: right;
}

.snmk-price__note {
	grid-column: 1 / -1;
	font-size: 0.875rem;
	opacity: 0.8;
}

.snmk-small {
	font-size: 0.875rem;
	opacity: 0.85;
}

.snmk-portfolio {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
	gap: 0.75rem;
}

.snmk-portfolio img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 10px;
}

.snmk-portfolio--edit li {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	font-size: 0.875rem;
}

.snmk-contact {
	list-style: none;
	margin: 0 0 1rem;
	padding: 0;
	display: grid;
	gap: 0.4rem;
}

.snmk-contact span {
	font-weight: 600;
}

.snmk-profile-badges + *,
.snmk-profile-prices,
.snmk-profile-coverage,
.snmk-profile-portfolio,
.snmk-related {
	margin-block-start: 2rem;
}

/* Forms (application and dashboard). */
.snmk-form {
	display: grid;
	gap: 1rem;
}

.snmk-form__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: 1rem;
}

.snmk-fieldset {
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	margin: 0;
	padding: 0.75rem 1rem 1rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.snmk-fieldset legend {
	font-weight: 600;
	padding: 0 0.3rem;
}

.snmk-check {
	display: inline-flex;
	gap: 0.35rem;
	align-items: center;
}

.snmk-hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.snmk-notice {
	padding: 0.75rem 1rem;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.05);
}

.snmk-notice--ok {
	background: #e3efe7;
	color: #174536;
}

.snmk-notice--error {
	background: #f8e4de;
	color: #7a2715;
}

.snmk-pill {
	display: inline-block;
	padding: 0.1em 0.7em;
	border-radius: 999px;
	font-size: 0.8125rem;
	background: rgba(0, 0, 0, 0.08);
}

.snmk-pill--publish {
	background: #e3efe7;
	color: #174536;
}

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

.snmk-price-table {
	border-collapse: collapse;
	width: 100%;
	min-width: 36rem;
}

.snmk-price-table th {
	text-align: left;
	font-size: 0.8125rem;
	padding: 0.25rem;
}

.snmk-price-table td {
	padding: 0.25rem;
}

.snmk-price-table input,
.snmk-price-table select {
	width: 100%;
	box-sizing: border-box;
	padding: 0.45em 0.5em;
	border: 1px solid rgba(0, 0, 0, 0.3);
	border-radius: 6px;
	font: inherit;
}

.snmk-placeholder {
	padding: 1rem;
	border: 1px dashed rgba(0, 0, 0, 0.3);
	border-radius: 10px;
	opacity: 0.8;
}

/* Job requests and quotes (0.3.0). */
.snmk-request,
.snmk-customer-jobs,
.snmk-dashboard__jobs {
	display: grid;
	gap: 1rem;
}

.snmk-dashboard__jobs {
	margin-block-end: 2rem;
	padding-block-end: 2rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.snmk-steps {
	margin: 0;
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.75;
}

.snmk-request__picked,
.snmk-request__to,
.snmk-request__price {
	margin: 0;
}

.snmk-field input[type="date"],
.snmk-field input[type="file"] {
	max-width: 100%;
}

.snmk-question legend,
.snmk-question label {
	overflow-wrap: anywhere;
}

.snmk-job {
	display: grid;
	gap: 1rem;
	padding: 1.25rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 12px;
}

.snmk-job__head h2,
.snmk-job__head h3,
.snmk-job__head p {
	margin: 0 0 0.35rem;
	overflow-wrap: anywhere;
}

.snmk-job__facts {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 0.75rem 1.5rem;
	margin: 0;
}

.snmk-job__facts dt {
	font-size: 0.8125rem;
	font-weight: 600;
	opacity: 0.75;
}

.snmk-job__facts dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.snmk-job__details p,
.snmk-quote__msg p {
	margin: 0 0 0.5rem;
	overflow-wrap: anywhere;
}

.snmk-job__files,
.snmk-job-list,
.snmk-quotes {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.75rem;
}

.snmk-job-list__item {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.6rem;
	padding: 0.75rem 1rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 10px;
}

.snmk-job-list__item a {
	font-weight: 600;
	overflow-wrap: anywhere;
}

.snmk-job-list__item--new {
	border-color: currentcolor;
}

.snmk-quote {
	display: grid;
	gap: 0.5rem;
	padding: 1rem;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 10px;
}

.snmk-quote--accepted {
	border-width: 2px;
	border-color: #2f7a5c;
}

.snmk-quote--declined {
	opacity: 0.7;
}

.snmk-quote__head {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 1rem;
}

.snmk-quote__price {
	font-weight: 700;
	font-size: 1.125rem;
}

.snmk-confirm {
	margin: 0;
	font-size: 0.9375rem;
}

.snmk-job__cancel summary,
.snmk-job__more summary {
	cursor: pointer;
	font-weight: 600;
}

.snmk-job__more {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem 2rem;
}

.snmk-pill--job-open {
	background: #e5edf7;
	color: #183e66;
}

.snmk-pill--job-booked {
	background: #e3efe7;
	color: #174536;
}

.snmk-pill--job-cancelled,
.snmk-pill--job-expired,
.snmk-pill--job-closed {
	background: rgba(0, 0, 0, 0.08);
}

.snmk-price__request {
	grid-column: 1 / -1;
	justify-self: start;
	font-size: 0.875rem;
	font-weight: 600;
}
