@import '../../../styles/fills';
@import '../../../styles/mixins';
@import '../../../styles/definitions/breakpoints';
@import '../../../styles/definitions/colors';

.linkCard {
	display: flex;
	width: 100%;
	
	&_container {
		display: inline-flex;
		flex-direction: column;
		max-width: 302px;
		min-width: 132px;
		width: 100%;
		height: 100%;
	}
	
	&_card {
		height: 88px;
		background-color: $primary-color;
		border-radius: 8px 8px 0 0;
	}

	&_linksSection {
		box-sizing: border-box;
		border: 1px solid $gray;
		border-radius: 0 0 8px 8px;
		background-color: $white;
		padding: 18px 36px;
		flex-grow: 2;
	}

	&_linkHeader {
		@include text-3;
		line-height: 23px;
		margin-bottom: 11px;
		font-weight: bold;
		margin-top: 0;
	}

	&_list {
		@include text-5;
		@extend %reset-list;
		width: 100%;
		line-height: 22px;
		text-overflow: ellipsis;
	}
	&_link {
		color: $deep-gray;
		display: inline-block;
		text-decoration: none;

		&:hover,
		&:focus {
			text-decoration: underline;
		}

		@include focus-outline;
	}
	
	&_icon {
		height: 65px;
		width: 65px;
		display: block;
		margin: auto;
		padding-top: 20px;
		path {
			fill: $white
		}
	}
	@include media-xs-down {
	
		&_list {
			@include text-6;
			max-width: 204px;
			width: 100%;
			line-height: 18px;
		}
	}

	@include media-xxs-down {
	
		&_list {
			@include text-6;
			max-width: 204px;
			width: 100%;
			line-height:12px;
		}
		&_textSection {
			box-sizing: border-box;
			max-width: 302px;
			width: 100%;
			border: 1px solid $gray;
			border-radius: 0 0 8px 8px;
			background-color: $white;
			padding: 14px 20px 0px 20px;
		}
	}
}
