.template-container {
	background-color: var(--edirt-white);
	border: 1px solid var(--edirt-grey-4);
	border-radius: 8px;
	overflow: hidden;
}

.template {
	padding: 16px;
	border-bottom: 1px solid var(--edirt-grey-4);
	width: 100%;
	cursor: pointer;
}

.template:hover {
	background-color: var(--edirt-slightly-off-white);
}

.template-container .template:last-child {
	border-bottom: none;
}

.template-schema .template-section:last-child .template-section-cell {
	border-bottom: none;
}

.template-schema .template-section.template-open:last-child .template-section-cell {
	border-bottom: 1px solid var(--edirt-grey-4);
}

.template-schema .template-section:last-child .template-field-cell:last-child,
.template-schema .template-section:last-child .template-field-required-cell:last-child {
	border-bottom: none;
}

.template-section-cell {
	padding: 10px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	gap: 10px;
	border-bottom: 1px solid var(--edirt-grey-4);
	position: relative;
}

.template-section-cell .pill {
	width: 30px;
	margin-right: -2px;
}

.divider {
	height: 100%;
	width: 1px;
	background-color: var(--edirt-grey-4);
	position: absolute;
}

.divider.horizontal {
	width: 10px;
	height: 1px;
}

.template-section-cell .divider {
	left: 27px;
}

.template-section-widget {
	width: 24px;
	height: 24px;
	background-image: url('../img/widget-plus.svg');
	background-repeat: no-repeat;
	background-position: center;
	z-index: 2;
}

.template-section.template-open .template-section-widget {
	background-image: url('../img/widget-minus.svg');
}

.template-section-cell.template-off {
	background: var(--edirt-off-white);
}

.template-field-cell.view-mode {
	cursor: auto;
}

.template-field-cell.template-on:not(.view-mode) .divider {
	background-color: var(--edirt-white);
}

.template-section-cell.view-mode.template-off .template-section-label,
.template-field-cell.view-mode.template-off .template-field-label {
	color: var(--edirt-grey-2);
	opacity: 50%
}

.template-section-cell.template-on {
	background: var(--edirt-white);
}

.template-section-label {
	flex-grow: 1;
}

.template-field-cell, .template-field-required-cell {
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	display: none;
	padding: 10px 16px 10px 50px;
	position: relative;
	height: 38px;
}

.template-field-cell {
	cursor: pointer;
}

.template-field-cell, .template-field-required-cell {
	border-bottom: 1px solid var(--edirt-grey-4);
}

.template-section.template-open .template-field-cell,
.template-section.template-open .template-field-required-cell {
	display: flex;
}

.template-field-cell.template-off {
	background: var(--edirt-off-white);
}

.template-field-cell.template-on {
	background: var(--edirt-green-4);
}

.template-field-cell.view-mode.template-on {
	background: var(--edirt-white);
}

.template-field-label {
	padding-left: 20px;
}

.template-field-tick {
	width: 24px;
	height: 24px;
	background-image: url('../img/widget-empty.svg');
	background-repeat: no-repeat;
	background-position: center;
}

.template-field-cell.template-on .template-field-tick {
	background-image: url('../img/widget-ticked.svg');
}

.template-field-required-cell .template-field-tick,
.template-field-cell.view-mode.template-on .template-field-tick {
	width: 24px;
	height: 24px;
	background-image: url('../img/widget-tick.svg');
}

.template-field-cell.view-mode.template-off .template-field-tick {
	display: none;
}

/* Compare page */
.compare-heading {
	background-color: var(--edirt-off-white);
	border-radius: 8px;
}

#compare-heading-text {
	font-weight: 700;
	font-size: 14px;
	line-height: 20px;
}

.compare-left-side {
	padding-left: 18px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.compare-right-side {
	gap: 1px;
}

.compare-name {
	font-weight: 500;
	font-size: 12px;
	line-height: 18px;
	text-align: center;
	background-color: var(--edirt-grey-3);
	padding-top: 10px;
	padding-bottom: 10px;
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	margin-top: 10px;
}

.compare-table .template-container {
	background-color: var(--edirt-white);
	border-left: none;
	border-radius: 0;
}

.compare-table .compare-container:first-of-type .template-container {
	border-left: 1px solid var(--edirt-grey-4);
	border-radius: 8px 0 0 8px;
	overflow: hidden;
}

.compare-table .compare-container:last-of-type .template-container {
	border-radius: 0 8px 8px 0;
	overflow: hidden;
}

.compare-table .template-section-cell {
	cursor: default;
}
