.name-servers__dns {
	.name-servers__toggle {
		.components-base-control__field {
			justify-content: space-between;

			.components-toggle-control__label {
				font-size: $font-body;
			}
			.components-form-toggle {
				order: 1;
				margin-right: 0;
			}
		}
	}
	.name-servers__explanation {
		animation: appear 0.5s ease-in-out;
		color: var(--color-text-subtle);
		font-size: $font-body-small;
		font-style: italic;
		margin-bottom: 0;
	}
}

.name-servers__custom-nameservers-form {
	animation: appear 0.5s ease-in-out;
}

.name-servers__custom-nameservers-form-explanation {
	display: block;
	margin: 5px 0 1.5rem;
	font-size: $font-body-small;
	font-style: italic;
	color: var(--color-text-subtle);
}

.name-servers__custom-nameservers-row {
	margin-top: 10px;
	position: relative;

	.form-fieldset {
		margin-bottom: 0;
	}

	.form-text-input {
		padding-right: 38px;

		@include breakpoint-deprecated( "<480px" ) {
			padding-right: 35px;
		}
	}

	.button {
		position: absolute;
		right: 7px;
		top: 8px;

		@include breakpoint-deprecated( "<480px" ) {
			right: 4px;
		}
	}
}

.name-servers__custom-nameservers-row + .custom-name-servers-notice {
	margin-top: 8px;
}

.name-servers__custom-nameservers-form-buttons {
	display: flex;
	flex-wrap: wrap;
	column-gap: 16px;
	row-gap: 8px;
	margin-top: 24px;

	.button {
		margin: 0;
	}
}
