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

/* Theme Panel
-----------------------------------------------------------------*/
.trx_addons_theme_panel .trx_addons_tabs > ul.ui-tabs-nav  {
	font-size: 1.1538em;
	line-height: 1.5em;
}
@media (max-width: 1279px) {
	.trx_addons_theme_panel  {
		font-size: 1em;
	}
}
.update-nag ~ .trx_addons_theme_panel,
.notice ~ .trx_addons_theme_panel {
	margin-top: 2em;
}

.trx_addons_theme_panel_busy {
	pointer-events: none;
}

.trx_addons_theme_panel .trx_addons_tabs_section {
	font-size: 1.2308em;
	line-height: 1.5em;
	padding: 3.75em;
	margin-right: 2em;
	color: $text_color;	
}
@media (max-width: 1023px) {
	.trx_addons_theme_panel .trx_addons_tabs_section {
		margin-right: 1em;
		padding: 2em;
	}
}

.trx_addons_theme_panel_section_content  {
	position: relative;
}


/* View mode buttons */
.trx_addons_theme_panel_section_content > .trx_addons_theme_panel_section_view_mode {
	@include abs-rt;
}
@media (max-width: 767px) {
	.trx_addons_theme_panel_section_content > .trx_addons_theme_panel_section_view_mode {
		position: static;
		display: block;
		margin-bottom: 1.5em;
	}
}

.trx_addons_theme_panel_section_view_mode_thumbs,
.trx_addons_theme_panel_section_view_mode_list {
	display: inline-block;
	vertical-align: top;
	text-align: center;
	@include square( 3em );
	@include border-radius(2px);
	border: 1px solid $border_color;
	cursor: pointer;

	&:before {
		font-family: $trx_addons_icons;
		font-size: 1.75em;
		color: $text_light;
		@include transition-property(color);
	}
	&:hover:before {
		color: $text_dark;
	}
}
.trx_addons_theme_panel_section_view_mode_thumbs:before {
	content: '\e913';
}
.trx_addons_theme_panel_section_view_mode_list:before {
	content: '\e8eb';
}

.trx_addons_section_mode_list .trx_addons_theme_panel_section_view_mode_list:before,
.trx_addons_section_mode_thumbs .trx_addons_theme_panel_section_view_mode_thumbs:before {
	color: $text_dark;
	cursor: default;
}


/* Common styles */
.trx_addons_theme_panel p {
	font-size: 1em;
}

.trx_addons_theme_panel .trx_addons_info_box {
	font-size: 0.9375em;
	margin-bottom: 3em;
}

.trx_addons_theme_panel .trx_buttons {
	float: none;
	text-align: left;
	margin-top: 2em;
}


/* Wizard */
.trx_addons_tabs.trx_addons_panel_wizard > ul.ui-tabs-nav {
	pointer-events: none;
}
.trx_addons_tabs.trx_addons_panel_wizard > ul.ui-tabs-nav > li > a {
	color: $tab_text_disabled;
}
.trx_addons_tabs.trx_addons_panel_wizard > ul.ui-tabs-nav > li > a:before {
	font-family: 'dashicons';
	content: '\f147';
	font-size: 15px;
	font-weight: normal;
	display: inline-block;
	vertical-align: top;
	@include square(16px);
	@include border-round;
	margin: 0.25em 0.5em 0 0;
	background-color: $tab_icon_disabled;
	color: $tab_background_color;
	text-align: left;
}
.trx_addons_tabs.trx_addons_panel_wizard > ul.ui-tabs-nav > li.trx_addons_panel_wizard_active > a {
	color: $tab_text_color;
}
.trx_addons_tabs.trx_addons_panel_wizard > ul.ui-tabs-nav > li.trx_addons_panel_wizard_active > a:before {
	background-color: $accent_color;
	color: #fff;
}
.trx_addons_tabs.trx_addons_panel_wizard > ul.ui-tabs-nav > li.trx_addons_panel_wizard_finished > a {
	color: $tab_text_color	
}
.trx_addons_tabs.trx_addons_panel_wizard > ul.ui-tabs-nav > li.trx_addons_panel_wizard_finished > a:before {
	background-color: $success_color;
}
.trx_addons_tabs.trx_addons_panel_wizard .trx_addons_tabs_section {
	position: relative;
}
.trx_addons_tabs.trx_addons_panel_wizard .trx_addons_tabs_section .trx_buttons > .trx_addons_button {
	position: absolute;
	//bottom: 0;	// Commented to avoid conflict with old themes
}


/* Admin message */
.trx_addons_theme_panel .trx_addons_result {
	margin: 1em 0 2em;
}
.trx_addons_tabs .error,
.trx_addons_tabs .notice,
.trx_addons_tabs .notice-error,
.trx_addons_tabs .updated {
	margin: 0;
	background-color: #fafafa;
}


/* Theme info */
.trx_addons_theme_panel_section_title {
	@include font(1.6875em, 1.4em, 400);
	margin: 0 0 0.75em;
	color: $text_color;
}
#trx_addons_theme_panel_section_general .trx_addons_theme_panel_section_title {
	@include font(2.5em, 1.4em, 300);
}
[class*="trx_addons_theme_panel_section_title_label"] {
	display: inline-block;
	vertical-align: top;
	@include font(11px, 16px, 500);
	padding: 2px 6px;
	@include border-radius(2px);
	color: #fff;
}
.trx_addons_theme_panel_section_title_label_active {
	background-color: $success_color;
}
.trx_addons_theme_panel_section_title_label_inactive {
	background-color: $error_color;
}
.trx_addons_theme_panel_section_title_label_free {
	background-color: $info_color;
}

.trx_addons_theme_panel_section_description {
	margin-bottom: 2em;
}
.trx_addons_theme_panel_section_description a {
	color: $accent_color;
	@include transition-property(color);
}
.trx_addons_theme_panel_section_description a:hover {
	color: $accent_hover;
}
.trx_addons_theme_panel_section_description a:focus {
	color: $accent_hover;
	outline: 1px dotted $accent_hover;
}
.trx_addons_theme_panel_section_description p {
	margin: 0;
}
.trx_addons_theme_panel_section_description p + p {
	margin-top: 0.3em;
}


/* Featured item */
.trx_addons_theme_panel_theme_active,
.trx_addons_theme_panel_featured_item_wrap {
	display: inline-block;
	vertical-align: top;
	@include border-box;
}
.trx_addons_theme_panel_theme_active {
	width: 66.6667%;
	padding-right: 12em;
}
@media (max-width: 1439px) {
	.trx_addons_theme_panel_theme_active {
		width: 66.6667%;
		padding-right: 2em;
	}
}
.trx_addons_theme_panel_featured_item_wrap {
	width: 33.3333%;
	padding-left: 2em;

	.trx_addons_theme_panel_banners_item {
		background-color: transparent;
		border: none;
		padding: 0;
		overflow: visible;
	}
	.trx_addons_theme_panel_banners_item_header {
		position: relative;
	}
	.trx_addons_theme_panel_banners_item_header:after {
		content: ' ';
		display: block;
		@include box(100%, 0);
		clear: both;
	}
	.trx_addons_theme_panel_banners_item_icon {
		@include abs-lc(-1.5em);
	}
	.trx_addons_theme_panel_banners_item_title {
		float: left;
		margin: 0;
		color: $text_color;
		font-weight: 400;
	}
	.trx_addons_theme_panel_banners_item_link {
		float: right;
		color: $accent_color;
	}
	.trx_addons_theme_panel_banners_item_link:hover {
		color: $accent_hover;
	}
	.trx_addons_theme_panel_banners_item_link:after {
		@include external-link;
	}
	.trx_addons_theme_panel_banners_item_image {
		margin-top: 1.5em;
		padding: 10px;
		background-color: $background_color;
	}
	.trx_addons_theme_panel_banners_item_image > a,
	.trx_addons_theme_panel_banners_item_image > span {
		display: block;
		position: relative;
	}
	.trx_addons_theme_panel_banners_item_image > a > .trx_addons_theme_panel_banners_item_image_mask {
		@include abs-cover;
		background-color: rgba(0,0,0,0.5);
		color: #fff;
		opacity: 0;
		@include transition-property(opacity);
		@include flex;
		@include flex-align-items(center);
		@include flex-justify_content(center);
	}
	.trx_addons_theme_panel_banners_item_image > a:hover > .trx_addons_theme_panel_banners_item_image_mask {
		opacity: 1;
	}
	.trx_addons_theme_panel_banners_item_image > a > .trx_addons_theme_panel_banners_item_image_mask:after {
		@include external-link;
		top: 1px;
	}
	.trx_addons_theme_panel_banners_item_image img {
		width: 100%;
		height: auto;
		vertical-align: top;
	}
}
@media (max-width: 1279px) {
	.trx_addons_theme_panel_theme_active,
	.trx_addons_theme_panel_featured_item_wrap {
		display: block;
		width: 100%;
		padding: 0;
	}
	.trx_addons_theme_panel_theme_active {
		padding: 0 0 2em;
	}
	.trx_addons_theme_panel_featured_item_wrap {
		padding-left: 0;
		max-width: 490px;
	}
}



/* System Info */
.trx_addons_theme_panel_sys_info {
	width: 100%;
	margin-top: 3em;
	color: $text_light;

	code {
		color: $text_color;
	}
	a {
		color: $accent_color;
		@include transition-property(color);
	}
	a:hover {
		color: $accent_hover;
	}
	.dashicons {
		font-size: 1.25em;
		@include abs-lt(-1.3em, 3px);
		color: $accent_color;
	}
	[data-tooltip-text] {
		color: $text_light;
		border-bottom: none;
	}
	/*
	.trx_addons_tooltip_present:after {
		content: '?';
		display: inline-block;
		vertical-align: top;
		margin-left: 0.5em;
		font-size: 8px;
		font-weight: bold;
		@include square(10px);
		@include border-round;
		background-color: #000;
		color: #fff;
	}
	*/
	table {
		border-collapse: collapse;
	}
	table th {
		text-align: left;
		padding: 0 0.3em 0.75em;
		font-size: 1.1em;
		font-weight: 600;
		color: $text_color;
	}
	table th.trx_addons_theme_panel_info_param {
		position: relative;
	}
	table td {
		padding: 0.2em;
	}
	table tr:nth-child(2) td {
		padding-top: 0.4em;
	}
	table td.trx_addons_theme_panel_info_param_checked {
		font-weight: 600;
		color: $success_color;
	}
	table td.trx_addons_theme_panel_info_param_unchecked {
		font-weight: 600;
		color: $error_color;
	}
}
.trx_addons_theme_panel_sys_info_check_result {
	margin: 2em 0 0;
}


/* License
-------------------------------- */
.trx_addons_theme_panel_section_license {
	margin-top: 3em;
	padding-top: 3em;
	border-top: 1px solid $border_light;
}
.trx_addons_theme_panel_section_license_title {
	margin: 0;
	@include font(1.75em, 1.4em, 300);
}
.trx_addons_theme_panel_section_license_info {
	margin: 1em 0 0;
}
.trx_addons_theme_panel_section_license_status {
	margin: 2em 0 0;
	color: $text_dark;
}
.trx_addons_theme_panel_section_license_domain {
	margin: 0.5em 0 0;
	color: $text_dark;
}
.trx_addons_theme_panel_section_license_status_label,
.trx_addons_theme_panel_section_license_domain_label {
	display: inline-block;
	vertical-align: top;
	width: 150px;
}
.trx_addons_theme_panel_section_license_status_state {
	@include font(11px, 16px, 500);
	padding: 2px 6px;
	@include border-radius(2px);
	color: #fff;
	background-color: $success_color;
}
.trx_addons_theme_panel_section_license_buttons {
	margin-top: 2em;
}


/* Fields
-------------------------------- */
.trx_addons_theme_panel_section_form_wrap {
	padding: 5% 25%;
	border: 1px solid $border_light;
	background-color: $background_light;
	margin-top: 3em;
	color: $text_color;
	@include border-radius(6px);
}
@media (max-width: 767px) {
	.trx_addons_theme_panel_section_form_wrap {
		padding: 10%;
	}
}
.trx_addons_theme_panel_section_form_title {
	color: $text_color;
	@include font(1.5em, 1.4em, 400);
	margin: 0;
}
.trx_addons_theme_panel_section_form_description {
	margin: 1em 0;
}
.trx_addons_theme_panel_section_form_field {
	margin-top: 1em;
}
.trx_addons_theme_panel_section_form_field_submit {
	margin-top: 2em;
}
.trx_addons_theme_panel_section_form_field_label {
	display: block;
	margin-bottom: 0.3em;
	color: $text_color;
}
.trx_addons_theme_panel_section_form_field_label > .required {
	color: #ff0000;
}
.trx_addons_theme_panel_section_form_field_checkbox {
	color: $text_color;
}
.trx_addons_theme_panel_section_form_field input[type="text"] {
	width: 100%;
}
.trx_addons_theme_panel_section_form_field_description {
	font-style: italic;
	display: inline-block;
	vertical-align: baseline;
	margin: 0 0 0 0.25em;
	color: $text_light;
}
.trx_addons_theme_panel_section_form_wrap a {
	color: $accent_color;
}
.trx_addons_theme_panel_section_form_wrap a:hover {
	color: $accent_hover;
}

.trx_addons_theme_panel_theme_active .trx_addons_theme_panel_install_wizard {
	margin-top: 1.5em;
}

.trx_addons_theme_panel_buttons {
	display: none;
}
.trx_addons_theme_panel_buttons:after {
	content: ' ';
	display: block;
	width: 100%;
	height: 0;
	clear: both;
}
#trx_addons_theme_panel_section_general .trx_addons_theme_panel_buttons,
.trx_addons_panel_wizard .trx_addons_theme_panel_buttons {
	display: block;
	margin-top: 1em;
}
#trx_addons_theme_panel_section_general .trx_addons_theme_panel_buttons {
	text-align: left;
}
.trx_addons_theme_panel_buttons .trx_addons_theme_panel_prev_step,
.trx_addons_theme_panel_buttons .trx_addons_theme_panel_next_step {
	float: right;
	margin-left: 1em;
}
.trx_addons_theme_panel_buttons .trx_addons_theme_panel_prev_step:not(.trx_addons_button_accent):before,
.trx_addons_theme_panel_buttons .trx_addons_theme_panel_next_step:not(.trx_addons_button_accent):after {
	font-size: 1.35em;
	margin-top: -2px;
}
.trx_addons_theme_panel_buttons .trx_addons_theme_panel_prev_step:not(.trx_addons_button_accent):before {
	content: '\e883';
	margin-right: 0.4em;
}
.trx_addons_theme_panel_buttons .trx_addons_theme_panel_next_step:not(.trx_addons_button_accent):after {
	content: '\e884';
	margin-left: 0.4em;
}
#trx_addons_theme_panel_section_general .trx_addons_theme_panel_buttons {
	margin-top: 2em;
	@include flex;
	@include flex-direction(row);
	@include flex-justify-content(space-between);
}
#trx_addons_theme_panel_section_general .trx_addons_theme_panel_buttons:after {
	display: none;
}

#trx_addons_theme_panel_section_general .trx_addons_theme_panel_buttons .trx_addons_theme_panel_next_step {
	float: none;
	margin-left: 0;
}

.trx_addons_theme_panel_section_info {
	display: inline-block;
	vertical-align: top;
}

.trx_addons_theme_panel .wp-picker-container input[type="text"].wp-color-picker {
	width: 4.5em;
}

/* Plugins list
-------------------------------- */
.trx_addons_theme_panel_plugins_list {
	@include flex;
	@include flex-direction(row);
	@include flex-justify-content(flex-start);
	@include flex-align-items(center);
	@include flex-wrap(wrap);
	margin-right: -15px;
	margin-bottom: 1.5em;
}
.trx_addons_theme_panel_plugins_list_item {
	display: block;
	@include flex-basis(25%);
	@include flex-shrink(0);
	@include flex-grow(0);
	@include border-box;
	padding: 0 15px 15px 0;
	position: relative;
}
@media (max-width: 1679px) {
	.trx_addons_theme_panel_plugins_list_item {
		@include flex-basis(33.3333%);
	}
}
@media (max-width: 1023px) {
	.trx_addons_theme_panel_plugins_list_item {
		@include flex-basis(50%);
	}
}
@media (max-width: 767px) {
	.trx_addons_theme_panel_plugins_list {
		margin-right: 0;
	}
	.trx_addons_theme_panel_plugins_list_item {
		@include flex-basis(100%);
		padding-right: 0;
	}
}

.trx_addons_theme_panel_plugins_list_item > a {
	display: block;
	width: 100%;
	height: 86px;
	@include border-box;
	@include border-radius(4px);
	padding: 14px;
	position: relative;
	text-decoration: none;
	border: 3px solid $border_hover;
	@include transition-properties(background-color,border-color);
}
.trx_addons_theme_panel_plugins_list_item > a,
.trx_addons_theme_panel_plugins_list_item > a:hover {
	color: $text_color;
}
.trx_addons_theme_panel_plugins_list_item > a[data-required="1"]:hover,
.trx_addons_theme_panel_plugins_list_item > a[data-state="deactivate"]:hover {
	cursor: not-allowed;
}
.trx_addons_theme_panel_plugins_list_item_checked > a {
	border-color: $accent_color;
}
.trx_addons_theme_panel_plugins_list_item > a:focus {
	outline: 0;
}
.trx_addons_theme_panel_plugins_list_item > a:focus:before {
	content: ' ';
	@include abs-lt(-7px, -7px);
	right: -7px;
	bottom: -7px;
	pointer-events: none;
	@include border-radius(4px);
	@include border-box;
	border: 4px solid $border_outline;
}
.trx_addons_theme_panel_plugins_list_item > a[data-state="deactivate"] {
	background-color: $background_installed;
	border-width: 1px;
	height: 82px;
}
.trx_addons_theme_panel_plugins_list_item > a[data-state="deactivate"]:focus:before {
	border-color: $border_hover;
}

.trx_addons_theme_panel_plugins_list_item_status {
	@include abs-rt;
	overflow: hidden;
	@include border-radius(0 0 0 3px);
}
.trx_addons_theme_panel_plugins_list_item_checked .trx_addons_theme_panel_plugins_list_item_status {
	background-color: $accent_color;
	color: #fff;
	@include transition-property(background-color);
}
.trx_addons_theme_panel_plugins_list_item_check {
	display: none;
	float: right;
	@include  square(17px);
}
.trx_addons_theme_panel_plugins_list_item_check:before {
	content: '\e8f3';
	font-family: $trx_addons_icons;
	font-size: 14px;
}
.trx_addons_theme_panel_plugins_list_item > a[data-state="deactivate"] .trx_addons_theme_panel_plugins_list_item_check,
.trx_addons_theme_panel_plugins_list_item_checked .trx_addons_theme_panel_plugins_list_item_check {
	display: block;
}
.trx_addons_theme_panel_plugins_list_item_check.trx_addons_loading:before {
	content: '\e800' !important;
}
.trx_addons_theme_panel_plugins_list_item > a[data-state="deactivate"] .trx_addons_theme_panel_plugins_list_item_check {
	color: $installed_color;
	background-color: transparent;
}
.trx_addons_theme_panel_plugins_list_item > a[data-state="deactivate"] .trx_addons_theme_panel_plugins_list_item_check:before {
	content: '\f147';
	font-family: "dashicons";
	font-size: 17px;
}
.trx_addons_theme_panel_plugins_list_item_state {
	float: right;
	display: block;
	height: 17px;
	@include font(11px, 17px, bold);
	display: inline-block;
	vertical-align: top;
	padding: 2px 0 2px 6px;

	.trx_addons_theme_panel_plugins_list_item_state_label_selected {
		display: none;
	}
	.trx_addons_theme_panel_plugins_list_item_checked > a &,
	.trx_addons_theme_panel_plugins_list_item:hover > a & {
		.trx_addons_theme_panel_plugins_list_item_state_label {
			display: none;
		}
		.trx_addons_theme_panel_plugins_list_item_state_label_selected {
			display: inline;
		}
	}
}
.trx_addons_loading + .trx_addons_theme_panel_plugins_list_item_state,
.trx_addons_theme_panel_plugins_list_item:not(.trx_addons_theme_panel_plugins_list_item_checked) > a .trx_addons_theme_panel_plugins_list_item_state {
	padding-right: 6px;
}
.trx_addons_theme_panel_plugins_list_item > a[data-state="deactivate"] .trx_addons_theme_panel_plugins_list_item_state {
	display: none;
}
.trx_addons_theme_panel_plugins_list_item:not(.trx_addons_theme_panel_plugins_list_item_checked) > a:not([data-state="deactivate"]) .trx_addons_theme_panel_plugins_list_item_status {
	background-color: $border_hover;
	color: $text_color;
}
.trx_addons_theme_panel_plugins_list_item_image {
	@include square(52px);
	display: inline-block;
	vertical-align: middle;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.trx_addons_theme_panel_plugins_list_item_title {
	display: inline-block;
	vertical-align: middle;
	width: calc(100% - 52px);
	max-height: 3em;
	overflow: hidden;
	padding-left: 14px;
	@include border-box;
	@include font(1em, 1.5em, normal);
}
@media (max-width: 767px) {
	.trx_addons_theme_panel_plugins_list_item_info {
		display: block;
		width: 100%;
		padding: 2em 0 0;
	}
}

.trx_addons_theme_panel_plugins_buttons + .trx_addons_theme_panel_plugins_list {
	margin-top: 2em;
}
.trx_addons_panel_wizard .trx_addons_theme_panel_plugins_list + .trx_addons_theme_panel_plugins_buttons {
	position: absolute;
}
.trx_addons_percent_loader {
	display: none;
	vertical-align: bottom;
	margin: 0 1em 0.1em 0;
	position: relative;
	overflow: hidden;
	@include square(3em);
}
.trx_addons_theme_panel_plugins_installer .trx_addons_percent_loader {
	margin-left: 1em;
}
.trx_addons_theme_panel.trx_addons_theme_panel_busy .trx_addons_percent_loader {
	display: inline-block;	
}
.trx_addons_percent_loader .trx_addons_percent_loader_bg {
	@include abs-cover(1);
	background-image: url(../../css/images/preloader.gif);
	background-size: 100% 100%;
	background-position: center;
	background-repeat: no-repeat;
	filter: hue-rotate(50deg) saturate(50%);
}
.trx_addons_percent_loader .trx_addons_percent_loader_value {
	@include abs-cc(2);
	display: inline-block;
	vertical-align: top;
	text-align: center;
	color: #00aa4a;
}


/* Section toolbal */
.trx_addons_theme_panel_section_toolbar {
	@include flex;
	@include flex-justify-content(space-between);
	@include flex-align-items(center);
	margin-bottom: 2em;
}

.trx_addons_theme_panel_section_filters {
	@include flex;
	@include flex-justify-content(flex-start);
	@include flex-align-items(center);
}
@media (max-width: 767px) {
	.trx_addons_theme_panel_section_toolbar {
		@include flex-align-items(flex-start);
	}
	.trx_addons_theme_panel_section_filters {
		@include flex-direction(column);
		@include flex-align-items(flex-start);
	}
	.trx_addons_theme_panel_section_filters_form {
		margin-bottom: 1em;
	}
	.trx_addons_theme_panel_section_filters_list {
		margin-bottom: 1em;
	}
}
@media (max-width: 479px) {
	.trx_addons_theme_panel_section_toolbar {
		@include flex-direction(column);
	}
	.trx_addons_theme_panel_section_filters_form {
		max-width: none;
		margin-right: 0;
	}
	.trx_addons_theme_panel_section_toolbar .trx_addons_theme_panel_section_view_mode {
		display: none;
	}
}
.trx_addons_theme_panel_section_filters_form {
	max-width: 15em;
	margin-right: 2em;
}
.trx_addons_theme_panel_section_filters_list {
	@include flex;
	@include flex-wrap(wrap);
	@include flex-justify-content(flex-start);
	@include flex-align-items(center);
	margin: 0;
}
.trx_addons_theme_panel_section_filters_list_item {
	margin-right: 1em;

	a {
		text-decoration: none;
		font-weight: 600;
		color: $text_color;
		@include transition-colors;
	}
	a:hover {
		color: $accent_hover;
	}
	&.filter_active {
		a {
			text-decoration: underline;
			color: $accent_color;
		}
	}
}



/* Demo data
-------------------------------- */
.trx_addons_panel_wizard #trx_addons_theme_panel_section_demo .trx_importer_advanced_settings_wrap {
	margin-bottom: 0;
}
.trx_addons_panel_wizard #trx_addons_theme_panel_section_demo .trx_importer .trx_buttons {
	margin-top: 2em;
}



/* Blocks
-------------------------------- */
.trx_addons_theme_panel_links {
	@include flex;
	@include flex-wrap(wrap);
	@include flex-align-items(stretch);
	@include flex-align-content(center);
	margin-top: 5em;
	padding-top: 5em;
	border-top: 1px solid $border_light;
	text-align: center;
	margin-right: -2em;
}
@media (max-width: 1023px) {
	.trx_addons_theme_panel_links {
		margin-right: -1em;
	}
}

/* Classic block */
.trx_addons_classic_block {
	display: inline-block;
	vertical-align:top;
	width: 25%;
	padding: 0 2em 2em 0;
	@include border-box;
}
@media (max-width: 1279px) {
	.trx_addons_classic_block {
		width: 33.3333%;
	}
}
@media (max-width: 1023px) {
	.trx_addons_classic_block {
		width: 50%;
		padding: 0 1em 1em 0;
	}
}
@media (max-width: 767px) {
	.trx_addons_classic_block {
		width: 100%;
		font-size: 1em;
	}
}
.trx_addons_classic_block_inner {
	display: inline-block;
	vertical-align:top;
	padding: 2em;
	@include box(100%, 100%);
	@include border-box;
	background-color: #fff;
	border: 1px solid #ddd;
	@include border-radius(2px);
	@include transition(transform .3s ease,box-shadow .3s ease);
}
.trx_addons_classic_block_inner:hover {
	@include box-shadow(0 10px 20px 0 rgba(0, 0, 0, 0.2));
	@include translateY(-3px);
}
.trx_addons_classic_block_image {
	width: auto;
	max-width: 100%;
	max-height: 100%;
	margin-bottom: 1em;
}
.trx_addons_classic_block_title {
	margin: 0;
}
.trx_addons_classic_block_description {
	margin: 1em 0;
	line-height:1.7em;
}
.trx_addons_classic_block a.trx_addons_classic_block_link,
.trx_addons_classic_block span.trx_addons_classic_block_link {
	@include font(1em, 1.7em);
	padding:0.5em 1em;
	height: auto;
	display: inline-block;
	margin: 0.5em 0.5em 0.5em 0;
	vertical-align:middle;
	@include transition-properties(border,background,color);
}
.trx_addons_classic_block span.trx_addons_classic_block_link_active {
	cursor: default;
	pointer-events: none;
}


/* Image block */
.trx_addons_image_block_wrap {
	margin-right: -2em;
	@include flex;
	@include flex-direction(row);
	@include flex-wrap(wrap);
	@include flex-align-items(stretch);
}
.trx_addons_image_block {
	display: inline-block;
	vertical-align:top;
	width: 25%;
	padding: 0 2em 2em 0;
	@include border-box;
}
@media (max-width: 1439px) {
	.trx_addons_image_block {
		width: 33.3333% !important;
	}
}
@media (max-width: 1279px) {
	.trx_addons_image_block {
		width: 50% !important;
		font-size: 1em;
	}
}
@media (max-width: 767px) {
	.trx_addons_image_block {
		width: 100% !important;
	}
}

.trx_addons_image_block_inner {
	background-color: $background_light;
	border: 1px solid $border_color;
	position: relative;
	height: 100%;

	.skin_active & {
		background-color: $text_dark;
	}

	&:focus:before {
		content: ' ';
		@include abs-lt(-4px, -4px);
		right: -4px;
		bottom: -4px;
		pointer-events: none;
		@include border-box;
		border: 4px solid $border_outline;
	}

	.trx_addons_image_block_image {
		@include box(100%, 370px);
		@include flex-shrink(0);
		position: relative;
		background-position: center;
		background-size: cover;
	}
	@media (max-width: 1439px) {
		.trx_addons_image_block_image {
			height: 320px;
		}
	}
	@media (max-width: 1279px) {
		.trx_addons_image_block_image {
			height: 280px;
		}
	}
	.trx_addons_image_block_image .trx_addons_image_block_link {
		@include abs-cover;
		@include flex;
		@include flex-direction(row);
		@include flex-justify-content(center);
		@include flex-align-items(center);
		@include flex-wrap(nowrap);
		opacity: 0;
		font-weight: 600;
		text-decoration: none;
		color: #fff;
		background-color: rgba(0,0,0,0.5);
		@include transition-properties(color, opacity);
	}
	@media (min-width: 1024px) {
		.trx_addons_image_block_image .trx_addons_image_block_link:hover,
		&:hover .trx_addons_image_block_image .trx_addons_image_block_link,
		&:focus .trx_addons_image_block_image .trx_addons_image_block_link {
			opacity: 1;
			color: #fff;
		}
	}
	.trx_addons_image_block_image .trx_addons_image_block_link[target]:after {
		@include external-link;
		top: 1px;
	}
}

.trx_addons_image_block_footer {
	border-top: 1px solid $border_light;
	color: $text_color;
	padding: 0.5em 0.5em 0.5em 1em;

	&:after {
		content: ' ';
		display: block;
		@include box(100%, 0);
		clear: both;
	}

	.skin_active & {
		border-color: $text_dark;
		color: #fff;
	}

	.trx_addons_image_block_link {
		float: right;
		margin-left: 1em;
	}
	@media (max-width: 479px) {
		.trx_addons_image_block_link {
			float: none;
			margin: 1em 0;
		}
	}

	.trx_addons_image_block_link_active {
		@include font(16px, 19px);
		padding: 7px 4px 7px 0;
	}
	.trx_addons_image_block_link .dashicons {
		width: auto;
		height: auto;
		line-height: inherit;
	}
	.trx_addons_image_block_link_active:before {
		content: '\e900';
		font-family: $trx_addons_icons;
		display: inline-block;
		vertical-align: top;
		@include font(11px, inherit);
		margin-right: 0.2em;
	}
	.trx_addons_image_block_link_update:before {
		content: '\e800';		
	}
	.trx_addons_image_block_link_download:before {
		content: '\e925';
	}
	.trx_addons_image_block_link_buy:before {
		content: '\e905';
	}
	.trx_addons_image_block_link_activate:before {
		content: '\e8bd';		
	}
	.trx_addons_image_block_link_deactivate:before {
		content: '\e8be';		
	}
	.trx_addons_image_block_title {
		margin: 4px 0 0;
		@include font(1em, 1.5em, 600);
	}
	.trx_addons_image_block_title + .trx_addons_image_block_description {
		margin-top:  1em;
		color: $text_light;
		font-size: 0.8em;
		line-height: 1.5em;
	}

	.trx_addons_image_block_icon_hidden:before {
		display: none;
	}

	.trx_addons_image_block_link_update_skin,
	.trx_addons_image_block_link_download_skin,
	.trx_addons_image_block_link_buy_skin,
	.trx_addons_image_block_link_choose_skin,
	.trx_addons_image_block_link_delete_skin {
		margin-left: 0.3em;
		padding: 5px 8px;
	}
	.trx_addons_image_block_link_delete_skin {
		position: relative;

		&:before {
			content: '\e927';
			margin-right: 0;
			font-size: 17px;
		}
		span[data-tooltip-text] {
			@include abs-cover;
			border: none;
		}
	}
}

.trx_addons_tabs_section.trx_addons_section_mode_list {
	.trx_addons_image_block_footer {
		padding: 0 2em 0 0;
	}
	@media (min-width: 480px) {
		.trx_addons_image_block_wrap {
			margin-right: 0;
		}
		.trx_addons_image_block {
			display: block;
			width: 100% !important;
			padding: 0 0 2em 0;
			font-size: 1em;
		}
		.trx_addons_image_block_inner {
			@include flex;
			@include flex-direction(row);
			background-color: transparent;
			border: none;

			.trx_addons_image_block_image {
				@include box(90px, 90px);
			}
		}
		.trx_addons_image_block_image .trx_addons_image_block_link_caption {
			display: none;
		}

		.trx_addons_image_block_footer {
			border: none;
			color: $text_color;
			padding: 0 0 0 1em;
			@include flex;
			@include flex-direction(column);

			&:after {
				display: none;
			}

			.trx_addons_image_block_link {
				float: none;
				font-size: 1em;
				margin: 0.25em 0 0 0;
				order: 3;
				padding: 0;
				border: none;
				background-color: transparent;
				color: $accent_color;
				@include transition-property(color);

				&:before {
					display: none;
				}
				&:hover {
					color: $accent_hover;
				}
			}
			.trx_addons_image_block_link + .trx_addons_image_block_link {
				margin-top: 0;
			}
			.trx_addons_image_block_link_active {
				color: $success_color;
			}
			.trx_addons_image_block_link_deactivate {
				color: $error_color;
				
				&:hover {
					color: $error_dark;
				}
			}

			.trx_addons_image_block_title {
				margin: 0;
				order: 1;
			}

			.trx_addons_image_block_description {
				margin: 0.25em 0 0;
				order: 2;
				color: $text_light;
			}
		}
	}
	@media (min-width: 768px) {
		.trx_addons_image_block {
			display: inline-block;
			vertical-align: top;
			width: 50% !important;
			padding: 0 1em 1em 0;
		}
	}
	@media (min-width: 1280px) {
		.trx_addons_image_block {
			width: 33.3333% !important;
		}
	}
	@media (min-width: 1680px) {
		.trx_addons_image_block {
			width: 25% !important;
			padding: 0 2em 2em 0;
		}
		.trx_addons_image_block_footer {
			padding-left: 1.5em;
		}
	}
}


/* Iconed block */
.trx_addons_theme_panel_links_iconed {
	margin-right: -4em;
}
@media (max-width: 1679px) {
	.trx_addons_theme_panel_links_iconed {
		margin-right: -3em;
	}
}
.trx_addons_iconed_block {
	display: inline-block;
	vertical-align:top;
	width: 25%;
	padding: 0 4em 3em 0;
	@include border-box;
	text-align: left;
}
@media (max-width: 1679px) {
	.trx_addons_iconed_block {
		padding: 0 3em 3em 0;
	}
}
@media (max-width: 1279px) {
	.trx_addons_iconed_block {
		width: 33.3333%;
	}
}
@media (max-width: 1023px) {
	.trx_addons_iconed_block {
		width: 50%;
	}
}
@media (max-width: 767px) {
	.trx_addons_iconed_block {
		width: 100%;
		font-size: 1em;
	}
}
.trx_addons_iconed_block_inner {
	display: inline-block;
	vertical-align:top;
	padding-left: 3em;
	@include box(100%, 100%);
	@include border-box;
	position: relative;
}
.trx_addons_iconed_block_icon,
.trx_addons_iconed_block_image {
	@include abs-lt;
	margin-bottom: 1em;
	color: $text_color;
}
.trx_addons_iconed_block_icon:before {
	@include font(2em, 0, 400);
}
.trx_addons_iconed_block_image {
	width: auto;
	max-width: 2em;
	max-height: 100%;
	margin-bottom: 1em;
}
.trx_addons_iconed_block_title {
	font-size: 1.15em;
	margin: 0;
	color: $text_color;
}
.trx_addons_iconed_block_description {
	margin: 1em 0;
	line-height:1.5em;
	min-height: 6.8em;
}
@media (max-width: 1279px) {
	.trx_addons_iconed_block_description {
		min-height: 0;
	}
}
.trx_addons_iconed_block a.trx_addons_iconed_block_link,
.trx_addons_iconed_block span.trx_addons_iconed_block_link {
	@include transition-properties(color);
	color: $accent_color;
}
.trx_addons_iconed_block a.trx_addons_iconed_block_link:hover {
	color: $accent_hover;
}
.trx_addons_iconed_block a.trx_addons_iconed_block_link[target]:after {
	@include external-link;
}
.trx_addons_iconed_block span.trx_addons_iconed_block_link_active {
	cursor: default;
	pointer-events: none;
}
.trx_addons_iconed_block .trx_addons_iconed_block_link_delimiter:before {
	content: '|';
	display: inline-block;
	vertical-align: baseline;
	margin: 0 0.3em;
	color: $text_light;
}
