@use "../../scss/calypso-mixins";

.dash-backup-getting-started {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 2rem;
	margin-top: 0.625rem;

	@include calypso-mixins.breakpoint( ">480px" ) {
		margin-top: 1rem;
		margin-bottom: 2rem;
	}

	@include calypso-mixins.breakpoint( ">660px" ) {
		flex-direction: row;
		align-items: center;
	}
}

.dash-backup-getting-started__dismiss {
	position: absolute;
	content: "";
	top: 1rem;
	right: 1rem;
}

.dash-backup-getting-started__thumbnail {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	flex-shrink: 1;
}

.dash-backup-getting-started__content {
	flex: 1 1 auto;
	margin: 1rem 0 2rem;

	@include calypso-mixins.breakpoint( ">660px" ) {
		margin: 0 1rem;
	}
}

.dash-backup-getting-started__header {
	margin: 0 0 0.5rem;
	font-size: 1.25rem;
	// stylelint-disable-next-line declaration-property-unit-allowed-list -- this should be changed to a unitless value: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/#values
	line-height: 1.75rem;
}

.dash-backup-getting-started__text {
	margin: 0;
	font-size: 0.75rem;
	// stylelint-disable-next-line declaration-property-unit-allowed-list -- this should be changed to a unitless value: https://developer.wordpress.org/coding-standards/wordpress-coding-standards/css/#values
	line-height: 1rem;
	letter-spacing: -0.02em;
}

.dash-backup-getting-started__cta {
	flex-shrink: 0;

	@include calypso-mixins.breakpoint( ">660px" ) {
		margin-left: auto;
	}
}
