/*****************************************/
/* Customizer control typography style
/*****************************************/

/**
 * Import configuration file with variables.
 */
@import '../../../../assets/sass/config';

.shopwell-typography-wrapper {

	.shopwell-control-wrap {
		width: 100%;
	}

	.shopwell-range-wrapper {
		position: relative;

		label {
			display: flex;
			align-items: center;
			margin-bottom: 6px;
		}

		.shopwell-control-unit {
			position: absolute;
			top: 4px;
			right: 0;
			z-index: 1;
		}
	}

	.shopwell-typography-heading {
		flex-grow: 1;
	}

	.shopwell-typography-advanced {
		background-color: #fff;
		padding: 15px 22px;
		position: absolute;
		width: 100%;
		top: 100%;
		left: 0;
		margin-top: 15px;
		box-sizing: border-box;
		border-radius: $border_radius;
		box-shadow: 0 0 10px rgba(0,0,0,0.1);
		z-index: 1;
	}

	.advanced-settings {
		display: flex;
		align-items: center;
		margin-left: auto;
		text-decoration: none;
		color: #555d66;

		&.active,
		&:focus,
		&:hover {
			background-color: #0284ba;
			color: #fff;
		}

		&.hidden {
			display: none;
		}
	}

	.shopwell-typography-font-family,
	.shopwell-typography-font-subsets,
	.shopwell-typography-font-weight,
	.shopwell-typography-font-style,
	.shopwell-typography-text-transform,
	.shopwell-typography-text-decoration {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		margin-top: 6px;
		margin-bottom: 6px;

		.select2-container,
		select {
			width: 150px !important;
			margin-left: auto !important;
		}
	}

	.shopwell-typography-font-weight,
	.shopwell-typography-font-style,
	.shopwell-typography-text-transform,
	.shopwell-typography-text-decoration {
		margin-top: 0;
		margin-bottom: 0;
	}

	.shopwell-typography-font-weight,
	.shopwell-typography-letter-spacing,
	.shopwell-typography-line-height {
		margin-top: 12px;
	}

	.shopwell-typography-line-height,
	.shopwell-typography-text-decoration {
		margin-bottom: 24px;
	}

	.shopwell-typography-font-family {
		margin-bottom: 12px;
	}

	.shopwell-responsive-switchers {
		margin-left: 6px;
	}

	.advanced-settings {
		background-color: #FFF;
		border-radius: 2px;
		display: inline-flex;
		margin-left: 0;
		font-size: 12px;
		width: 40px;
		height: 40px;
		justify-content: center;
		border: 1px solid #e0e0e0;
		transition: all .15s ease;

		.dashicons {
			transition: none;
		}
	}

	.reset-defaults {
		display: none;
		
		&.active {
			display: block;
		}
	}
}