//Import all vars
@import 'vars';

/* ==========================================================================
   Icon Font
   ========================================================================== */
@import 'icons';

/* ==========================================================================
   Header Styles
   ========================================================================== */
@import 'header';

/* ==========================================================================
   Global Styles
   ========================================================================== */
@import 'global';
@import 'chosen';

/* ==========================================================================
   Addons Styles
   ========================================================================== */
.soliloquy_page_soliloquy-lite-addons {
	#wpfooter {
		margin-left: 0px;
	}
}
/* Heading */
#soliloquy-heading{
	background-color: white;
	height: 45px;
	margin-left: -20px;
	h1{
		margin: 0;
		padding-left: 20px;
		line-height: 45px;
		font-size: 20px;
		font-weight: 400;
	}
}
#soliloquy-settings-refresh-addons-form{
	float: left;
	p{
		font-size: 14px;
	}
}
.soliloquy-addon-filter{
	font-weight: 600;
	margin-right: 10px;
}
#soliloquy-addons-area { margin-top: 20px; }
#soliloquy-addons-upgrade-area{
	padding-top: 0;
	margin-top: 0;
    border-top: none;
	h2.soliloquy-addons-upgrade{
		font-size: 23px;
	}
	.soliloquy-unlock-text{
		font-size: 14px;
		margin-bottom: 30px;
	}
	.soliloquy-addon-unlock{
		max-width: 125px;
		margin: auto;
		text-align: center;
	}

}
.soliloquy-addon {
	display: flex;
	flex-direction: column;
	border: 1px solid $light-grey;
	background: $white;
	border-radius: 3px;
	float: left;
	margin: 0 2% 2% 0;
	min-height: 380px;
	text-align: center;
	width: 32%;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	.soliloquy-addon-thumb {
		border-radius: 3px;
		height: auto;
		margin: 0 auto;
		max-width: 100%;
		width: auto;
	}
	&.last {
		margin-right: 0;
	}
	.soliloquy-addon-content{
		padding: 20px;
		flex: 1;
	}
	.soliloquy-addon-footer{
		width: 100%;
		height: 75px;
		border-top: 1px solid $light-grey;
		background-color: $almost-white;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 15px;
		box-sizing: border-box;
		flex-shrink: 0;
	}
	.soliloquy-addon-action-button:before{
		font-size: 18px;
		vertical-align: middle;
		margin-top: -1px;
	}
	.soliloquy-icon-cloud-download.soliloquy-addon-action-button:before{
		color: $mid-grey;
	}

	.soliloquy-icon-toggle-on.soliloquy-activate-addon:before{
		-webkit-transform: 	rotate(180deg);
		-moz-transform: 	rotate(180deg);
		-ms-transform: 		rotate(180deg);
		-o-transform: 		rotate(180deg);
		transform: 			rotate(180deg);
		color: $red;
	}
	.soliloquy-icon-toggle-on.soliloquy-deactivate-addon:before{ color: $green; }
	.soliloquy-addon-message,
	.soliloquy-addon-error {
		-moz-border-radius: 3px;
		-webkit-border-radius: 3px;
		border-radius: 3px;
		text-align: left;
	}
	.soliloquy-addon-inactive{

		.addon-status{
			span{
				color: $red;
			}
		}

	}
	.addon-status-not-installed{
		span{
			color: $mid-grey;
		}
	}
	.soliloquy-addon-active{
		.addon-status{
			span{
				color: $green;
			}
		}
	}
	.soliloquy-addon-message span {
		font-weight: bold;
	}

	.soliloquy-addon-action {
		display: flex;
		align-items: center;
		margin: 0;
	}
	.soliloquy-addon-message{
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		margin-left: 0;
		padding: 0;
	}


	.soliloquy-addon-error {
		margin-top: 10px;
	}

	.soliloquy-addon-error .wrap {
		margin: 0;
	}

	.soliloquy-addon-error .icon32 {
		display: none;
	}

	.soliloquy-addon-error h2 {
		padding: 0;
	}

	.soliloquy-addon-error .form-table th {
		padding: 10px 0;
		width: 30% !important;
	}

	.soliloquy-addon-error .form-table input[type="text"],
	.soliloquy-addon-error .form-table input[type="password"] {
		width: 100% !important;
	}

	.soliloquy-addon-error p.submit {
		padding: 0;
	}

	p {
		color: #2f2f2f;
		font-size: 13px;
		margin: 30px 40px;
	}
}

@media screen and (max-width: 1200px) {
.soliloquy-addon {
	margin: 0 2% 2% 0;
	min-height: 340px;
	width: 48%;
	&.last{
		margin: 0 2% 2% 0;
	}
	&:nth-child(2){
		margin-right: 0;
	}
}
}

@media screen and (max-width: 568px) {
	.soliloquy-addon {
		margin: 0 1% 1% 0;
		margin-bottom: 20px;
		width: 98%;
		&.last{
			margin: 0 1% 1% 0;
		}
		.soliloquy-addon-action{
			margin-top: 0;
		}
	}
}

/* ==========================================================================
   Addon Badge Styles
   ========================================================================== */

.soliloquy-badge {
	text-transform: uppercase;
	font-weight: 700;
	text-align: center;
	line-height: 1;
	display: inline-block;
	color: #8c8f94;
	background-color: #e5e5e6;
}

.soliloquy-badge-lg {
	font-size: 10px;
	letter-spacing: 0.5px;
	padding: 8px 10px;
}

.soliloquy-badge-sm {
	font-size: 8px;
	letter-spacing: 0.4px;
	padding: 6px 8px;
}

.soliloquy-badge-rounded {
	border-radius: 3px;
}

/* ==========================================================================
   jQuery Confirm button styles overrides
   ========================================================================== */

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c {
	margin: 0 0 20px 0;
	padding: 0;
	font-weight: 600;
	text-align: center;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c .dashicons,
body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c .dashicons-before:before {
	width: 42px;
	height: 42px;
	font-size: 47px;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-icon-c + .jconfirm-title {
	margin-top: 20px;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-title-c .jconfirm-title {
	color: #3c434a;
	display: block;
	line-height: 30px;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane {
	display: block;
	margin-bottom: 20px;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane .jconfirm-content {
	color: #3c434a;
	font-size: 16px;
	line-height: 24px;
	margin-bottom: 0;
	overflow: inherit;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-content-pane .jconfirm-content p {
	font-size: inherit;
	line-height: inherit;
	margin: 0 0 16px;
}

/* Modal heading (top) border and icon - overrides jconfirm-type-blue default */
body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue {
	border-top: solid 7px #1d2327;
	animation: none;

	.jconfirm-title-c .jconfirm-icon-c {
		color: #1d2327 !important;
	}
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue button.btn-confirm {
	background-color: #1d2327;
	border-color: #1d2327;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box .jconfirm-buttons button.btn-confirm {
	color: #ffffff;
}

body div.jconfirm .jconfirm-box-container .jconfirm-box.soliloquy-upgrade-modal-box.jconfirm-type-blue button.btn-confirm:hover {
	background-color: #2c3338;
	border-color: #2c3338;
}
