.so-wc-templates-nav {
	background: #f1f1f1;
	border-bottom: 1px solid #d6d6d6;
	padding: 5px 0 0 30px;
	margin: 0;
	font-size: 0;

	li {
		background: #f6f6f6;
		border: 1px solid #d6d6d6;
		border-width: 1px 0 1px 1px;
		display: inline-block;
		font-size: 12px;
		line-height: 1em;
		margin: 0 0 -1px 0;
		position: relative;
		transition: all 0.2s;

		&:last-child {
			border-right-width: 1px;
		}

		a {
			box-shadow: none !important;
			color: #555;
			display: block;
			font-weight: bold;
			padding: 12px 25px;
			text-decoration: none;

			> span.so-wc-templates-tooltip {
				height: inherit;
				line-height: inherit;
				position: relative;

				&:before {
					font-size: 18px;
					height: 18px;
					vertical-align: bottom;
					width: 18px;
				}

				&:hover .so-wc-templates-tooltip-contents {
					display: block;
				}

				.so-wc-templates-tooltip-contents {
					background: rgba(0, 0, 0, .83);
					color: #f1f1f1;
					display: none;
					font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
					font-size: 0.8125rem;
					left: -110px;
					line-height: 1.4;
					padding: 10px 15px 12px;
					position: absolute;
					text-align: left;
					top: 24px;
					transition: all 0.2s ease-in-out;
					width: 220px;
					z-index: 102;
				}
			}
		}

		&:hover {
			background: #f3f3f3;
		}

		&.active {
			background: #f0f0f0;
			border-bottom-color: #f0f0f0;
		}
	}
}

.so-wc-templates-missing-plugin {
	padding: 15px;
}

.so-wc-template-input-container {

	#so-wc-template-name {
		font-size: 24px;
		margin-top: 10px;
		width: 100%;
	}
}

#so-premium-wc-template-form {

	.action-button {
		align-items: center;
		display: inline-flex;
		line-height: 25px;
	}

	&.so-premium-wc-tab-content-product {

		> h4 {
			margin-bottom: 0;
			margin-top: 20px;
		}

		.wctb-builder p {
			margin-bottom: 23px;
			margin-top: 10px;
		}
	}

	.so-wc-actions {
		display: flex;
		justify-content: space-between;
	}
}

.so-panels-dialog {

	&.so-panels-dialog-add-widget .widget-type-list .widget-type .widget-icon.so-wc-widget-icon {
		background-image: url('../../../../img/addo-icon-tight.svg');
		background-size: 28px 20px;
		width: 28px;
	}

	&.so-panels-dialog-edit-widget .so-wc-widget-form-input {
		padding: 10px 0px;

		label:first-child {
			display: block;
		}
	}
}

#so-premium-wc-template-preview-dialog {
	@border_color: #d8d8d8;
	@edge_spacing: 30px;
	@pane_padding: 15px;
	@sidebar_width: 290px;
	@title_bar_height: 50px;
	@toolbar_height: 58px;
	display: none;

	.siteorigin-widget-form-no-styles {
		display: none !important;
	}

	.so-overlay, .so-content, .so-title-bar, .so-toolbar, .so-left-sidebar, .so-right-sidebar {
		box-sizing: border-box;
		padding: @pane_padding;
		position: fixed;
		z-index: 100001;
	}

	.so-overlay {
		background: rgba(0,0,0,0.5);
		bottom: 0;
		left: 0;
		right: 0;
		top: 0;
	}

	.so-content {
		background-color: #fdfdfd;
		bottom: @edge_spacing + @toolbar_height;
		box-shadow: inset 0 2px 2px rgba(0,0,0,0.03);
		left: @edge_spacing;
		overflow: hidden;
		padding: 0;
		right: @edge_spacing;
		top: @edge_spacing + @title_bar_height;

		> *:first-child, form > *:first-child {
			margin-top: 0;
		}

		> *:last-child, form > *:last-child {
			margin-bottom: 0;
		}

		.so-content-tabs > * {
			display: none;
		}

		&.so-loading {
			background-image: url(../../../../admin/img/wpspin_light.gif);
			background-position: center center;
			background-repeat: no-repeat;

			@media(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {

				& {
					background-image: url(../../../../admin/img/wpspin_light-2x.gif);
					background-size: 16px 16px;
				}
			}
		}
	}

	.so-title-bar {
		background-color: #fafafa;
		border-bottom: 1px solid @border_color;
		height: @title_bar_height;
		left: @edge_spacing;
		right: @edge_spacing;
		top: @edge_spacing;

		h3.so-title {
			margin: 0 !important;
			padding: 0 !important;
		}

		/* These are the action buttons in the title bar */
		a {
			background: #fafafa;
			border-bottom: 1px solid #d8d8d8;
			border-left: 1px solid #d8d8d8;
			box-sizing: border-box;
			cursor: pointer;
			display: block;
			height: 50px;
			position: absolute;
			right: 0;
			top: 0;
			width: 50px;

			&:hover {
				background: #e9e9e9;

				.so-dialog-icon {
					color: #333;
				}
			}

			.so-dialog-icon {
				color: #666;
				height: 20px;
				left: 50%;
				margin-left: -10px;
				margin-top: -10px;
				position: absolute;
				text-align: center;
				text-decoration: none;
				top: 50%;
				width: 20px;

				&:before {
					font: 400 20px/1em dashicons;
					left: 13px;
					top: 7px;
				}
			}

			&.so-close {
				right: 0;

				.so-dialog-icon:before  {
					content: "\f335";
				}
			}
		}
	}

	.so-toolbar {
		background-color: #fafafa;
		border-top: 1px solid @border_color;
		bottom: @edge_spacing;
		height: @toolbar_height;
		left: @edge_spacing;
		right: @edge_spacing;
		z-index: 100002; // 1 more than the rest to ensure dropdowns etc appear above the other content.

		.so-status {
			color: #999;
			float: left;
			font-style: italic;
			line-height: 1em;
			padding-bottom: 6px;
			padding-top: 6px;

			&.so-panels-loading {
				background-position: left center;
				padding-left: 26px;
			}
		}

		.so-buttons {
			float: right;

			.action-buttons {
				left: 15px;
				margin-top: -0.65em;
				position: absolute;
				top: 50%;

				a {
					cursor: pointer;
					display: inline;
					line-height: 1em;
					margin-right: 0.5em;
					padding: 0.2em 0.5em;
					text-decoration: none;
				}
			}
		}
	}

	.siteorigin-widget-help-link {
		display: none;
	}

	iframe {
		height: 100%;
		width: 100%;
	}
}
