@import "_mixins.scss";
@import "_trx_addons.vars.scss";
@import "_trx_addons.colors.scss";


/* Reset jQuery UI styles
------------------------------------------------------------ */
div.ui-widget,
div.ui-widget .ui-widget,
div.ui-widget button,
div.ui-widget input,
div.ui-widget select,
div.ui-widget textarea {
	font-size: 1em;
	font-family: inherit !important;
}

/* Active tab (button) */
.ui-button.ui-state-active:hover,
.ui-button:active,
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-widget-header .ui-state-active,
a.ui-button:active {
	background: none;
	font-weight: normal !important;
	color: unset;
	border: none;
}

/* Datepicker */
div.ui-datepicker table {
	font-size: 1em;
}
div.ui-datepicker {
	width: auto;
}
div.ui-datepicker .ui-datepicker-month {
	font-weight: inherit;
}
div.ui-datepicker td a,
div.ui-datepicker td span {
	padding: 0.5em;
}
div.ui-datepicker .ui-datepicker-next,
div.ui-datepicker .ui-datepicker-prev {
	top: 50%;
	@include translateY(-50%);
}
div.ui-datepicker .ui-datepicker-prev:before,
div.ui-datepicker .ui-datepicker-next:before {
	display:none;
}


/* Colorpicker fix */
.wp-picker-container {
	position: relative;

	&.wp-picker-active {
		z-index: 100;
		background-color: #fff;
		@include box-shadow(0 0 10px rgba(0,0,0,.2));
		padding: 6px;
		top: -7px;
		left: -7px;
	}

	.wp-picker-input-wrap label {
		display: inline-block !important;
		margin: 0 !important;
	}
	input[type="text"].wp-color-picker {
		height: auto;
	}
	.button.wp-picker-clear {
		min-height: 28px;
		margin-left: 6px;
	}
}



/* WordPress admin styles
-----------------------------------------------------------------*/

/* Buttons */
.wp-core-ui .trx_addons_tabs .button:not([class*="button-"]):not([class*="wp-color"]):not([class*="mediamanager"]),
.wp-core-ui .trx_addons_tabs .button.button-primary,
.wp-core-ui .trx_addons_tabs .button.button-secondary,
.wp-core-ui .trx_addons_tabs .button.button-action {
	@include font(14px !important, 20px);
	padding: 6px 16px;
	height: auto;
	display: inline-block;
	vertical-align: top;
	@include transition-properties(color, background-color, border-color, text-shadow, box-shadow);
}

.wp-core-ui .trx_addons_tabs .button.button-action {
	color: #fff;
	background-color:#008800;
	border-color: #00aa00 #006600 #006600;
	text-shadow: 0 -1px 1px #006600,1px 0 1px #006600,0 1px 1px #006600,-1px 0 1px #006600;
	@include box-shadow(0 1px 0 #006600);
}

.wp-core-ui .trx_addons_tabs .button.button-action:hover,
.wp-core-ui .trx_addons_tabs .button.button-action:focus,
.wp-core-ui .trx_addons_tabs .button.button-action:active {
	color: #fff;
	background-color:#66aa00;
	border-color: #88cc00 #228800 #228800;
	text-shadow: 0 -1px 1px #228800,1px 0 1px #228800,0 1px 1px #228800,-1px 0 1px #228800;
	@include box-shadow(0 1px 0 #228800);
}

.wp-core-ui .trx_addons_tabs .button.button-secondary {
	color: #fff;
	background-color:#9c1717;
	border-color: #b11a1a #6b1010 #6b1010;
	text-shadow: 0 -1px 1px #6b1010,1px 0 1px #6b1010,0 1px 1px #6b1010,-1px 0 1px #6b1010;
	@include box-shadow(0 1px 0 #6b1010);
}

.wp-core-ui .trx_addons_tabs .button.button-secondary:hover,
.wp-core-ui .trx_addons_tabs .button.button-secondary:focus,
.wp-core-ui .trx_addons_tabs .button.button-secondary:active {
	color: #fff;
	background-color:#8c1515;
	border-color: #631414 #831414 #831414;
	text-shadow: 0 -1px 1px #8a1515,1px 0 1px #8a1515,0 1px 1px #8a1515,-1px 0 1px #8a1515;
	@include box-shadow(0 1px 0 #8a1515);
}


/* Notices
-----------------------------------------------------------------*/
.trx_addons_admin_notice {
	display:block;
	overflow: hidden;
	position: relative;
	padding-top: 1em;
	padding-bottom: 1em;
}
.trx_addons_admin_notice .trx_addons_admin_notice_image {
	float: left;
	margin-right: 2em;
}
.trx_addons_admin_notice .trx_addons_admin_notice_image img {
	max-height: 135px;
	width: auto;
}
.trx_addons_admin_notice .trx_addons_admin_notice_title {
	margin:0;
}
.trx_addons_admin_notice .trx_addons_admin_notice_title a {
	text-decoration: none;
}
.trx_addons_admin_notice .trx_addons_admin_notice_text {
	margin: 1em 0;
}
.trx_addons_admin_notice p {
	margin: 0 0 0.1em;
}
.trx_addons_admin_notice .trx_addons_admin_notice_text_info {
	margin-top: 0.5em;
	font-style: italic;
}
.trx_addons_admin_notice .dashicons {
	font-size: 1em;
	@include square(inherit);
	display: inline-block;
	vertical-align: top;
	margin-top: -2px;
}
.trx_addons_admin_notice .dashicons:before {
	font-size:1.2em;
	line-height:inherit;
}

.trx_addons_admin_notice .button+.button {
	margin-left: 0.3em;
}


/* WordPress notices
--------------------------------------------------------------- */
/*
.update-message p,
.updating-message p,
.updated-message p,
.import-php .updating-message,
.button.updating-message,
.button.updated-message,
.button.installed,
.button.installing {
	&:before {
		line-height: 0;
	}
}
*/


/* Addons manager
--------------------------------------------------------------- */

/* Theme Panel */
.trx_addons_tabs_section.trx_addons_section_mode_list {
	@media (min-width: 480px) {
		&.addon_activated {
			.trx_addons_image_block_inner {
				background-color: $info_bg_color;
				border: 3px solid $info_dark;
			}
		}
	}
}


/* Core updates */
.trx_addons_upgrade_addons_button[disabled],
.trx_addons_upgrade_addons_button[disabled]:hover,
.trx_addons_upgrade_addons_button[disabled]:focus {
	color: #aaa;
	cursor: not-allowed;
}
.trx_addons_upgrade_addons_status_wrap {
	text-align: center;
	font-size: 1.5em;
}
.trx_addons_upgrade_addons_status:before {
	font-family: $trx_addons_icons;
	display: inline-block;
	vertical-align: top;
}
.trx_addons_upgrade_addons_status_progress:before {
	content: '\e8ff';
	color: $accent_color;
	@include animation(spin 2s infinite linear);
}
.trx_addons_upgrade_addons_status_success:before {
	content: '\e8bd';
	color: $success_color;
}
.trx_addons_upgrade_addons_status_error:before {
	content: '\e8fc';
	color: $error_color;
}

.update-core-php h2 {
	clear: both;
}
#update_wpml_config {
	float: none !important;
}


/* Buttons
--------------------------------------------------------------- */
.trx_addons_button,
form input[type="button"].trx_addons_button,
form input[type="submit"].trx_addons_button {
	display: inline-block;
	vertical-align: top;
	text-decoration: none;
	font-size: 15px;
	line-height: 24px;
	padding: 10px 30px;
	height: auto;
	background-color: $button_bg_color;
	border: 1px solid $button_bd_color;
	border-bottom-width: 2px;
	color: $button_text_color;
	cursor: pointer;
	@include border-radius(4px);
	@include transition-properties(color, border-color, background-color);
}
.trx_addons_button:focus,
form input[type="button"].trx_addons_button:focus,
form input[type="submit"].trx_addons_button:focus,
.trx_addons_button:hover,
form input[type="button"].trx_addons_button:hover,
form input[type="submit"].trx_addons_button:hover {
	background-color: $button_bg_hover;
	border-color: $button_bd_hover;
	color: $button_text_hover;
}
.trx_addons_button:focus,
form input[type="button"].trx_addons_button:focus,
form input[type="submit"].trx_addons_button:focus {
	outline: 0;
	box-shadow: 0 0 0 3px $button_outline_color;
}
.trx_addons_button[disabled],
form input[type="button"].trx_addons_button[disabled],
form input[type="submit"].trx_addons_button[disabled] {
	background-color: $button_bg_hover !important;
	color: $button_text_disabled !important;
	border-color: $button_bd_disabled !important;
}
.trx_addons_button:before,
form input[type="button"].trx_addons_button:before,
form input[type="submit"].trx_addons_button:before,
.trx_addons_button:after,
form input[type="button"].trx_addons_button:after,
form input[type="submit"].trx_addons_button:after {
	font-family: $trx_addons_icons;
	display: inline-block;
	vertical-align: middle;
	margin-top: -1px;
	font-size: 1.2em;
	line-height: 0;
	color: inherit;
}
.trx_addons_button:before,
form input[type="button"].trx_addons_button:before,
form input[type="submit"].trx_addons_button:before {
	margin-right: 0.3em;
}
.trx_addons_button:after,
form input[type="button"].trx_addons_button:after,
form input[type="submit"].trx_addons_button:after {
	margin-left: 0.3em;
}
.trx_addons_button_small,
form input[type="button"].trx_addons_button_small,
form input[type="submit"].trx_addons_button_small {
	font-size: 14px;
	line-height: 20px;
	padding: 5px 15px;	
}
.trx_addons_button_small:before,
form input[type="button"].trx_addons_button_small:before,
form input[type="submit"].trx_addons_button_small:before,
.trx_addons_button_small:after,
form input[type="button"].trx_addons_button_small:after,
form input[type="submit"].trx_addons_button_small:after {
	font-size: 1em;
}
.trx_addons_button_accent,
a.trx_addons_button.trx_addons_button_accent,
form input[type="button"].trx_addons_button_accent,
form input[type="submit"].trx_addons_button_accent {
	background-color: $accent_color;
	border-color: $accent_bd_color;
	color: #fff;
}
.trx_addons_button_accent:focus,
a.trx_addons_button.trx_addons_button_accent:focus,
form input[type="button"].trx_addons_button:focus,
form input[type="submit"].trx_addons_button:focus,
.trx_addons_button_accent:hover,
a.trx_addons_button.trx_addons_button_accent:hover,
form input[type="button"].trx_addons_button:hover,
form input[type="submit"].trx_addons_button:hover {
	background-color: $accent_hover;
	border-color: $accent_bd_hover;
	color: #fff;
}
.trx_addons_button_fail,
a.trx_addons_button.trx_addons_button_fail,
form input[type="button"].trx_addons_button_fail,
form input[type="submit"].trx_addons_button_fail {
	background-color: $fail_color;
	border-color: $fail_bd_color;
	color: #fff;
}
.trx_addons_button_fail:focus,
a.trx_addons_button.trx_addons_button_fail:focus,
form input[type="button"].trx_addons_button_fail:focus,
form input[type="submit"].trx_addons_button_fail:focus,
.trx_addons_button_fail:hover,
a.trx_addons_button.trx_addons_button_fail:hover,
form input[type="button"].trx_addons_button_fail:hover,
form input[type="submit"].trx_addons_button_fail:hover {
	background-color: $fail_hover;
	border-color: $fail_bd_hover;
	color: #fff;
}
.trx_addons_button_success,
a.trx_addons_button.trx_addons_button_success,
form input[type="button"].trx_addons_button_success,
form input[type="submit"].trx_addons_button_success {
	background-color: $success_color;
	border-color: $success_bd_color;
	color: #fff;
}
.trx_addons_button_success:focus,
a.trx_addons_button.trx_addons_button_success:focus,
form input[type="button"].trx_addons_button_success:focus,
form input[type="submit"].trx_addons_button_success:focus,
.trx_addons_button_success:hover,
a.trx_addons_button.trx_addons_button_success:hover,
form input[type="button"].trx_addons_button_success:hover,
form input[type="submit"].trx_addons_button_success:hover {
	background-color: $success_hover;
	border-color: $success_bd_hover;
	color: #fff;
}
.trx_addons_button_warning,
a.trx_addons_button.trx_addons_button_warning,
form input[type="button"].trx_addons_button_warning,
form input[type="submit"].trx_addons_button_warning {
	background-color: $warning_color;
	border-color: $warning_bd_color;
	color: #fff;
}
.trx_addons_button_warning:focus,
a.trx_addons_button.trx_addons_button_warning:focus,
form input[type="button"].trx_addons_button_warning:focus,
form input[type="submit"].trx_addons_button_warning:focus,
.trx_addons_button_warning:hover,
a.trx_addons_button.trx_addons_button_warning:hover,
form input[type="button"].trx_addons_button_warning:hover,
form input[type="submit"].trx_addons_button_warning:hover {
	background-color: $warning_hover;
	border-color: $warning_bd_hover;
	color: #fff;
}
@media (max-width: 1023px) {
	.trx_addons_button,
	form input[type="button"].trx_addons_button,
	form input[type="submit"].trx_addons_button {
		font-size: 13px;
		line-height: 20px;
		padding: 8px 20px;
	}	
	.trx_addons_button_small,
	form input[type="button"].trx_addons_button_small,
	form input[type="submit"].trx_addons_button_small {
		font-size: 12px;
		line-height: 18px;
		padding: 4px 10px;	
	}
}

/* Close button */
.trx_addons_button_close {
	display:block;
	cursor:pointer;
	@include square(3rem);
	@include abs-rt;
}
.trx_addons_button_close_icon {
	@include abs-lt(25%, 25%, 2);
	@include square(50%);
	@include border-box;
	@include transition-property(transform);
	@include transform-origin(50% 50%);
}
.trx_addons_button_close:hover .trx_addons_button_close_icon {
	@include rotate(-180deg);
}
.trx_addons_button_close_icon:before,
.trx_addons_button_close_icon:after {
	content:' ';
	@include abs-lt(0, 50%);
	@include transform-origin(50% 50%);
	@include box(100%, 0);
	@include border-box;
	border-top: 2px solid #fff;
	@include transition-property(border-color);
}
.trx_addons_button_close_icon:before {
	@include rotate(45deg);
}
.trx_addons_button_close_icon:after {
	@include rotate(-45deg);
}

/* Shortcode's placeholder
------------------------------------- */
.sc_placeholder {
	padding: 0.7em;
	background-color: rgba(255, 200, 200, 0.7);
	color: #aa0000;
	text-align: center;
	@include flex;
	@include flex-direction(row);
	@include flex-justify-content(center);
	@include flex-align-items(center);
	@include border-box;
	
	&:before {
		content: '\e881';
		font-family: 'trx_addons_icons';
		font-size: 1.5em;
		margin: 0;
	}

	img {
		margin-right: 1em;
		height: 2em;
		width: auto;
		@include border-radius(3px);
		margin: 0 0 0 0.5em;
	}
	p {
		display: none;
		margin: 0 0 0 0.5em;
		text-transform: capitalize;
	}
	&.sc_placeholder_with_title {
		p {
			display: block;
			text-transform: none;
		}
	}
}

/* Common admin styles
-----------------------------------------------------------------*/
.trx_addons_hidden {
	display: none !important;
}
.trx_addons_refresh {
	display:inline-block;
	margin-left: 0.5em;
}
.trx_addons_loading:before {
	content: '\e800' !important;
	font-family: $trx_addons_icons;
	display: inline-block !important;
	margin-right: 0.5em;
	@include animation(spin 2s infinite linear);
}

.trx_addons_columns_wrap {
	margin-right: -20px;
}
[class*="trx_addons_column-"] {
	display:inline-block;
	vertical-align:top;
	padding-right: 20px;
	@include border-box;
	width: 100%;
}
.trx_addons_column-1_2 { width:50%; }
.trx_addons_column-1_3 { width: 33.3333%; }
.trx_addons_column-2_3 { width: 66.6667%; }
.trx_addons_column-1_4 { width: 25%; }
.trx_addons_column-2_4 { width: 50%; }
.trx_addons_column-3_4 { width: 75%; }
.trx_addons_column-1_5 { width: 20%; }
.trx_addons_column-2_5 { width: 40%; }
.trx_addons_column-3_5 { width: 60%; }
.trx_addons_column-4_5 { width: 80%; }
.trx_addons_column-1_6 { width: 16.6667%; }
.trx_addons_column-2_6 { width: 33.3333%; }
.trx_addons_column-3_6 { width: 50%; }
.trx_addons_column-4_6 { width: 66.6667%; }
.trx_addons_column-5_6 { width: 83.3333%; }
@media (max-width: 1279px) {
	.trx_addons_column-1_4,
	.trx_addons_column-3_4,
	.trx_addons_column-2_5,	
	.trx_addons_column-3_5,	
	.trx_addons_column-4_5,
	.trx_addons_column-2_6,	
	.trx_addons_column-3_6,	
	.trx_addons_column-4_6,
	.trx_addons_column-5_6 { width: 50%; }
}
@media (max-width: 1023px) {
	.trx_addons_column-1_2,
	.trx_addons_column-1_3,
	.trx_addons_column-2_3,
	.trx_addons_column-1_4,
	.trx_addons_column-2_4,
	.trx_addons_column-3_4,
	.trx_addons_column-1_5,
	.trx_addons_column-2_5,
	.trx_addons_column-3_5,
	.trx_addons_column-4_5,
	.trx_addons_column-1_6,
	.trx_addons_column-2_6,
	.trx_addons_column-3_6,
	.trx_addons_column-4_6,
	.trx_addons_column-5_6 { width: 100%; }
}



/* Tooltip */
[data-tooltip-text] {
	color: #333;	//#efa758;
	border-bottom: 1px dotted #333;	//#efa758;
	position:relative;
	cursor: default;

	&:after {
		content: attr(data-tooltip-text);
		display: inline-block;
		vertical-align: top;
		pointer-events: none;
		padding: 6px 10px;
		font-family: inherit;
		@include font(12px, 16px);
		@include abs-ct(-36px);
		white-space: nowrap;
		@include translate(-50%,20px);
		opacity: 0;
		@include transition-properties(transform,opacity);
		border-width: 0;
		background-color: #191e23;
		border-color: #191e23;
		color: #fff;
	}
	&:before {
		content: ' ';
		@include abs-ct(-8px);
		@include box(0,0);
		display: block;
		border-style: solid;
		border-width: 5px;
		border-top-color: #191e23;
		border-left-color: transparent !important;
		border-right-color: transparent !important;
		border-bottom-color: transparent !important;
		@include translate(-50%, 20px);
		opacity: 0;
		@include transition-properties(transform,opacity);
	}
	&:hover:after,
	&:hover:before {
		@include translate(-50%, 0);
		opacity: 1;	
	}
}


/* Info boxes
--------------------------------------------------------------- */
.trx_addons_info_box {
	padding: 1.5em 1.5em 1.5em 3.5em;
	line-height:1.5em;
	border-left: 4px solid $info_color;
	background-color: $info_bg_color;
	color: $text_color;
	@include border-box;
	position: relative;
}
.trx_addons_info_box:before {
	content: '\e881' ;
	font-family: $trx_addons_icons;
	font-size: 1.2em;
	color: $info_color;
	@include abs-lt(1.15em, 1.35em);
}
.trx_addons_info_box_warning,
.trx_addons_info_box_dialog {
	border-color: $dialog_color;
	background-color: $dialog_bg_color;
}
.trx_addons_info_box_warning:before,
.trx_addons_info_box_dialog:before {
	content: '\e924' ;
	color: $dialog_color;
}
.trx_addons_info_box_error {
	border-color: $error_color;
	background-color: $error_bg_color;
}
.trx_addons_info_box_error:before {
	content: '\e924' ;
	color: $error_color;
}
.trx_addons_info_box_success {
	border-color: $success_color;
	background-color: $success_bg_color;
}
.trx_addons_info_box_success:before {
	content: '\e878' ;
	color: $success_color;
}
.trx_addons_info_box p {
	margin: 0;
}
.trx_addons_info_box p + p {
	margin-top: 0.3em;
}



/* Tabs
-----------------------------------------------------------------*/

.trx_addons_tabs {
	border: none !important;
	background: none !important;
	padding: 0 !important;
	font-size: 1.077em !important;
}
.trx_addons_tabs > ul.ui-tabs-nav {
	position:relative;
	z-index:1;
	background: none;
	border: none;
	padding: 0;
	margin:0;
}
// .trx_addons_tabs > ul.ui-tabs-nav,
// .trx_addons_tabs .trx_addons_tabs_section {
// 	font-size: 1.0769em;
// 	line-height: 1.5em;
// }
.trx_addons_tabs > ul.ui-tabs-nav > li {
	position: static;
	display:inline-block;
	margin:0;
	border-top-left-radius: 0;
	border-top-right-radius: 0;
	border:1px solid $tab_border_color;
	border-bottom:none;
	background-image: none;
	background: $tab_background_color;
	@include border-box;
	@include transition-property(background-color);
}
.trx_addons_tabs > ul.ui-tabs-nav > li:not(:last-child) {
	border-right: 0;
}
.trx_addons_tabs > ul.ui-tabs-nav > li:hover {
	background-image: none;
	background: $tab_background_hover;
}
.trx_addons_tabs > ul.ui-tabs-nav > li > a.ui-tabs-anchor {
	display:block;
	padding: 15px;
	text-decoration:none;
	@include box-shadow(none !important);
	@include border-box;
	float: none !important;
	color: $tab_text_color;
	font-weight: 600;
	@include transition-properties(color,background-color);
}
.trx_addons_tabs > ul.ui-tabs-nav > li.ui-state-active {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;	
	border-top: 3px solid $accent_color;
}
.trx_addons_tabs > ul.ui-tabs-nav > li.ui-state-active > a.ui-tabs-anchor {
	position:relative;
	top: 1px;
	background-color: $tab_background_active;
	color: $tab_text_color;
	padding-top: 13px;
}
.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="dashicons-"],
.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="icon-"] {
	display: inline-block;
	vertical-align: top;
	font-size: 1.5em;
	font-style: normal;
	line-height: 0.67em;
	margin: 0 0.5em 0 0;
	color: $tab_icon_color;
}

.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="dashicons-"]:before,
.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="icon-"]:before {
	display: inline-block;
	vertical-align: top;
	@include square(1em);
	line-height: 1em !important;
	margin: 0;
}
.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="dashicons-"]:before {
	font-family: "dashicons";	
}
.trx_addons_tabs > ul.ui-tabs-nav > li > a > img {
	display: inline-block;
	vertical-align: top;
	@include square(1em);
	margin: 0 0.5em 0 0;
}

.trx_addons_tabs .trx_addons_tabs_section {
	@include border-box;
}
.trx_addons_tabs:not(.no_tabs) .trx_addons_tabs_section {
	padding: 3.5em;
	border:1px solid $tab_border_color;
	background-color:#fff;
}
.trx_addons_tabs_section + .trx_addons_tabs_section {
	display:none;
}

/* Tabs in meta boxes */
.edit-post-meta-boxes-area .postbox > .inside .trx_addons_tabs {
	margin: 0 -14px;
}

@media (min-width: 320px) and (max-width: 767px) {
	.trx_addons_tabs:not(.no_tabs) .trx_addons_tabs_section {
		padding: 2em;
	}
	.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="dashicons-"],
	.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="icon-"] {
		font-size: 1em;
	}
	.trx_addons_options_item[class*="column-"] {
		padding-right: 0 !important;
	}
}

/* Tabs vertical */
@media (min-width: 320px) {
	.trx_addons_tabs_vertical {
		@include flex;
	}
	.trx_addons_tabs_vertical > ul.ui-tabs-nav {
		width: 190px;
		@include flex-shrink(0);
	}
	.trx_addons_tabs_vertical > ul.ui-tabs-nav > li {
		display:block;
		width: 100%;
		float: none;
		border-bottom:1px solid $tab_border_color !important;
		border-right:none;
		@include border-sharp;
		@include border-box;
	}
	.trx_addons_tabs_vertical > ul.ui-tabs-nav > li + li {
		margin: 0 !important;
		border-top: 0;
	}
	.trx_addons_tabs_vertical > ul.ui-tabs-nav > li > a.ui-tabs-anchor {
		display:block;
		width: 100%;
		padding: 13px;
	}
	.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.ui-state-active {
		border-left: 3px solid $accent_color;
	}
	.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.ui-state-active:first-child {
		border-top:1px solid $tab_border_color;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li + li.ui-state-active {
		border-top: none;
	}
	.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.ui-state-active > a.ui-tabs-anchor {
		top: auto;
		left: 1px;
		padding-top: 15px;
		padding-left: 12px;
	}
	.trx_addons_tabs_vertical .trx_addons_tabs_section {
		width: calc(100% - 210px);
		min-height: 33vh;
		@include flex-shrink(0);
	}
	
	/* Subtabs */
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_super {
		position: relative;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_super > a.ui-tabs-anchor {
		padding-right: 2em;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_super:after {
		content: '\e859';
		font-family: $trx_addons_icons;
		font-size: 10px;
		font-weight: 600;
		@include abs-rc(12px);
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_super.ui-state-active:after {
		content: '\e857';
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub {
		display: none;
		background: $subtab_background_color;
		border-bottom: none !important;
		height: auto !important;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub > a.ui-tabs-anchor {
		color: $subtab_text_color;

		& > i[class*="icon-"] {
			font-size: 1em;
			margin-top: -2px;
			vertical-align: middle;
		}
		& > img {
			margin-top: -2px;
			vertical-align: middle;
		}
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub > a.ui-tabs-anchor,
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub.ui-state-active > a.ui-tabs-anchor {
		top: auto;
		left: auto;
		padding: 0.6em 0.6em 0.6em 1.35em;
		font-weight: normal;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: normal;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_super + li.trx_addons_tabs_title_sub > a.ui-tabs-anchor {
		padding-top: 1.2em;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub.ui-state-active {
		border-left: 1px solid $tab_border_color !important;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub.ui-state-active > a.ui-tabs-anchor {
		background-color:$subtab_background_active;
		color: $subtab_text_active;
		font-weight: 600;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub:hover {
		display: none;
		background: $subtab_background_hover;
	}

	/* Vertical tabs in meta boxes */
	.edit-post-meta-boxes-area .postbox > .inside .trx_addons_tabs_vertical .trx_addons_tabs_section {
		width: calc(100% - 190px);
		padding: 0.5em 2em;
	}
}

@media (min-width: 320px) and (max-width: 767px) {
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav {
		width: 120px;
		font-size: 12px;
	}
	div.trx_addons_tabs_vertical .trx_addons_tabs_section {
		width: calc(100% - 130px);
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li > a.ui-tabs-anchor {
		padding: 8px;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.ui-state-active > a.ui-tabs-anchor {
		padding-top: 8px;
		padding-left: 5px;
	}
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub > a.ui-tabs-anchor,
	div.trx_addons_tabs_vertical > ul.ui-tabs-nav > li.trx_addons_tabs_title_sub.ui-state-active > a.ui-tabs-anchor {
		padding-left: 1.3em;
	}	
	div.trx_addons_tabs .trx_addons_tabs_section {
		padding: 1.5em;
	}
	div.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="dashicons-"],
	div.trx_addons_tabs > ul.ui-tabs-nav > li > a > i[class*="icon-"] {
		font-size: 1em;
	}
}


/* Batch (Accordion)
-----------------------------------------------------------------*/
div.trx_addons_accordion {
	padding: 0 !important;
}
div.trx_addons_accordion + .trx_addons_accordion,
.trx_addons_options_item + .trx_addons_options_batch {
	padding: 1.5em 0 !important;
}
.trx_addons_accordion_title,
.ui-accordion .trx_addons_accordion_title.ui-accordion-header {
	padding: 0.8em 1em;
	font-weight: 600 !important;
	color: $tab_text_color;
	background: $tab_background_color;
	margin: 0;
	margin-top: 1px;
	cursor: pointer;
	@include border-sharp;
}
.ui-accordion .trx_addons_accordion_title.ui-accordion-header.ui-state-active {
	background: $tab_background_hover;
}
.ui-accordion .trx_addons_accordion_title.ui-accordion-header .ui-icon {
	display:inline-block;
	vertical-align: middle;
	text-indent:0;
	margin-right:0.8em;
	position: static;
	background-image: none;
	color: $tab_text_color;
}
.ui-accordion .trx_addons_accordion_title.ui-accordion-header .ui-icon:before {
	content:'\e882';
	font-family: $trx_addons_icons;
}
.ui-accordion .trx_addons_accordion_title.ui-accordion-header.ui-state-active .ui-icon:before {
	content:'\e885';
}
.trx_addons_accordion .trx_addons_accordion_content {
	border: 1px solid $tab_border_color;
	border-top: none;
	padding: 1em 2em;
}



/* Dashboard widget
-----------------------------------------------------------------*/
.trx_addons_dashboard_widget_title {
	font-size: 1em;
	font-weight: normal;
	margin: 0.5em 0;
	overflow: hidden;
}
.trx_addons_dashboard_widget_title_text {
	display: inline-block;
	margin-top: 0.3em;
}
.trx_addons_dashboard_widget_title_button {
	float: right;
	margin: 0 0 0 1em;
}
.trx_addons_dashboard_widget_title_button i {
	vertical-align: middle;
}

.trx_addons_dashboard_widget_section_title {
	margin: 0;
	padding: 0.4em 0;
	border-bottom: 1px solid #eee;
	font-size: 1em;
	font-weight: bold;
}

.trx_addons_dashboard_widget_section_item {
	box-sizing: border-box;
}

[class*="trx_addons_dashboard_widget_section_item_label_"]:before {
	display: inline-block;
	vertical-align: middle;
	border-radius: 2px;
	color: #fff;
	text-transform: uppercase;
	padding: 2px 6px;
	margin-right: 0.5em;
	font-size: 10px;
}
.trx_addons_dashboard_widget_section_item_label_new:before {
	content: 'new';
	background-color: #00a000;
}
.trx_addons_dashboard_widget_section_item_label_sale:before {
	content: 'sale';
	background-color: #d2a000;
}
.trx_addons_dashboard_widget_section_item_label_update:before {
	content: 'update';
	background-color: #00a0d2;
}

[class*="trx_addons_dashboard_widget_section_item_status_"] {
	margin-left: -12px;
	padding: 8px 4px 8px 12px;
	background-color: #fafafa;
	border: 1px solid #eee;
	border-left-width: 4px;
}
.trx_addons_dashboard_widget_section_item_status_info {
	border-left-color: #00a0d2;
}
.trx_addons_dashboard_widget_section_item_status_warning {
	border-left-color: #a00000;
}
.trx_addons_dashboard_widget_section_item_status_high {
	border-left-color: #00a000;
}

.trx_addons_dashboard_widget_section_item + .trx_addons_dashboard_widget_section_item {
	margin-top: 1em;
}
.trx_addons_dashboard_widget_section_item_header {
	margin: 0;
	display: inline-block;
}
.trx_addons_dashboard_widget_section_item_date {
	font-size: 12px;
	margin-right: 0.5em;
}
span.trx_addons_dashboard_widget_section_item_title {
	color: #39b54a;
}
.trx_addons_dashboard_widget_section_item_description {
	margin-top: 0.3em;
}
.trx_addons_dashboard_widget_section_item_description p {
	margin: 0;
}

.trx_addons_dashboard_widget_section_most_visited {
	.trx_addons_dashboard_widget_section_item_header {
		display: block;

		a {
			width: 100%;
			@include flex;
			@include flex-direction(row);
			@include flex-justify-content(space-between);
			@include flex-align-items(center);

			.trx_addons_dashboard_widget_section_item_header_text {
				@include flex-basis(80%);
			}
			.trx_addons_dashboard_widget_section_item_header_data {
				@include flex-basis(20%);
				text-align: right;
			}
		}
	}
}

.trx_addons_dashboard_widget_section_footer {
	margin: 0;
	padding: 10px 0 0;
	border-top: 1px solid #eee;
}
.trx_addons_dashboard_widget_section_footer_item {
	display: inline-block;
	margin: 0;
	padding: 0 0.5em 0 0;
}
.trx_addons_dashboard_widget_section_footer_item + .trx_addons_dashboard_widget_section_footer_item {
	border-left: 1px solid #eee;
	padding-left: 0.5em;
}
.trx_addons_dashboard_widget_section_footer_item_pro a {
	color: #39b54a;
}



/* Widget's parameters
-----------------------------------------------------------------*/

/* Custom widgets areas */
.trx_addons_widgets_form_wrap {
	width:58%;
	padding-bottom:1em;
	float: right;
}
@media (max-width: 479px) {
	.trx_addons_widgets_form_wrap {
		width:100%;
		padding-bottom:1em;
		float: none;
	}
}
.trx_addons_widgets_form_wrap input[type="text"] {
	width: 100%;
	@include border-box;
}
.trx_addons_widgets_form_wrap .trx_addons_widgets_area_name,
.trx_addons_widgets_form_wrap .trx_addons_widgets_area_description,
.trx_addons_widgets_form_wrap .trx_addons_widgets_area_submit {
	display:inline-block;
	vertical-align:bottom;
}
.trx_addons_widgets_form_wrap .trx_addons_widgets_area_name {
	width: 25%;
	margin-right: 1em;
}
.trx_addons_widgets_form_wrap .trx_addons_widgets_area_description {
	width: 40%;
	margin-right: 1em;
}
@media (max-width: 782px) {
	.trx_addons_widgets_form_wrap .trx_addons_widgets_area_name,
	.trx_addons_widgets_form_wrap .trx_addons_widgets_area_description,
	.trx_addons_widgets_form_wrap .trx_addons_widgets_area_submit {
		display:block;
		width: 100%;
		margin :0 0 1em;
		vertical-align:top;
	}
}

/* Custom widget areas in the new Widgets Block Editor */
#widgets-editor {
	.trx_addons_widgets_form_wrap {
		width:100%;
		padding-bottom:0;
		float: none;

		.trx_addons_widgets_form_title {
			font-weight: bold;
			text-decoration: underline;
		}
		.trx_addons_widgets_area_name,
		.trx_addons_widgets_area_description,
		.trx_addons_widgets_area_submit {
			width:  100%;
			margin: 0 0 1em;
			display: block;
		}
		.trx_addons_widgets_area_submit .trx_addons_widgets_area_button {
			margin-right: 0.5em;
		}
	}
}


/* Widgets parameters */
.widget-control-actions {
	margin-top: 1.5em;
}
.widgets_param_fullwidth {
	width: 100%;
}
.widgets_param_maxwidth {
	max-width: 220px;
}
[class*="widget_field_type_"] {
	margin-top: 1.25em;
}
[class*="widget_field_type_"] > label {
	margin-right: 6px;
}
.widget_field_title {
	display:block;
	font-weight: bold;
	margin-bottom:4px;
}
.widget_field_description {
	display:block;
	font-size: 0.9em;
	font-style:italic;
	margin-bottom: 5px;
	color: #666;
}

.widget_field_type_info {
	display: block;
	padding: 12px 10px;
	background-color:#f7f7f7;
	border-left: 3px solid #888;
}
.widget_field_type_info > .widget_field_title {
	font-weight: normal;
	text-transform:uppercase;
}

.widget_field_type_icons > *,
.widget_field_type_color > *,
.widget_field_type_image > * {
	vertical-align:top;
}

.widget_field_type_image > input[type="text"],
.widget_field_type_media > input[type="text"],
.widget_field_type_audio > input[type="text"],
.widget_field_type_video > input[type="text"] {
	width: 73%;
}
.widget_field_type_image > a.trx_addons_media_selector,
.widget_field_type_media > a.trx_addons_media_selector,
.widget_field_type_audio > a.trx_addons_media_selector,
.widget_field_type_video > a.trx_addons_media_selector {
	display:inline-block;
	width: 26%;
	@include border-box;
}

.widget_field_type_switch > .widgets_param_box > label,
.widget_field_type_radio > .widgets_param_box > label {
	display:inline-block;
	margin-right:0.5em;
}
.widget_field_type_switch.widget_field_dir_vertical > .widgets_param_box > label,
.widget_field_type_radio.widget_field_dir_vertical > .widgets_param_box > label {
	display:block;
	margin-bottom:0.3em;
}
.widget_field_type_switch > .widgets_param_box > input[type="radio"],
.widget_field_type_radio > .widgets_param_box > input[type="radio"] {
	margin-right:0;
}

.widget_field_type_checklist > .widgets_param_box {
	display:block;
	width:100%;
	max-height: 10em;
	overflow-y:auto;
}
.widget_field_type_checklist > .widgets_param_box > label {
	display:block;
	margin-bottom:0.3em;
}
.widget_field_type_checklist.widget_field_dir_horizontal > .widgets_param_box > label {
	display:inline-block;
	margin-right:0.5em;
}

.wp-color-result {
	margin: 0;
}
.widget_field_type_icons {
	position:relative;
}


/* Dialog popup
-----------------------------------------------------------------*/
.trx-addons-dialog {
	display: none;
	@include fixed-cover(9999);
	background-color: rgba(0, 0, 0, 0.07);
}
.trx-addons-dialog-modal {
	@include abs-cc;
	width: 50%;
	min-width: 280px;
	max-width: 640px;
	@include box-shadow(0 0 10px rgba(0, 0, 0, 0.2));
}
.trx-addons-dialog-content {
	background-color: #fff;
}
.trx-addons-dialog-header {
	@include flex;
	@include flex-direction(row);
	@include flex-justify-content(space-between);
	@include flex-align-items(center);
	font-weight: 600;
	line-height: 1;
	text-transform: uppercase;
	border-bottom: 1px solid #eee;
	background-color: #f7f7f7;
	padding: 1em;
	position: relative;

	.trx-addons-dialog-header-title-area {
		@include flex;
		@include flex-direction(row);
		@include flex-justify-content(flex-start);
		@include flex-align-items(center);
		color: #000;
	}
	.trx-addons-dialog-header-logo {
		margin-right: 0.5em;

		img {
			max-height: 1.5em;
			width: auto;
		}
	}
	.trx-addons-dialog-header-button-close {
		@include abs-rt;
		height: 100%;
		width: 40px;
		@include flex;
		@include flex-direction(row);
		@include flex-justify-content(center);
		@include flex-align-items(center);
		cursor: pointer;

		&:hover {
			background-color: #aa0000;
			color: #fff;
		}
	}
}

.trx-addons-dialog-body {
	.trx_addons_tabs_vertical .trx_addons_tabs_section {
		width: 100%;
		min-height: 0;
		max-height: 70vh;

		overflow-x: hidden;
		overflow-y: scroll;
		padding: 0 1em;
		// Firefox
		scrollbar-width: thin;
		scrollbar-color: $tab_border_color $subtab_background_color;

		// WebKit-based browsers
		&::-webkit-scrollbar {
			width: 8px;
		}
		&::-webkit-scrollbar-track {
			background: $subtab_background_color;
		}
		&::-webkit-scrollbar-thumb {
			background-color: $tab_border_color;
			border: 1px solid $subtab_background_color;
			@include border-radius(6px);
		}

	}
	.trx_addons_options_item {
		padding: 1em 0;
		border-top: none !important;

		&:not(:first-child) {
			padding-top: 0;
		}
	}
	.trx_addons_options_item_title {
		padding-right: 0;
		width: 220px;
	}
	.trx_addons_options_item_field {
		max-width: none !important;
		min-height: 2em;
	}
	.trx_addons_icon_selector + .trx_addons_list_icons {
		max-width: none;
		width: 388px;
	}
	.wp-picker-container {
		position: absolute;
	}
}

.trx-addons-dialog-footer {
	padding: 1em;
	border-top: 1px solid #eee;

	.trx-addons-dialog-footer-buttons {
		text-align: right;
		
		button {
			@include transition-colors;
			background-color: transparent;
			color: #007cba;
			border: 1px solid #007cba;
			border-radius: 5px;
			font-size: 14px;
			line-height: 19px;
			padding: 8px 20px;
			cursor: pointer;

			&:hover {
				background-color: #007cba;
				color: #fff;
			}
		}

		i.loading {
			-webkit-animation: spin 3s linear infinite;
			animation: spin 3s linear infinite;
		}
		
		i.loader-hidden {
			display: none;
		}
	}
}


/* Menu item settings
-----------------------------------------------------------------*/
.menu-item-actions {
	position: relative;

	.item-settings {
		@include abs-rb(0, 7px);
	}
}
// .menu-item-has-submenu-settings {
// 	.menu-item-handle {
// 		background-color: #ffeecc;
// 	}
// }
.menu-item-has-submenu-layout {
	.menu-item-handle {
		background-color: #eeffcc;
	}
}

/* Layouts selector
-----------------------------------------------------------------*/
.field-layout-submenu span[class*="field-title"] {
	display: block;
}
.field-layout-submenu .trx_addons_post_editor {
	display: block;
	margin-bottom: 0.5em;
}
.field-layout-submenu .trx_addons_post_editor:before {
	content: ' ';
	display: block;
	@include box(100%, 0);
}



/* Image selector
-----------------------------------------------------------------*/
img.trx_addons_image_preview {
	max-height:50px;
	width: auto;
}
.trx_addons_media_selector_preview {
	display:none;
	margin-right: -1%
}
.trx_addons_media_selector_preview.trx_addons_media_selector_preview_with_image {
	@include flex;
	@include flex-direction(row);
	@include flex-wrap(wrap);
	@include flex-justify-content(space-between);
	@include flex-align-items(flex-start);
}
.trx_addons_media_selector_preview.trx_addons_media_selector_preview_with_image:not(:empty) {
	margin-bottom: 1em;
}
.trx_addons_media_selector_preview img {
	display: inline-block;
	vertical-align: top;
	@include box(auto, auto);
	max-width: 100%;
	max-height: 150px;
}
.trx_addons_media_selector_preview > img,
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image {
	margin: 0 1% 1% 0;
	position:relative;
}
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image {
	@include flex;
	@include flex-direction(row);
	@include flex-wrap(wrap);
	@include flex-justify-content(center);
	@include flex-align-content(center);
	@include flex-align-items(center);
	@include flex-basis(24%);
	cursor:pointer;
	border: 2px solid #fff;
	@include border-box;
	@include transition-property(border-color);
	background-image: url(images/transparent.png);
	background-position: left top;
	background-repeat: repeat;
	background-size: 12px 12px;
	overflow: hidden;
	max-height: 150px;
}
.trx_addons_media_selector_preview_single {
	max-width: 60%;
}
.trx_addons_media_selector_preview_single > .trx_addons_media_selector_preview_image {
	@include flex-basis(initial);
	max-height: none;
}
.trx_addons_media_selector_preview_single img {
	max-height: none;
}
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image:focus {
	outline: 0;
	border-color: $field_outline_color;
}
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image > a {
	padding: 0.3em 0.5em;
}
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image:before {
	content: ' ';
	@include bg-mask(#0f1011, 0.5);
	opacity: 0;
	pointer-events: none;
	@include transition-properties(background-color,opacity);
}
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image:focus:before,
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image:hover:before {
	opacity: 1;
}
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image:after {
	content: '\e8fb';
	font-family: $trx_addons_icons;
	font-size: 10px;
	display:block;
	@include abs-cc;
	@include square(2.5em);
	@include border-box;
	/*
	color: $field_border_color;
	background-color: #f7f7f7;	
	*/
	color: #fff;
	opacity: 0;
	@include transition-properties(color,border-color,background-color,opacity);
}
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image:focus:after,
.trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image:hover:after {
	/*
	color: $field_outline_color;
	background-color: #ebebeb;
	*/
	opacity: 1;
}
.trx_addons_image_selector_field[type="text"],
.trx_addons_thumb_selector_field[type="text"] {
	vertical-align:top;
	width: auto !important;
}
.trx_addons_image_selector_field[type="text"] ~ .trx_addons_media_selector_preview,
.trx_addons_thumb_selector_field[type="text"] ~ .trx_addons_media_selector_preview {
	display:inline-block;
	vertical-align: top;
	margin: 0 1em;
}
.trx_addons_image_selector_field ~ .trx_addons_media_selector_preview,
.trx_addons_thumb_selector_field ~ .trx_addons_media_selector_preview {
	max-width: 200px;
	height: auto;
	border: 1px solid #ccc;
	padding: 5px;
	@include box-shadow(5px 5px 10px #ccc);
}
.trx_addons_thumb_selector_field ~ .trx_addons_media_selector_preview {
	max-width: 75px;
}
.trx_addons_image_selector_field ~ .trx_addons_media_selector_preview > img,
.trx_addons_image_selector_field ~ .trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image,
.trx_addons_thumb_selector_field ~ .trx_addons_media_selector_preview > img,
.trx_addons_thumb_selector_field ~ .trx_addons_media_selector_preview > .trx_addons_media_selector_preview_image {
	margin: 0;
}
.widget-content .trx_addons_media_selector_preview img {
	max-height:150px;
}

input[type="button"].trx_addons_media_selector {
	font-size: 14px;
	line-height: 30px;
	height: 32px;
	padding: 0 20px;
}


/* Layouts image
----------------------------------------------------------------- */
.trx_addons_cpt_column_image_preview {
	max-width: 75px;
	height: auto;
	border: 1px solid #ccc;
	padding: 5px;
	@include box-shadow(5px 5px 10px #ccc);
}
.trx_addons_cpt_layouts_image_preview {
	max-width: 95%;
}
.trx_addons_cpt_column_shortcode {
	border: 1px solid #ccc;
	padding: 0.25em 0.5em;
	background-color: #f0f0f0;
	display: inline-block;
	vertical-align: top;
}
.trx_addons_cpt_column_shortcode + .trx_addons_cpt_column_image_preview {
	margin-top: 1em;
}


/* Color selector
-----------------------------------------------------------------*/
.trx_addons_color_selector_preview {
	border: 1px solid #ccc;
	@include square(32px);
	@include box-shadow(5px 5px 10px #ccc);
}


/* Icons selector
---------------------------------------------------------------- */
#trx_addons_editor_icons {
	display:none;
	@include abs-lt(0,0,600000);	// To place icons over the WP Customizer panels!
	@include box(307px, 261px);
	overflow-x:hidden;
	overflow-y:scroll;
	background-color:#f0f0f0;
	padding:1px 0 0 1px;
	border: 2px solid #ccc;
}
#trx_addons_editor_icons span {
	display:inline-block;
	vertical-align:top;
	@include square(2em);
	border: 1px solid #ccc;
	margin: 0 1px 1px 0;
	background-color:#fff;
	cursor:pointer;
	@include border-radius(2px);
}
#trx_addons_editor_icons span:before {
	margin:0;
}
#trx_addons_editor_icons span:hover {
	background-color:#f0f0f0;
	border: 1px solid #bbb;
	@include box-shadow(0px 0px 3px 0px rgba(0, 0, 0, 0.2));	
}


/* Icons selector (in the ThemeREX Addons options, meta-boxes, VC shortcode params)
---------------------------------------------------------------- */
.trx_addons_icon_selector {
	display:inline-block;
	font-size: 18px;
	@include square(36px);
	@include border-radius(2px);
	border: 1px solid $field_border_light;
	background-size: 24px;
	background-position:center;
	background-repeat:no-repeat;
	cursor:pointer;
	margin-top: -3px;
	@include transition-property(border-color);
}
.trx_addons_icon_selector:not([class*="icon-"]):not([class*="image-"]):before,
.trx_addons_list_icons span.none:before {
	content: '\e8f3';
	font-family: $trx_addons_icons;
	color: #ced3d8;
	line-height: inherit !important;
}
.trx_addons_icon_selector[class*="icon-"]:before {
	color: #6c7781;
}
.trx_addons_icon_selector:hover {
	border-color:$field_border_color;
}
.trx_addons_icon_selector:focus {
	outline: 0;
	border: 1px solid $accent_color;
	@include box-shadow(0 0 0 1px $accent_color);
}

.trx_addons_list_icons {
	display: inline-block;
	max-width:100%;
}
.trx_addons_icon_selector + .trx_addons_list_icons {
	display:none;
	position:absolute;
	z-index:1000;
	width: 400px;
	max-width: 100%;
	@include border-box;
	padding:12px;
	background-color: #fff;
	border: 1px solid $field_border_light;
	@include box-shadow(0 3px 20px rgba(0,0,0,0.07));
}
.trx_addons_options_item[class*="column-"] .trx_addons_icon_selector + .trx_addons_list_icons {
	max-width: none;
}
.trx_addons_list_icons:not(.trx_addons_list_icons_inline):before {
	content: ' ';
	display: block;
	@include square(8px);
	border: 1px solid $field_border_light;
	border-top-color: transparent;
	border-right-color: transparent;
	background-color: #fff;
	@include abs-lt(15px, -6px);
	@include rotate(135deg);
}
.trx_addons_list_icons_wrap {
	width: 100%;
	overflow-x: hidden;
	overflow-y: visible;
}
.trx_addons_list_icons_inner {
	height: 270px;
	margin-right: -17px;
	overflow-x:hidden;
	overflow-y:scroll;
}
.trx_addons_list_icons_inline {
	padding: 0;
}
.trx_addons_list_icons_inline .trx_addons_list_icons_inner {
	height: 380px;
	margin-right: 0;
}
.trx_addons_list_icons input[type="text"].trx_addons_list_icons_search {
	display: block;
	font-size: 13px;
	width: 100% !important;
	height: auto;
	padding: 9px;
	margin-bottom: 12px;
	border-color: $field_border_light;
}
.trx_addons_list_icons input[type="text"].trx_addons_list_icons_search:focus {
	border-color: $accent_color;
}
.trx_addons_list_icons span {
	position:relative;
	display:inline-block;
	vertical-align:top;
	font-size: 24px;
	@include square(64px);
	margin: 0 1px 1px 0;
	border: 1px solid transparent;
	margin: 0 8px 30px 0;
	color: #6c7781;
	background-color:#fff;
	background-size: 32px;
	background-position:center;
	background-repeat:no-repeat;
	cursor:pointer;
	@include border-radius(2px);
	@include border-box;
	@include transition-property(background-color);
}
.trx_addons_icon_selector + .trx_addons_list_icons span {
	font-size: 18px;
	@include square(44px);
	background-size: 24px;
	margin: 1px 1px 0 0;
	border: 1px solid transparent;
}
.trx_addons_list_icons span i {
	@include abs-lt(0, 66px);
	width: 100%;
	display:block;
	text-align:center;
	@include font(11px, 11px);
	padding-bottom: 4px;
	text-overflow: ellipsis;
	overflow: hidden;
	overflow-wrap: anywhere;
}
.trx_addons_list_icons span:focus {
	outline: none;
	border-color: $field_outline_color;
}
.trx_addons_list_icons span:before,
.trx_addons_icon_selector:before {
	margin:0 !important;
	vertical-align: top !important;
	line-height: unset;
}
.trx_addons_list_icons span:hover,
.trx_addons_list_icons span.trx_addons_active {
	background-color:#f4f6f6;
}
.trx_addons_list_icons span.trx_addons_list_hidden {
	display: none;
}



/* Select 2
-------------------------------------------------------------- */
.select2-container {
	@include border-box;
    display: inline-block;
    margin: 0;
    position: relative;
    vertical-align: middle
}
.select2-container .select2-selection--single {
	@include border-box;
    cursor: pointer;
    display: block;
    height: 28px;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none
}
.select2-container .select2-selection--single .select2-selection__rendered {
    display: block;
    padding-left: 8px;
    padding-right: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}
.select2-container .select2-selection--single .select2-selection__clear {
    position: relative
}
.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered {
    padding-right: 8px;
    padding-left: 20px
}
.select2-container .select2-selection--multiple {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    min-height: 32px;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none
}
.select2-container .select2-selection--multiple .select2-selection__rendered {
    display: inline-block;
    overflow: hidden;
    padding-left: 8px;
    text-overflow: ellipsis;
    white-space: nowrap
}
.select2-container .select2-search--inline {
    float: left;
	margin-top: 5px;
}
.select2-container .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 100%;
    margin-top: 5px;
    padding: 0
}
.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none
}
.select2-dropdown {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    position: absolute;
    left: -100000px;
    width: 100%;
    z-index: 1051
}
.select2-results {
    display: block
}
.select2-results__options {
    list-style: none;
    margin: 0;
    padding: 0
}
.select2-results__option {
    padding: 6px;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-select: none
}
.select2-results__option[aria-selected] {
    cursor: pointer
}
.select2-container--open .select2-dropdown {
    left: 0
}
.select2-container--open .select2-dropdown--above {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}
.select2-container--open .select2-dropdown--below {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0
}
.select2-search--dropdown {
    display: block;
    padding: 4px
}
.select2-search--dropdown .select2-search__field {
    padding: 4px;
    width: 100%;
    box-sizing: border-box
}
.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none
}
.select2-search--dropdown.select2-search--hide {
    display: none
}
.select2-close-mask {
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    min-height: 100%;
    min-width: 100%;
    height: auto;
    width: auto;
    opacity: 0;
    z-index: 99;
    background-color: #fff
}
.select2-hidden-accessible {
    border: 0!important;
    clip: rect(0 0 0 0)!important;
    height: 1px!important;
    margin: -1px!important;
    overflow: hidden!important;
    padding: 0!important;
    position: absolute!important;
    width: 1px!important
}
.select2-container--default .select2-selection--single {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 28px
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: 700
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px
}
.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0
}
.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__clear {
    float: left
}
.select2-container--default[dir=rtl] .select2-selection--single .select2-selection__arrow {
    left: 1px;
    right: auto
}
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #eee;
    cursor: default
}
.select2-container--default.select2-container--disabled .select2-selection--single .select2-selection__clear {
    display: none
}
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px
}
.select2-container--default .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: text;
    height: auto !important;
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0 5px;
    width: 100%
}
.select2-container--default .select2-selection--multiple .select2-selection__rendered li {
    list-style: none;
    margin-bottom: 0;
}
.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #999;
    margin-top: 5px;
    float: left
}
.select2-container--default .select2-selection--multiple .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: 700;
    margin-top: 5px;
    margin-right: 10px
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 0 5px
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    margin-right: 2px
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #333
}
.select2-container--default[dir=rtl] .select2-selection--multiple .select2-search--inline,
.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice,
.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__placeholder {
    float: right
}
.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice {
    margin-left: 5px;
    margin-right: auto
}
.select2-container--default[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove {
    margin-left: 2px;
    margin-right: auto
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid #000 1px;
    outline: 0
}
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #eee;
    cursor: default
}
.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
    display: none
}
.select2-container--default.select2-container--open.select2-container--above .select2-selection--multiple,
.select2-container--default.select2-container--open.select2-container--above .select2-selection--single {
    border-top-left-radius: 0;
    border-top-right-radius: 0
}
.select2-container--default.select2-container--open.select2-container--below .select2-selection--multiple,
.select2-container--default.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa
}
.select2-container--default .select2-search--inline .select2-search__field {
    background: 0 0;
    border: none;
    outline: 0;
    box-shadow: none !important;
    -webkit-appearance: textfield;
    margin-top: 0 !important;
}
.select2-container--default .select2-results>.select2-results__options {
    max-height: 200px;
    overflow-y: auto
}
.select2-container--default .select2-results__option[role=group] {
    padding: 0
}
.select2-container--default .select2-results__option[aria-disabled=true] {
    color: #999
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #ddd
}
.select2-container--default .select2-results__option .select2-results__option {
    padding-left: 1em
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__group {
    padding-left: 0
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -1em;
    padding-left: 2em
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -2em;
    padding-left: 3em
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -3em;
    padding-left: 4em
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -4em;
    padding-left: 5em
}
.select2-container--default .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option .select2-results__option {
    margin-left: -5em;
    padding-left: 6em
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #0073aa;
    color: #fff
}
.select2-container--default .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px
}
.select2-container--classic .select2-selection--single {
    background-color: #f7f7f7;
    border: 1px solid #aaa;
    border-radius: 4px;
    outline: 0;
    background-image: -webkit-linear-gradient(top, #fff 50%, #eee 100%);
    background-image: linear-gradient(to bottom, #fff 50%, #eee 100%);
    background-repeat: repeat-x
}
.select2-container--classic .select2-selection--single:focus {
    border: 1px solid #0073aa
}
.select2-container--classic .select2-selection--single .select2-selection__rendered {
    color: #444;
    line-height: 28px
}
.select2-container--classic .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: 700;
    margin-right: 10px
}
.select2-container--classic .select2-selection--single .select2-selection__placeholder {
    color: #999
}
.select2-container--classic .select2-selection--single .select2-selection__arrow {
    background-color: #ddd;
    border: none;
    border-left: 1px solid #aaa;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    height: 26px;
    position: absolute;
    top: 1px;
    right: 1px;
    width: 20px;
    background-image: -webkit-linear-gradient(top, #eee 50%, #ccc 100%);
    background-image: linear-gradient(to bottom, #eee 50%, #ccc 100%);
    background-repeat: repeat-x
}
.select2-container--classic .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0
}
.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__clear {
    float: left
}
.select2-container--classic[dir=rtl] .select2-selection--single .select2-selection__arrow {
    border: none;
    border-right: 1px solid #aaa;
    border-radius: 0;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    left: 1px;
    right: auto
}
.select2-container--classic.select2-container--open .select2-selection--single {
    border: 1px solid #0073aa
}
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow {
    background: 0 0;
    border: none
}
.select2-container--classic.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #888 transparent;
    border-width: 0 4px 5px 4px
}
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--single {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    background-image: -webkit-linear-gradient(top, #fff 0, #eee 50%);
    background-image: linear-gradient(to bottom, #fff 0, #eee 50%);
    background-repeat: repeat-x
}
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--single {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background-image: -webkit-linear-gradient(top, #eee 50%, #fff 100%);
    background-image: linear-gradient(to bottom, #eee 50%, #fff 100%);
    background-repeat: repeat-x
}
.select2-container--classic .select2-selection--multiple {
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: text;
    outline: 0
}
.select2-container--classic .select2-selection--multiple:focus {
    border: 1px solid #0073aa
}
.select2-container--classic .select2-selection--multiple .select2-selection__rendered {
    list-style: none;
    margin: 0;
    padding: 0 5px
}
.select2-container--classic .select2-selection--multiple .select2-selection__clear {
    display: none
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice {
    background-color: #e4e4e4;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: default;
    float: left;
    margin-right: 5px;
    margin-top: 5px;
    padding: 0 5px
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove {
    color: #888;
    cursor: pointer;
    display: inline-block;
    font-weight: 700;
    margin-right: 2px
}
.select2-container--classic .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #555
}
.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice {
    float: right
}
.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice {
    margin-left: 5px;
    margin-right: auto
}
.select2-container--classic[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove {
    margin-left: 2px;
    margin-right: auto
}
.select2-container--classic.select2-container--open .select2-selection--multiple {
    border: 1px solid #0073aa
}
.select2-container--classic.select2-container--open.select2-container--above .select2-selection--multiple {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0
}
.select2-container--classic.select2-container--open.select2-container--below .select2-selection--multiple {
    border-bottom: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0
}
.select2-container--classic .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
    outline: 0
}
.select2-container--classic .select2-search--inline .select2-search__field {
    outline: 0;
    box-shadow: none
}
.select2-container--classic .select2-dropdown {
    background-color: #fff;
    border: 1px solid transparent
}
.select2-container--classic .select2-dropdown--above {
    border-bottom: none
}
.select2-container--classic .select2-dropdown--below {
    border-top: none
}
.select2-container--classic .select2-results>.select2-results__options {
    max-height: 200px;
    overflow-y: auto
}
.select2-container--classic .select2-results__option[role=group] {
    padding: 0
}
.select2-container--classic .select2-results__option[aria-disabled=true] {
    color: grey
}
.select2-container--classic .select2-results__option--highlighted[aria-selected] {
    background-color: #3875d7;
    color: #fff
}
.select2-container--classic .select2-results__group {
    cursor: default;
    display: block;
    padding: 6px
}
.select2-container--classic.select2-container--open .select2-dropdown {
    border-color: #0073aa
}
div.select2-container .select2-choice {
	background-color: #fff;
	border: 1px solid #ddd;
	-webkit-border-radius: 0;
	    -ms-border-radius: 0;
			border-radius: 0;
	-webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
	    -ms-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
			box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07) inset;
	color: #32373c;
	outline: 0 none;
	-webkit-transition: border-color 50ms ease-in-out 0s;
	    -ms-transition: border-color 50ms ease-in-out 0s;
	     -o-transition: border-color 50ms ease-in-out 0s;
			transition: border-color 50ms ease-in-out 0s;
}
div.select2-drop {
	border: 1px solid #ddd;
	-webkit-border-radius: 0;
	    -ms-border-radius: 0;
			border-radius: 0;
}



/* Admin columns
----------------------------------------------------------------- */
.trx_addons_meta_row + .trx_addons_meta_row {
	margin-top: 0.25em;
}
.trx_addons_meta_data {
	font-weight: bold;
}
.trx_addons_meta_description {
	font-style: italic;
	font-weight: normal;
}
.trx_addons_cpt_column_points {
	display: inline-block;
	vertical-align:top;
	font-size: 2em;
}
.trx_addons_meta_item + .trx_addons_meta_item:before {
	content: '/';
	display: inline-block;
	line-height: inherit;
	margin: 0 0.3em;
}


/* Banners in the Theme Panel and Demo data installer
----------------------------------------------------- */
.trx_banners_item {
	display:none;
	padding:2em;
	background-color: #fff;
	border: 1px solid #ddd;
	position:relative;
	z-index:1;
	overflow:hidden;
}
.trx_banners_item_active {
	display: block;
}
.trx_banners_item_image {
	float: left;
	margin:0 2em 0 0;
	width: 46%;
}
.trx_banners_item_image img {
	width: auto;
	height: auto;
	max-width:100%;
	-webkit-box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.1);
	    -ms-box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.1);
	        box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.1);
}
.trx_banners_item_text {
	overflow: hidden;
}
.trx_banners_item_title {
	margin-top: 0;
}
.trx_banners_item_link {
	display: inline-block;
}
.trx_banners_item_link:not(.trx_banners_item_link_block) {
	font-size: 1em;
	margin-top: 1em;
	height: auto;
	line-height:1.25em;
	padding: 0.6em 1em;
}
.trx_banners_item_link_block {
	display:block;
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
}

@media (max-width: 1279px) {
	.trx_banners_item_image {
		float: none;
		margin:0 0 2em 0;
		width: 100%;
	}
}


/* Additional fields in taxonomies
----------------------------------------------------------------- */
.form-field[class*="trx_addons_column-"] {
	margin-top: 0;
	margin-bottom: 2em;
}
.trx_addons_location_city {
	font-weight: bold;
	display:block;
}
.trx_addons_location_city:before {
	display:none !important;
}


/* Sports breadcrumbs
----------------------------------------------------------------- */
.trx_addons_sport_breadcrumbs_item + .trx_addons_sport_breadcrumbs_item:before { 
	content: '/';
	display: inline-block;
	line-height:inherit;
	margin: 0 0.3em;
}
.post-type-cpt_competitions .subsubsub,
.post-type-cpt_rounds .subsubsub,
.post-type-cpt_matches .subsubsub,
.post-type-cpt_players .subsubsub {
	display:none;
}


/* Tabs for the page CPT Layouts ( Theme Elements )
------------------------------------------------------------ */
.trx_addons_cpt_layouts_tabs {
	@include flex;
	@include flex-direction(row);
	@include flex-wrap(wrap);
	@include flex-align-items(stretch);
	@include flex-justify-content(flex-start);
	padding: 0 0.5em;
	border-bottom: 1px solid #c3c4c7;
	margin: 2em 0 1em;
	list-style: none;
	font-size: 1.2em;

	@media (max-width: 1023px) {
		font-size: 1.1em;
	}
	@media (max-width: 639px) {
		font-size: 1em;
	}

	.trx_addons_cpt_layouts_tab {
		display: inline-block;
		vertical-align: top;
		margin: 0 1px 0 0;
		padding: 0;
		@include border-box;
		border: 1px solid #c3c4c7;
		border-bottom-width: 0px;
		border-top-left-radius: 4px;
		border-top-right-radius: 4px;
		background: $tab_background_active;
		font-weight: normal;

		a {
			display: block;
			padding: 1em 2em;
			color: $tab_text_color;
			text-decoration: none;

			&:hover {
				color: #2271b1;
			}

			@media (max-width: 1023px) {
				padding: 0.5em 1em;
			}
			@media (max-width: 639px) {
				padding: 0.5em 0.5em;
			}
			@media (max-width: 479px) {
				padding: 0.5em 0.25em;
			}
		}

		&.trx_addons_cpt_layouts_tab_active {
			position: relative;
			top: 1px;
			background-color: #f0f0f1;
			font-weight: 600;

			a {
				color: #2271b1;
			}
		}
	}
}


/* Fixes for the widgets block editor (since WordPress 5.8+)
------------------------------------------------------------ */
.wp-block-widget-area {
	select {
		visibility: visible !important;
		-webkit-appearance: listbox !important;
		background-image: none !important;
	}
	input[type="radio"] {
		-webkit-appearance: radio !important;
		box-shadow: none !important;
	}
	input[type="checkbox"] {
		-webkit-appearance: checkbox !important;
		box-shadow: none !important;
	}
	input[type="radio"]:before,
	input[type="checkbox"]:before {
		display: none !important;
	}
	.wp-block-legacy-widget__edit-form {
		input[type="checkbox"] {
			margin-right: 0.3em !important;
		}
		.widget_field_type_checklist {
			.trx_addons_terms_selector {
				label {
					@include flex;
					@include flex-direction(row);
					@include flex-align-items(center);
					@include flex-justify-content(flex-start);
				}
			}
		}
	}
}
