.backup-warning-header {
	&__card-container {
		display: flex;
		flex-wrap: wrap;
		margin-bottom: auto;
		margin-top: auto;
		margin-right: auto;
		padding-right: 24px;
		width: 100%;
		overflow: hidden;

		@include breakpoint-deprecated( ">960px" ) {
			flex-wrap: nowrap;
		}
	}

	&__titles {
		overflow: hidden;
	}

	&__autofix-container {
		min-width: 18px;
		margin-top: auto;
		margin-bottom: auto;
		margin-right: 36px;
		margin-left: auto;
	}

	&__autofix_badge {
		fill: #008710;
	}

	&__card-top {
		font-style: normal;
		font-weight: 600;
		font-size: $font-body-large;
		line-height: 24px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	&__card-bottom {
		font-style: normal;
		font-weight: normal;
		font-size: $font-body-small;
		line-height: 21px;
		color: #50575e;

		&.is-critical {
			color: #d63638;
		}
	}
}

.backup-warning-retry__wrapper {
	border-top: 1px solid var(--color-neutral-5);
	padding-top: 24px;
	margin-top: 1.5rem;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
}

.backup-warning-retry__info {
	height: 24px;
	font-style: normal;
	font-weight: 400;
	font-size: $font-body;
	line-height: 24px;
	display: flex;
	column-gap: 8px;
	a {
		color: #101517;
		text-decoration: underline;
	}
	.gridicons-notice-outline {
		color: #7d5600;
	}
}

.backup-warning-retry__button-wrapper {
	height: 34px;
}

.backup-warning-retry__button {
	display: inline-block;
	width: initial;
	margin: 0;
	margin-right: 1rem;
	padding-left: 2rem;
	padding-right: 2rem;
	font-style: normal;
	font-weight: 600;
	font-size: $font-body;
	line-height: 23px;
}

.backup-warning-type-badge {

	&__wrapper {
		align-items: center;
		display: flex;
		width: 124px;
	}

	&__content {
		position: relative;
		padding: 4px;
		border-radius: 32px; /* stylelint-disable-line scales/radii */
		margin-right: 24px;
		margin-left: 8px;
		width: 71px;
		height: 16px;
		line-height: 16px;
		flex-shrink: 0;
		text-align: center;
		font-style: normal;
		font-weight: 600;
		font-size: $font-body-extra-small;
		background: #f6f7f7;
		color: #646970;

		@include breakpoint-deprecated( "<960px" ) {
			margin-bottom: 16px;
			margin-left: 0;
		}
	}
}

.backup-warning-list-header__wrapper {
	display: flex;
	align-items: flex-start;
	color: #50575e;
}

.backup-warning-list-header__title {
	height: 24px;

	&.title__type {
		margin-right: 52px;
		width: 64px;
	}
}

.backup-warnings__warning-item {
	margin-bottom: 0;

	&:last-of-type {
		margin-bottom: 16px;
	}

	.foldable-card__main {
		flex: unset;
		max-width: 100%;
		width: 100%;
	}

	.foldable-card__action {
		padding-right: 16px;
	}

	&.is-placeholder .card-heading,
	&.is-placeholder .log-item__subheader {
		margin-bottom: 2px;
		@include placeholder( --color-neutral-10 );
	}

	&.foldable-card.card.is-expanded {
		margin: 0;

		.foldable-card__content {
			border-top-width: 0;
		}
	}

	.log-item__header-wrapper {
		flex-grow: 1;
		width: 100%;
	}

	.card-heading {
		display: flex;
		padding-top: 8px;
		padding-bottom: 8px;
		flex-grow: 1;
		line-height: 16px;
		max-width: calc(100% - 32px);

		@include breakpoint-deprecated( ">960px" ) {
			flex-wrap: nowrap;
			flex-direction: row;
		}
	}

	.log-item__subheader {
		color: var(--studio-gray-60);
		font-size: $font-body-small;
	}

	&__buttons {
		display: flex;
		justify-content: flex-end;
	}

	.foldable-card__action.foldable-card__expand {
		border: none;
	}
}

.backup-warnings__file-list {
	list-style: none;
	font-size: $font-body-small;
	color: #50575e;
	margin-left: 124px;
	line-height: 24px;
	overflow-x: auto;
	white-space: nowrap;
}

.backup-warnings__info {
	display: flex;
	flex-direction: row;
	line-height: 24px;
	padding: 8px 0;

	.gridicons-help-outline {
		min-width: 100px;
		padding-right: 24px;
		margin: auto;
	}
}
