/**
 * Per-post access restriction panel + modal.
 */
.arraysubs-restriction-panel {
	&__summary {
		margin: 0 0 12px;
		font-size: 12px;
	}

	&__row {
		display: flex;
		gap: 8px;
		justify-content: space-between;
		padding: 4px 0;
		border-bottom: 1px solid #f0f0f0;

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

		dt {
			flex: 0 0 auto;
			color: #757575;
		}

		dd {
			margin: 0;
			text-align: right;
			font-weight: 600;
			overflow-wrap: anywhere;
		}
	}

	&__empty {
		margin: 0 0 12px;
		font-size: 12px;
		color: #757575;
	}

	&__configure {
		width: 100%;
		justify-content: center;
		margin-top: 8px;
	}
}

.arraysubs-restriction-modal {
	&__actions {
		display: flex;
		justify-content: flex-end;
		gap: 8px;
		margin-top: 16px;
		padding-top: 16px;
		border-top: 1px solid #e0e0e0;
	}
}

.arraysubs-restriction-fields {
	.components-notice {
		margin: 12px 0;
		border-radius: 2px;
	}

	&__section {
		margin-top: 12px;
		padding: 12px;
		border: 1px solid var(--wp-components-color-gray-300, #c3c4c7);
		border-radius: 2px;
	}

	&__section-title {
		margin: 0 0 12px;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.4;
	}

	&__section-content {
		> .components-form-token-field,
		> .components-base-control,
		> .arraysubs-control-note {
			margin-bottom: 16px;
		}

		> :last-child {
			margin-bottom: 0;
		}
	}

	.arraysubs-control-note {
		margin: 0 0 12px;
		font-size: 12px;
		font-style: italic;
		color: #757575;
	}
}

.arraysubs-post-restriction-metabox {
	.components-base-control {
		margin-bottom: 12px;
	}
}
