@import "@wordpress/base-styles/mixins";
@import "@wordpress/base-styles/breakpoints";
@import "@wordpress/base-styles/colors";

.add-dns-record {
	.add-dns-record__sidebar {
		display: none;
		margin-top: 20px;
		font-size: $font-body-small;

		div {
			padding: 24px 16px;
			background-color: var(--color-neutral-0);

			strong {
				display: block;
				margin-bottom: 4px;
			}
			p {
				margin: 0;
				color: var(--color-neutral-50);
			}
		}

		@include break-mobile {
			display: block;
		}
	}

	.add-dns-record__main {
		padding: 0 16px;
	}

	@include break-xlarge {
		@include grid-row( 1, 1 );
		@include grid-column( 1, 12 );
		@include display-grid;
		@include grid-template-columns( 12, 24px, 1fr );
		grid-gap: 24px 48px;
		.add-dns-record__main {
			@include grid-column( 1, 8 );

			padding: 0;
		}
		.add-dns-record__sidebar {
			@include grid-column( 9, 4 );

			margin-top: 0;

			div {
				padding: 24px;
			}
		}
		.add-dns-record__fullwidth {
			@include grid-column( 1, 12 );
		}
	}

	.dns__form {
		border-top: none;
		padding-top: 0;

		.is-hidden {
			display: none;
		}
	}

	.form-setting-explanation {
		margin: 8px 0;
		font-style: normal;
	}

	// make the DNS record type `select` expand to full width of the form
	.dns__add-new-select-type {
		width: 100%;
	}

	.dns__form-buttons {
		margin-top: 32px;

		.form-button {
			margin-right: 16px;

			&:last-child {
				margin-right: 0;
			}
		}
	}

	.form-select {
		background:
			var(--color-surface)
			url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+PHN2ZyB3aWR0aD0iMjBweCIgaGVpZ2h0PSIyMHB4IiB2aWV3Qm94PSIwIDAgMjAgMjAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sbnM6c2tldGNoPSJodHRwOi8vd3d3LmJvaGVtaWFuY29kaW5nLmNvbS9za2V0Y2gvbnMiPiAgICAgICAgPHRpdGxlPmFycm93LWRvd248L3RpdGxlPiAgICA8ZGVzYz5DcmVhdGVkIHdpdGggU2tldGNoLjwvZGVzYz4gICAgPGRlZnM+PC9kZWZzPiAgICA8ZyBpZD0iUGFnZS0xIiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIiBza2V0Y2g6dHlwZT0iTVNQYWdlIj4gICAgICAgIDxnIGlkPSJhcnJvdy1kb3duIiBza2V0Y2g6dHlwZT0iTVNBcnRib2FyZEdyb3VwIiBmaWxsPSIjOGM4Zjk0Ij4gICAgICAgICAgICA8cGF0aCBkPSJNMTUuNSw2IEwxNyw3LjUgTDEwLjI1LDE0LjI1IEwzLjUsNy41IEw1LDYgTDEwLjI1LDExLjI1IEwxNS41LDYgWiIgaWQ9IkRvd24tQXJyb3ciIHNrZXRjaDp0eXBlPSJNU1NoYXBlR3JvdXAiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgPC9nPjwvc3ZnPgo=)
			no-repeat right 10px center;
	}
}
