/**
*	WC Vendors setup wizard styles 
*/ 

@import 'variables';

body {
	margin: 65px auto 24px;
	box-shadow: none;
	background: #f1f1f1;
	padding: 0;
}
#wcv-logo {
	border: 0;
	margin: 0 0 24px;
	padding: 0;
	text-align: center;
	img {
		max-width: 30%;
	}
}
.wcv-setup-content {
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.13);
	padding: 2em;
	margin: 0 0 20px;
	background: #fff;
	overflow: hidden;
	zoom: 1;

	h1, h2, h3, table {
		margin: 0 0 20px;
		border: 0;
		padding: 0;
		color: #666;
		clear: none;
		font-weight: 500;
	}
	p {
		margin: 20px 0;
		font-size: 1em;
		line-height: 1.75em;
		color: #666;
	}
	table {
		font-size: 1em;
		line-height: 1.75em;
		color: #666;
	}
	a {
		color: $wcvendors;
		&:hover, &:focus {
			color: #111;
		}
	}
	h4.help-title { 
		text-align: center; 
	}
	.wcv-setup-input { 

		input { 
			padding: 5px 10px; 
			font-size: 1em; 
		}
		
	}
	.wcv-setup-next-steps {
		overflow: hidden;
		margin: 0 0 24px;
		padding-bottom: 2px;
		h2 {
			margin-bottom: 12px;
		}
		.wcv-setup-next-steps-first {
			float: left;
			width: 50%;
			box-sizing: border-box;
		}
		.wcv-setup-next-steps-last {
			float: right;
			width: 50%;
			box-sizing: border-box;
		}
		ul {
			padding: 0 2em 0 0;
			list-style: none outside;
			margin: 0;
			li a {
				display: block;
				padding: 0 0 0.75em;
			}
			.setup-product {
				a.button {
					background-color: #f7f7f7;
					border-color: #ccc;
					color: #23282d;
					box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 #ccc;
					text-shadow: 1px 0 1px #eee, 0 1px 1px #eee;
					font-size: 1em;
					height: auto;
					line-height: 1.75em;
					margin: 0 0 0.75em;
					opacity: 1;
					padding: 1em;
					text-align: center;

					&:hover, &:focus, &:active {
						background: $wcvendors-light;
						border-color: #aaa;
					}
				}
				a.button-primary {
					color: #fff;
					background-color: #bb77ae;
					border-color: $wcvendors-light;
					box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 $wcvendors-light;
					text-shadow: 0 -1px 1px $wcvendors-light, 1px 0 1px $wcvendors-light, 0 1px 1px $wcvendors-light, -1px 0 1px $wcvendors-light;

					&:hover, &:focus, &:active {
						color: #fff;
						background: $wcvendors-light;
						border-color: $wcvendors-light;
						box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 $wcvendors-light;
					}
				}
			}
			li a::before {
				color: #82878c;
				font: normal 20px/1 'dashicons';
				speak: none;
				display: inline-block;
				padding: 0 10px 0 0;
				top: 1px;
				position: relative;
				-webkit-font-smoothing: antialiased;
				-moz-osx-font-smoothing: grayscale;
				text-decoration: none !important;
				vertical-align: top;
			}
			.learn-more a::before {
				content: '\f105';
			}
			.video-walkthrough a::before {
				content: '\f126';
			}
			.newsletter a::before {
				content: '\f465';
			}
		}
	}
	.wcvendors-newsletter,
	.wcvendors-tracker,
	.updated {
		padding: 24px 24px 0;
		margin: 0 0 24px;
		overflow: hidden;
		background: #f5f5f5;
		p {
			padding: 0;
			margin: 0 0 12px;
		}
		form,
		p:last-child {
			margin: 0 0 24px;
		}
	}
	.wcvendors-tracker + .wcvendors-newsletter {
		margin-top: -24px;
		border-top: 2px dashed #ddd;
	}
}
.wcv-setup-steps {
	padding: 0 0 24px;
	margin: 0;
	list-style: none outside;
	overflow: hidden;
	color: #ccc;
	width:100%;
	display: inline-flex;
	li {
		width: 25%;
		float: left;
		padding: 0 0 0.8em;
		margin: 0;
		text-align: center;
		position: relative;
		border-bottom: 4px solid #ccc;
		line-height: 1.4em;
	}
	li::before {
		content: '';
		border: 4px solid #ccc;
		border-radius: 100%;
		width: 4px;
		height: 4px;
		position: absolute;
		bottom: 0;
		left: 50%;
		margin-left: -6px;
		margin-bottom: -8px;
		background: #fff;
	}
	li.active {
		border-color: $wcvendors-light;
		color: $wcvendors;
		&::before {
			border-color: #005580;
		}
	}
	li.done {
		border-color: $wcvendors-light;
		color: $wcvendors;
		&::before {
			border-color: $wcvendors-light;
			background: $wcvendors-light;
		}
	}
}
.wcv-setup .wcv-setup-actions {
	overflow: hidden;
	margin: 20px 0 0;
	.button {
		font-size: 1.25em;
		line-height: 1em;
		margin-right: 0.5em;
		margin-bottom: 2px;
		height: auto;
		border-radius: 4px;
	}
	.button-primary {
		background-color: $wcvendors;
		border-color: $wcvendors-light;
		box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 $wcvendors-light;
		text-shadow: 0 -1px 1px $wcvendors-light, 1px 0 1px $wcvendors-light, 0 1px 1px $wcvendors-light, -1px 0 1px $wcvendors-light;
		margin: 0;
		opacity: 1;

		&:hover, &:focus, &:active {
			background: $wcvendors-light;
			border-color: $wcvendors-light;
			box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 1px 0 $wcvendors-light;
		}
	}
}

.wcv-setup-content p:last-child {
	margin-bottom: 0;
}

.wcv-setup-content p.store-setup {
	margin-top: 0;
}

.wcv-return-to-dashboard {
	font-size: 0.85em;
	color: #b5b5b5;
	margin: 1.18em 0;
	display: block;
	text-align: center;
}

.wcv-wizard-storefront {
	.wcv-wizard-storefront-intro {
		padding: 40px 40px 0;
		background: #F5F5F5;
		text-align: center;

		img {
			margin: 40px 0 0 0;
			width: 100%;
			display: block;
		}
	}
	.wcv-wizard-storefront-features {
		list-style: none outside;
		margin: 0 0 20px;
		padding: 0 0 0 30px;
		overflow: hidden;
	}
	.wcv-wizard-storefront-feature {
		margin: 0;
		padding: 20px 30px 20px 2em;
		width: 50%;
		box-sizing: border-box;

		&::before {
			margin-left: -2em;
			position: absolute;
		}
		&.first {
			clear: both;
			float: left;
		}
		&.last {
			float: right;
		}
	}
}

.hide {
	display: none;
}

.wcv-wizard-features {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	padding: 0;

	.wcv-wizard-feature-item {
		flex-basis: calc( 50% - 4em - 3px); // two columns, account for padding and borders
		border: 1px solid #eee;
		padding: 2em;
	}

	.wcv-wizard-feature-item:nth-child(1) {
		border-radius: 4px 0 0 0;
	}

	.wcv-wizard-feature-item:nth-child(2) {
		border-left: 0;
		border-radius: 0 4px 0 0;
	}

	.wcv-wizard-feature-item:nth-child(3) {
		border-top: 0;
		border-radius: 0 0 0 4px;
	}

	.wcv-wizard-feature-item:nth-child(4) {
		border-top: 0;
		border-left: 0;
		border-radius: 0 0 4px 0;
	}

	p.wcv-wizard-feature-name,
	p.wcv-wizard-feature-description {
		margin: 0;
		line-height: 1.5em;
	}
}

.step {
	text-align: center;
}

.wcv-setup .wcv-setup-actions .button {
	font-weight: 300;
	font-size: 16px;
	padding: 0.5em 1em;
	box-shadow: none;
	min-width: 12em;
	min-width: auto;
	margin-top:10px;
	background-color: $wcvendors;
	color: $white; 

	&:focus,
	&:hover,
	&:active {
		box-shadow: none;
		background-color: $wcvendors-light; 
	}
}

.location-prompt {
	color: #666;
	font-size: 13px;
	font-weight: 500;
	margin-bottom: 0.5em;
	margin-top: 1em;
	display: inline-block;
}

.address-step {
	.select2 {
		min-width: 100%; // widen currency, product type dropdowns
	}
}

.store-address-container {
	margin-bottom: 24px; // match margin-bottom on top paragraph

	.city-and-postcode {
		display: flex;

		div {
			flex-basis: 50%;
			margin-right: 1em;

			&:last-of-type {
				margin-right: 0;
			}
		}
	}
}

.wcv-wizard-service-settings {
	.payment-email-input {
		border: 1px solid #aaa;
		border-color: #ddd;
		border-radius: 4px;
		height: 30px;
		padding: 0 8px;
		font-size: 14px;
		color: #444;
		background-color: #fff;
		display: inline-block;
	}
}

.newsletter-form-container {
	display: flex;

	.newsletter-form-email {
		border: 1px solid #aaa;
		border-color: #ddd;
		border-radius: 4px;
		height: 42px;
		padding: 0 8px;
		font-size: 16px;
		color: #666;
		background-color: #fff;
		display: inline-block;
		margin-right: 6px;
		flex-grow: 1;
	}

	.newsletter-form-button-container {
		flex-grow: 0;
	}
}

.wcv-setup .wcv-setup-actions .button.newsletter-form-button {
	height: 42px;
	padding: 0 1em;
	margin: 0;
}

.wcv-wizard-next-steps {
	border: 1px solid #eee;
	border-radius: 4px;
	list-style: none;
	padding: 0;

	li {
		padding: 0;
	}

	.wcv-wizard-next-step-item {
		display: flex;
		border-top: 1px solid #eee;

		&:first-child {
			border-top: 0;
		}
	}

	.wcv-wizard-next-step-description {
		flex-grow: 1;
		margin: 1.5em;
	}

	.wcv-wizard-next-step-action {
		flex-grow: 0;
		display: flex;
		align-items: center;

		.button {
			margin: 1em;
		}
	}

	p {
		&.next-step-heading {
			margin: 0;
			font-size: 0.95em;
			font-weight: 400;
			font-variant: all-petite-caps;
		}

		&.next-step-extra-info {
			margin: 0;
		}
	}

	h3 {
		&.next-step-description {
			margin: 0;
			font-size: 16px;
			font-weight: 600;
		}
	}
}

p.next-steps-help-text {
	color: #9f9f9f;
	padding: 0 2em;
	text-align: center;
	font-size: .9em;
}

.wcv-setup-table { 
	width: 100%; 

	.table-desc { 
		width: 80%;
	}

	.table-check { 
		width: 20%;
		text-align: right; 

		input.option_check { 
			line-height: 4em; 
		}
	}
}

.wcv-setup-table-pages { 

	width: 100%; 

	.table-desc { 
		width: 60%;
	}

	.table-check{ 
		width: 40%;

	}

	select { 
		width: 100%; 
	}

	.tool-tip { 
		font-size: 0.75em; 
	}

}
