.affr-review-details {
	.components-panel__body-title .components-panel__icon {
		color: #f0b849;
	}
}

.affr-review-details__section {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-bottom: 20px;

	& + & {
		border-top: 1px solid #e0e0e0;
		padding-top: 16px;
	}

	&:last-child {
		padding-bottom: 0;
	}
}

// Doubled class to beat the sidebar's own h3 style.
.affr-review-details__heading.affr-review-details__heading {
	margin: 0;
	text-transform: none;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	color: #1e1e1e;
}

.affr-review-details__field {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;

	> * {
		align-self: stretch;
	}

	> .components-button {
		align-self: flex-start;
	}
}

.affr-review-details__label {
	padding: 0;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 500;
	line-height: 1.4;
	text-transform: uppercase;
}

.affr-review-details__help {
	margin: -4px 0 0;
	font-size: 12px;
	color: #757575;
}

.affr-review-details__row {
	display: flex;
	align-items: center;
	gap: 4px;

	> .components-base-control {
		flex: 1;
		min-width: 0;
	}
}

.affr-review-details__link-actions {
	display: flex;
	align-items: center;
	gap: 8px;

	&:empty {
		display: none;
	}
}

.affr-review-details__link-url {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	font-size: 11px;
}

.affr-review-details__color {
	display: block;
}

.affr-review-details__color-toggle.components-button {
	width: 100%;
	gap: 8px;
	border: 1px solid #ddd;
	border-radius: 2px;

	code {
		margin-left: auto;
		padding: 0;
		background: none;
		font-size: 11px;
		color: #757575;
	}
}

.affr-review-details__color-popover {
	width: 260px;
	padding: 16px;
}
