$root: e-kit-library__kit-item;

.#{$root} {
	--e-kit-library-kit-item-overlay-promotion-button-background-color: #{tints(100)};
}

.eps-theme-dark {
	.#{$root} {
		--e-kit-library-kit-item-overlay-promotion-button-background-color: #{dark-tints(600)};
	}
}

.#{$root} {
	&-overlay {
		height: 100%;

		& > *:first-child {
			flex: 1;
		}
	}

	&-overlay-overview-button {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		color: white;
		height: 100%;
		width: 100%;

		& > i {
			font-size: 2rem;
			margin-block-end: 5px;
		}

		& > span {
			font-size: 0.9rem;
		}
	}

	&-overlay-promotion-button {
		display: flex;
		width: 100%;
		background: white;
		align-items: center;
		justify-content: center;
		padding: 10px;
		font-size: 13px;
		color: theme-colors( cta );
		background: var(--e-kit-library-kit-item-overlay-promotion-button-background-color);

		& > * {
			margin: 0 3px;
		}
	}

	&-subscription-plan-badge {
		--e-a-color-brand: #467FF7;

		&.promoted {
			--e-a-color-brand: #92003B;
		}

		position: absolute;
		top: 0;
		@include end(0);
		margin: spacing(5);
		background-color: var(--e-a-color-brand);
		color: theme-colors( light );
		text-transform: uppercase;
	}
}
