/* Shared category/service controls for owner and manager forms. */
.tp-service-catalog-field {
	display: grid;
	gap: 12px;
	width: 100%;
	grid-column: 1 / -1;
}

.tp-service-catalog-field > span {
	font-weight: 700;
	color: #0a2735;
}

.tp-service-catalog-field input[type="search"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 14px;
	border: 1px solid #b7c8d1;
	border-radius: 12px;
	background: #fff;
	color: #0a2735;
}

.tp-service-selected,
.tp-service-suggestions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.tp-service-selected {
	min-height: 48px;
	padding: 10px;
	border: 1px solid #bdebdc;
	border-radius: 12px;
	background: #f0fff9;
}

.tp-service-suggestions {
	max-height: 260px;
	overflow: auto;
	padding: 4px 2px 8px;
}

.tp-service-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 7px 12px;
	border: 1px solid #9dcdf0;
	border-radius: 999px;
	background: #f4faff;
	color: #004e72;
	cursor: pointer;
	font: inherit;
}

.tp-service-chip:hover,
.tp-service-chip:focus-visible {
	border-color: #004e72;
	background: #e5f4ff;
}

.tp-service-chip.is-selected {
	border-color: #32c792;
	background: #fff;
	color: #0a2735;
}

.tp-service-chip.is-selected button {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #eaf2f5;
	color: #566b78;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
}

.tp-service-empty {
	color: #6d7f89;
}

.tp-service-custom-field {
	display: grid;
	gap: 8px;
	margin-top: 4px;
	padding-top: 14px;
	border-top: 1px solid #dce6eb;
}

.tp-service-custom-field > span {
	font-weight: 700;
	color: #0a2735;
}

.tp-service-custom-field textarea {
	box-sizing: border-box;
	width: 100%;
	min-height: 132px;
	padding: 12px 14px;
	border: 1px solid #b7c8d1;
	border-radius: 12px;
	background: #fff;
	color: #0a2735;
	font: inherit;
	line-height: 1.9;
	resize: vertical;
}

.tp-service-custom-field textarea:focus {
	border-color: #004e72;
	box-shadow: 0 0 0 3px rgba(0, 78, 114, .1);
	outline: 0;
}

.tp-service-custom-field textarea.is-line-too-long {
	border-color: #c94f36;
}

[data-tp-service-line-count] {
	direction: ltr;
	display: inline-block;
}

[data-tp-service-line-count].is-over-limit {
	color: #c43f29;
	font-weight: 700;
}

[data-tp-category-child]:disabled,
.tp-field.is-disabled,
.tp-admin-field.is-disabled {
	opacity: .62;
}

@media (max-width: 640px) {
	.tp-service-suggestions { max-height: 220px; }
	.tp-service-chip { min-height: 38px; }
}
