@import 'bourbon';
@import '../../../../assets/sass/utils/variables';
@import '../../../../assets/sass/utils/mixins';
@import '../../../../assets/sass/vendors/modular-scale';

$green: #45B964;

.appearance_page_storefront-welcome {
	.storefront-notice {
		padding: 1em ms(2);
		border: 1px solid #ddd;
		color: #999;
		border-radius: 2px;
		background-color: #fafafa;
	}

	.boxes {
		clear: both;
	}

	.col {
		margin-bottom: 0;
	}

	.sf-title {
		float: left;
		margin-bottom: ms(-3);

		img {
			margin-right: 12px;
		}
	}

	.version {
		font-size: 30%;
		padding: .387em ms(-1);
		border-radius: 3px;
		background-color: #fff;
		font-weight: 700;
		color: #FFA107;
	}

	.sf-review {
		max-width: 360px;
		float: right;
		margin-bottom: ms(-3);

		p {
			font-size: ms(-1);
		}

		& + .boxed {
			clear: both;
		}
	}

	.boxed {
		padding: ms(2) ms(4) ms(4) ms(4);
		background: #fff;
		box-sizing: border-box;
		border: 1px solid #ddd;
		border-radius: 4px;
		position: relative;
		margin-bottom: ms(5);
		width: 46.5%;
		margin-right: 3.5%;

		> h2:first-child {
			font-weight: 700;
			font-size: 1.1em;
			margin-top: 12px;
			text-align: left;
		}

		.button {
			line-height: 16px;
			height: 38px;
			padding: 10px 20px;
		}

		.more-button {
			padding: 1em 0 0 0;
			border-top: 1px solid #eee;
			clear: both;
			text-align: right;
		}

		p,
		ul {
			font-size: ms(-1);
		}

		ul {
			&.extensions {
				@include clearfix;
				margin-bottom: 0;

				li {
					width: 50%;
					float: left;
					clear: both;
					border-top: 1px solid #eee;
					padding-top: 2em;
					padding-bottom: 2em;
					padding-right: 2em;
					margin-bottom: 0;
					box-sizing: border-box;
					position: relative;

					&:after {
						content: "";
						position: absolute;
						top: 0;
						right: 0;
						bottom: 0;
						width: 1px;
						background-color: #eee;
					}

					a {
						text-decoration: none;

						.price {
							color: $green;
						}
					}

					p {
						margin-bottom: 0;
					}

					&:nth-child(2n) {
						float: right;
						clear: none;
						padding-right: 0;
						padding-left: 2em;

						&:after {
							right: auto;
							left: -1px;
						}
					}
				}
			}
		}

		&:before {
			content: "\f127";
			display: block;
			position: absolute;
			top: ms(2);
			right: ms(2);
			font-size: ms(3);
			font-family: 'Dashicons';
			font-weight: 400;
			-webkit-font-smoothing: antialiased;
		}

		&.enrich:before {
			content: "\f513";
		}

		&.enhance {
			border-width: 2px;
			border-color: #FFA107;
			box-shadow: 0 1px 1px #FFA107;

			&:before {
				content: "\f502";
				color: #FFA107;
			}
		}

		&.free-plugins {
			&:before {
				content: "\f106";
			}
		}

		&.contribute {
			&:before {
				content: "\f487";
			}
		}

		&.customise {
			&:before {
				content: "\f540";
			}
		}

		&.suggest {
			&:before {
				content: "\f488";
			}
		}

		&.support {
			&:before {
				content: "\f338";
			}
		}

		&.child-themes {
			.storefront-notice {
				font-size: ms(-1);
				margin-bottom: 1em;
			}

			&:before {
				content: "\f309";
			}

			.child-theme-title {
				font-size: ms(-1);
			}

			a {
				text-decoration: none;
			}

			.price {
				float: right;
				color: $green;
				font-size: ms(-1);
			}

			.child-theme {
				width: 47%;
				float: left;
				clear: both;
				margin-bottom: ms(3);

				img {
					margin-bottom: 1em;
					border: 1px solid #999;
					border-top-width: 12px;
					border-radius: 3px;
					box-shadow: 0 1px 2px rgba(#000,.2);
				}

				&:nth-child(2n) {
					float: right;
					clear: none;
				}
			}
		}

		&.news {
			.col2-set {
				@include clearfix;

				.col-1 {
					width: 48%;
					float: left;
					clear: both;
				}

				.col-2 {
					width: 48%;
					float: right;
				}

				h4 {
					font-size: ms(-1);
					text-transform: uppercase;
					margin-top: 10px;
					margin-bottom: 5px;
					color: #999;
				}

				ul {
					margin-top: 0;
				}
			}

			h5 {
				margin: 0;
			}

			.date {
				text-transform: uppercase;
				color: #999;
				font-size: .75em;
			}

			&:before {
				content: "\f319";
			}
		}
	}

	.free {
		text-transform: uppercase;
		color: #fff;
		background: $green;
		display: inline-block;
		padding: 2px 8px;
		float: right;
		margin: 0;
		font-size: .75em !important;
		border-radius: 3px;
	}

	.activated {
		background: $green;
		color: #fff;
		font-size: 13px;
		line-height: 26px;
		height: 26px;
		margin: 0;
		padding: 9px 20px;
		display: inline-block;
		border-radius: 3px;

		span {
			line-height: 26px;
		}
	}

	.automattic {
		text-align: center;
		clear: both;

		p {
			font-size: .75em;
			letter-spacing: 1px;
			text-transform: uppercase;
			color: #aaa;
		}

		img {
			max-height: 9px;
			margin: 0 ms(-3);
			margin-top: -3px;
			opacity: 0.5;
		}
	}
}