// My Plan Card
.my-plan-card.card {
	&::after {
		content: none;
	}

	@include breakpoint-deprecated( ">960px" ) {
		padding: 24px;

		display: flex;
		flex-flow: row nowrap;
		align-items: flex-start;
		justify-content: space-between;
		column-gap: 56px;
	}
}

.my-plan-card__primary {
	display: flex;
	flex-flow: row nowrap;
	flex-grow: 1;
}

.my-plan-card__header {
	flex: 1;

	.is-placeholder &::before {
		@include placeholder( --color-neutral-10 );
		content: "\00a0";
		display: inline-block;
		width: 100%;
		height: calc(100% - 16px);
		min-height: 70px;
		margin-bottom: 16px;

		@include breakpoint-deprecated( ">960px" ) {
			height: 100%;
		}
	}
}

.my-plan-card__title {
	font-size: $font-title-small;
	font-weight: 400;
	line-height: 29px;
	color: var(--color-neutral-100);

	.is-placeholder & {
		display: none;
	}
}

.my-plan-card__tagline {
	font-size: $font-body-small;
	font-weight: 400;
	line-height: 21px;
	margin: 0 0 24px;

	@include breakpoint-deprecated( ">960px" ) {
		margin-bottom: 8px;
	}

	.is-placeholder & {
		display: none;
	}
}

.my-plan-card__icon {
	flex: 0 0 auto;
	width: 64px;
	height: 64px;
	margin-inline-end: 20px;

	@include breakpoint-deprecated( "<660px" ) {
		display: none;
	}

	.is-placeholder & {
		.plan-icon {
			display: none;
		}

		&::before {
			@include placeholder( --color-neutral-10 );
			content: "\00a0";
			display: inline-block;
			width: 64px;
			height: 64px;
			border-radius: 99%;
		}
	}
}

.my-plan-card__secondary {
	position: relative;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
	justify-content: space-between;
	padding: 8px 0 0;

	@include breakpoint-deprecated( ">960px" ) {
		flex-flow: column nowrap;
		justify-content: center;
		align-items: flex-end;
		padding: initial;
	}

	&::before {
		content: "";
		position: absolute;
		top: 0;
		left: -16px;
		right: -16px;
		border-top: 1px solid var(--color-border-subtle);

		@include breakpoint-deprecated( ">480px" ) {
			left: -24px;
			right: -24px;
		}

		@include breakpoint-deprecated( ">960px" ) {
			content: none;
		}
	}

	.has-action-only & {
		padding-top: 0;
		justify-content: center;

		&::before {
			content: none;
		}
	}
}

.my-plan-card__details {
	padding-top: 8px;
	white-space: nowrap;
	color: var(--color-text-subtle);

	@include breakpoint-deprecated( ">960px" ) {
		padding-top: 0;
	}

	&.is-error {
		color: var(--color-error);
	}

	.is-placeholder &::before {
		@include placeholder( --color-neutral-10 );
		content: "\00a0";
		display: inline-block;
		width: 180px;
		height: 18px;
	}
}

.my-plan-card__action {
	padding-top: 8px;
	white-space: nowrap;

	.has-action-only & {
		padding-top: 0;
	}

	.is-placeholder &::before {
		@include placeholder( --color-neutral-10 );
		content: "\00a0";
		display: inline-block;
		width: 110px;
		height: 29px;
	}

	.button ~ .button {
		margin-inline-start: 8px;
	}
	.button {
		line-height: inherit;
	}
	.owner-info__pop-over {
		font-size: inherit;
		vertical-align: inherit;
	}
}

.my-plan-card__header .backup-storage-space.card {
	margin: 24px 0;
	padding: 0;
	box-shadow: none;

	.usage-warning__upsell {
		margin-block-start: 16px;
	}

	.backup-storage-space__divider,
	.usage-warning__storage-full {
		display: none;
	}
}
