.sp-property-ui {
	box-sizing: border-box;
	max-width: 100%;
}

.sp-property-ui * {
	box-sizing: border-box;
}

.sp-property-ui__rows {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 100%;
}

.sp-property-ui__row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 100%;
}

.sp-property-ui__row-main {
	flex: 1 1 auto;
	min-width: 0;
}

.sp-property-ui .ui-ctl {
	max-width: 100%;
}

.sp-property-ui .ui-ctl-w100 {
	width: 100%;
}

.sp-property-ui__add {
	margin-top: 8px;
}

.sp-property-ui__add {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 39px;
	height: 39px;
	padding: 0 18px;
	border: 0;
	border-radius: 4px;
	background: #bbed21;
	box-shadow: none;
	color: #535c69;
	cursor: pointer;
	font: 700 12px/39px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
	letter-spacing: 0;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.sp-property-ui__add:hover {
	background: #d2f95f;
	color: #535c69;
}

.sp-property-ui__add:active {
	background: #a8d713;
	color: #535c69;
}

.sp-property-ui__remove {
	flex: 0 0 auto;
	width: 39px;
	min-width: 39px;
	height: 39px;
	padding: 0;
}

.sp-property-ui__row-action {
	flex: 0 0 auto;
	width: 39px;
	min-width: 39px;
	height: 39px;
	padding: 0;
}

.sp-property-ui-content-blocks__row {
	align-items: flex-start;
}

.sp-property-ui-content-blocks__remove {
	margin-top: 44px;
}

.sp-property-ui-list .ui-ctl-multiple-select {
	width: min(100%, 420px);
}

.sp-property-ui-list__checks {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sp-property-ui-link__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: start;
	width: min(100%, 688px);
}

.sp-property-ui-link__control {
	width: 100%;
	display: flex;
	align-items: stretch;
	overflow: hidden;
	padding: 0 !important;
	background: #fff;
}

.sp-property-ui-link__protocol-wrap {
	flex: 0 0 auto;
	width: auto;
	min-width: 112px;
	margin: 0 !important;
	padding: 0 !important;
	border-right: 1px solid #dfe5ec;
}

.sp-property-ui-link__protocol {
	width: 112px;
	min-width: 112px;
	height: 100%;
	padding-right: 18px !important;
	padding-left: 12px !important;
	color: var(--ui-color-base-70, #6a737f);
	background-color: transparent !important;
}

.sp-property-ui-link__input {
	min-width: 0;
	height: 100%;
	background-color: transparent !important;
}

.sp-property-ui-link__description {
	grid-column: 1 / -1;
	width: 100%;
}

.sp-property-ui-tags {
	position: relative;
	width: min(100%, 688px);
}

.sp-property-ui-tags__control {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 3px;
	min-height: 40px;
	width: 100%;
	padding: 3px;
	border: 1px solid #c6cdd3;
	border-radius: var(--ui-border-radius-2xs, 4px);
	background: #fff;
	cursor: text;
	transition: border-color .12s linear;
}

.sp-property-ui-tags__control:focus-within {
	border-color: var(--ui-color-palette-blue-50, #2fc6f6);
}

.sp-property-ui-tags__chips {
	display: contents;
}

.sp-property-ui-tags__chip,
.sp-property-ui-tags-view__item {
	position: relative;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	height: 32px;
	max-width: 100%;
	padding: 0 28px 0 13px;
	border-radius: 2px;
	background: var(--ui-color-design-tinted-bg, #bdeefd);
	color: var(--ui-color-design-tinted-content, #1062b2);
	font: 400 15px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
	line-height: 32px;
	text-decoration: none;
	white-space: nowrap;
}

.sp-property-ui-tags__chip-title {
	overflow: hidden;
	text-overflow: ellipsis;
}

.sp-property-ui-tags__remove {
	position: absolute;
	right: 0;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 40px;
	margin: 0;
	border: 0;
	padding: 0;
	transform: translateY(-50%);
	border-radius: 0;
	background: transparent;
	color: #8aa4bd;
	cursor: pointer;
	font-size: 17px;
	line-height: 40px;
}

.sp-property-ui-tags__remove:hover {
	background: transparent;
	color: #2067b0;
}

.sp-property-ui-tags__input {
	flex: 1 1 140px;
	min-width: 90px;
	height: 32px;
	border: 0;
	outline: 0;
	padding: 0 3px;
	background: transparent;
	color: #535c69;
	font: 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
}

.sp-property-ui-tags__suggestions {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	width: min(100%, 360px);
	max-height: 220px;
	overflow-y: auto;
	padding: 4px 0;
	border: 1px solid #c6cdd3;
	border-radius: var(--ui-border-radius-2xs, 4px);
	background: #fff;
	box-shadow: 0 8px 22px rgba(83, 92, 105, .18);
}

.sp-property-ui-tags__suggestions[hidden] {
	display: none;
}

.sp-property-ui-tags__suggestion {
	width: 100%;
	border: 0;
	padding: 8px 12px;
	background: transparent;
	color: #333;
	cursor: pointer;
	font: 14px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
	text-align: left;
}

.sp-property-ui-tags__suggestion:hover,
.sp-property-ui-tags__suggestion:focus {
	background: #eef6ff;
	color: #2067b0;
	outline: 0;
}

.sp-property-ui-tags-view {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 3px;
	vertical-align: middle;
}

.sp-property-ui-tags-view__item {
	padding-right: 13px;
}

.sp-property-ui-tags-view__item:hover {
	background: #e0f0ff;
	color: #164d86;
	text-decoration: none;
}

.sp-property-legacy-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 688px;
}

.sp-property-legacy-filter .ui-ctl {
	flex: 1 1 auto;
}

.sp-property-legacy-filter-range {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
	max-width: 688px;
}

.sp-property-legacy-date-range {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 12px;
	max-width: 688px;
}

.sp-property-legacy-date-field {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}

.sp-property-legacy-date-field .ui-ctl {
	flex: 1 1 auto;
	min-width: 0;
}

.sp-property-legacy-date-field img.calendar-icon {
	flex: 0 0 auto;
	margin: 0;
}

.sp-property-legacy-checkbox {
	display: inline-flex;
	align-items: center;
	min-height: 39px;
	color: #535c69;
	font: 15px var(--ui-font-family-primary, var(--ui-font-family-helvetica));
}

@media (max-width: 640px) {
	.sp-property-ui-link__protocol-wrap {
		min-width: 92px;
	}

	.sp-property-ui-link__protocol {
		width: 92px;
		min-width: 92px;
	}

	.sp-property-legacy-filter-range {
		grid-template-columns: 1fr;
	}

	.sp-property-legacy-date-range {
		grid-template-columns: 1fr;
	}
}
