/**
 * WSAL Wizard Styles
 */

$color-primary: #009344;
$color-secondary: #bdd63a;
$color-disable: #b4b9be;

body {
	margin: 65px auto 24px;
	-webkit-box-shadow: none;
	box-shadow: none;
	background: #f1f1f1;
	padding: 0;
	border: none;
}

// Header logo.
#wsal-logo {
	border: 0;
	margin: 0 0 24px;
	padding: 0;
	text-align: center;

	img {
		width: 400px;
	}
}

// Wizard steps.
.steps {
	display: flex;
	list-style-type: none;
	margin: 0;
	padding: 0 0 25px;
	text-align: center;

	li {
		flex: 1 0 auto;
		font-weight: 700;
		margin: 0 0 5px;
		color: $color-disable;
		padding-bottom: 15px;
		position: relative;

		&.is-active {
			color: $color-primary;

			&::before {
				border: 4px solid $color-primary;
				background: $color-primary;
			}
		}

		&::before {
			content: '';
			border: 4px solid $color-disable;
			border-radius: 100%;
			width: 4px;
			height: 4px;
			position: absolute;
			bottom: 0;
			left: 50%;
			margin-left: -6px;
			margin-bottom: -8px;
			background: $color-disable;
		}
	}
}

// Wizard Content.
.wsal-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;
	text-align: left;

	h4,
	fieldset {
		line-height: 1.5;
	}

	h2 {
		color: #1d2327;
		font-weight: 600;
		border: none;
		padding: 0;
	}

	.wsal-premium-callout {
		display: flex;
		align-items: center;
		gap: 16px;
		margin: 0 0 24px;
		padding: 16px 18px;
		background: #fff8e5;
		border: none;
		border-left: 4px solid #dba617;
		box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);

		h3 {
			margin: 0 0 4px;
			color: #1d2327;
			font-size: 15px;
			line-height: 1.35;
		}

		.wsal-premium-callout-description a {
			font-weight: bold;
			text-decoration: none;
			color: #009344;
		}
	}

	.wsal-premium-callout-icon {
		flex: 0 0 auto;
		width: 24px;
		height: 24px;
		color: #b7791f;
		font-size: 24px;
	}

	.wsal-premium-callout-content {
		flex: 1 1 auto;
		min-width: 0;
	}

	.wsal-premium-callout-description {
		margin: 0;
		color: #3c434a;
	}

	.wsal-premium-callout-button.button-primary {
		flex: 0 0 auto;
		margin-left: auto;
		background-color: $color-primary;
		border-color: $color-primary;
		color: #fff;
		white-space: nowrap;

		&:hover,
		&:focus {
			background: lighten($color: $color-primary, $amount: 5%);
			border-color: lighten($color: $color-primary, $amount: 5%);
			color: #fff;
		}
	}

	.addon-wrapper {
		border: 1px solid #eee;
		padding: 15px;
		display: flex;
		margin-bottom: 15px;
		&:hover {
			border-color: #ccc;
		}

		img {
			align-self: center;
			max-width: 200px;
			margin-right: 15px;
		}
	}
}

@media (max-width: 600px) {
	.wsal-setup-content {
		.wsal-premium-callout {
			align-items: flex-start;
			flex-wrap: wrap;
		}

		.wsal-premium-callout-button.button-primary {
			margin-left: 40px;
		}
	}
}

body.wsal-setup .wsal-setup-content {
	a {
		color: #2271b1;

		&:hover,
		&:active,
		&:focus {
			color: #135e96;
		}
	}
}

.wsal-setup-actions {
	text-align: center;

	.button {
		box-shadow: none;
		font-size: 14px;
		height: auto;
		padding: 8px 20px;
		min-width: 12em;
		min-width: auto;
		transition: 0.1s all linear;
	}

	.button-primary {
		background-color: $color-primary;
		border-color: $color-primary;
		box-shadow: none;
		text-shadow: none;
		margin: 0;
		opacity: 1;

		&:hover,
		&:focus {
			background: lighten($color: $color-primary, $amount: 5%);
			border-color: lighten($color: $color-primary, $amount: 5%);
			box-shadow: none;
			color: #fff;
		}
	}
}

// Wizard footer.
.wsal-setup-footer {
	text-align: center;

	a {
		color: $color-primary;
		font-size: 14px;
		text-decoration: none;
	}
}

.wsal-setup-form {
	input[type='radio'] {
		-webkit-appearance: auto;
		appearance: auto;

		&:checked {
			accent-color: $color-primary;
		}

		&:checked:before {
			background-color: $color-primary;
		}
	}

	label[for='editor-users-box'],
	label[for='editor-roles-box'],
	label[for='exuser-query-box'],
	label[for='exrole-query-box'],
	label[for='ipaddr-query-box'] {
		display: inline-block;
		margin: 5px 0;

		span {
			display: inline-block;
			min-width: 100px;
		}
	}
}

.sectoken-user,
.sectoken-role,
.sectoken-ip,
.sectoken-other {
	display: inline-block;
	border-width: 1px;
	border-style: solid;
	padding: 2px 4px;
	margin: 2px 0 0 2px;
	border-radius: 3px;
	cursor: default;
	line-height: 1.3;
	font-size: 14px;

	a {
		text-decoration: none;
		font-size: 12px;
		font-weight: bold;
		color: #fff;
		margin-left: 2px;
		background: #bbb;
		border-radius: 25px;
		height: 14px;
		display: inline-block;
		vertical-align: middle;
		width: 14px;
		text-align: center;
		line-height: 12px;

		&:hover {
			background: #fb9;
		}
	}
}
.sectoken-other {
	display: table;
	border-collapse: separate;
}
.sectoken-role {
	background: #efe;
	border-color: #5b5;
}
.sectoken-user {
	background: #eff;
	border-color: #5be;
}
.sectoken-ip {
	background: #ffe;
	border-color: #ed5;
}
.sectoken-other {
	background: #ffe;
	border-color: #ed5;
}

p.description {
	font-size: 13px;
	font-style: italic;
}
