.stored-credit-card {
	&.delete-in-progress {
		opacity: 0.6;
	}

	display: flex;
	flex-wrap: wrap;
	width: 270px;
	height: 150px;
	background: var(--studio-white);
	border-radius: 2px;
	padding: 1rem;
}

.stored-credit-card-loading {
	display: flex;
	align-content: space-between;

	&__content {
		width: 100%;
		height: 27px;

		@include placeholder( --color-neutral-10 );
	}

	&__bottom {
		width: 100%;

		> div {
			&:first-child {
				margin-bottom: 1rem;
			}
		}
	}
}

.stored-credit-card__primary {
	padding: 2px 4px;
	/* stylelint-disable-next-line declaration-property-unit-allowed-list */
	line-height: 1.25rem;
	background: var(--studio-gray-80);
	color: var(--studio-white);
	font-size: $font-body-small;
	border-radius: var(--jetpack-corners-soft);
	font-weight: 400;
}

.stored-credit-card__header {
	display: flex;
	align-items: flex-start;
	flex-basis: 100%;
}

.stored-credit-card__labels {
	display: flex;

	> div {
		&:first-child {
			margin-left: 0;
		}

		margin-left: 10px;
		margin-right: 10px;
	}
}

.stored-credit-card__actions {
	margin-left: auto;

	.button.ellipsis-menu__toggle {
		padding: 0;
	}
}

.stored-credit-card__payment-logo svg {
	filter: grayscale(100%);
}

.stored-credit-card__footer {
	width: 100%;
	display: flex;
	flex-grow: 1;
	justify-content: space-between;
}

.stored-credit-card__footer-left,
.stored-credit-card__footer-right {
	align-self: flex-end;
}

.stored-credit-card__name {
	font-size: 1.125rem; /* stylelint-disable-line scales/font-sizes */
	color: var(--studio-gray-80);
	margin-bottom: 1rem;
}

.stored-credit-card__number,
.stored-credit-card__expiry {
	font-size: $font-body-small;
	color: var(--studio-gray-80);
}
