// ------------------------------------------------------------------------------------
// VISUAL COMPOSER
// ------------------------------------------------------------------------------------

//**** basel GRADIENT ****//

.basel-grad-line {

	.gradx {
		 border-width: 1px;
		 border-radius: $basel-vc-options-border;
		 background: none;
	}

		.gradx_btn {
			padding: 8px 15px;
		 border-color: #E6E6E6;
		 border-radius: $basel-vc-options-border;
			background-image: none;

			@extend %basel-admin-btn;
		}

		.gradx_slider {

			&:after {
				border-width: 60px 1px 0 0;
			}
		}

		.cp-default {
			border-radius: 0 !important;
		}

	 .gradx_start_sliders {
		 margin-right: -6px;
		 margin-left: -6px;
	 }

		.sp-container {
			border: none;
		}

		.sp-picker-container {
		 border-left: none;
		}

		.sp-picker-container {
			padding-top: 5px;
		}

		#gradx_slider_controls {
			margin-left: 10px;
			padding-top: 5px;
		}

	 .gradx_slectboxes {
		 display: flexbox;
		 display: flex;
		 display: -webkit-flex;
		 display: -ms-flex;
		 -ms-flex-align: stretch;
		 align-items: stretch;
		 -webkit-flex-direction: row;
		 -ms-flex-direction: row;
		 flex-direction: row;
		 justify-content: flex-start;
		 margin-right: -5px;
		 margin-left: -5px;

		 -webkit-align-items: stretch;
		 -webkit-justify-content: flex-start;
		 -ms-justify-content: flex-start;

		 select {
			 flex-basis: 100%;
			 margin-right: 5px;
			 margin-left: 5px;
			 padding: 2px;
			 max-width: 100%;
			 width: 100%;
			 height: 28px;
			 line-height: 28px;

			 -webkit-flex-basis: 100%;
			 -ms-flex-basis: 100%;
		 }
	 }
 }

 .basel-grad-preview {
	 display: none;
 }

 //**** basel DATE PICKER ****//

 div.ui-datepicker {
	 margin-top: 12px;

	 .ui-datepicker-header {
		 border: none;
		 border-radius: 0;
		 background-color: #F3F3F3;
		 background-image: none;

		 .ui-corner-all {
			 border-radius: 0;
			 cursor: pointer;
		 }

		 .ui-state-hover {
			 border: none;
			 background-image: none;
		 }

		 .ui-icon {
			 background-image: none;
		 }

		 .ui-datepicker-prev-hover,
		 .ui-datepicker-next-hover {
			 top: 2px;
		 }

		 .ui-datepicker-prev-hover {
			 left: 2px;
		 }

		 .ui-datepicker-next-hover {
			 right: 2px;
		 }

		 .ui-datepicker-next,
		 .ui-datepicker-prev {

			 &:before {
				 position: absolute;
				 top: 5px;
				 left: 5px;
				 display: block;
				 width: 20px;
				 height: 20px;
				 font-weight: 400;
				 font-size: 16px;
				 font-family: dashicons;
			 }
		 }

		 .ui-datepicker-next {

			 &:before {
				 content: "\f345";
			 }
		 }

		 .ui-datepicker-prev {

			 &:before {
				 content: "\f341";
			 }
		 }
	 }

	 .ui-state-default {
		 border: none;
		 background-color: #F3F3F3;
		 background-image: none;

		 &.ui-state-hover,
		 &.ui-state-active {
			 background-color: #E0E0E0;
			 color: #000;
		 }
	 }

	 .ui-state-highlight {
		 background-color: $basel-button-color;
		 color: #FFF;
	 }
 }

 //**** basel IMAGE SELECT ****//

 .basel-vc-image-select {
	 display: -webkit-box;
	 display: -ms-flexbox;
	 display: flex;
	 flex-wrap: wrap;
	 margin-top: 0;
	 margin-right: -5px;
	 margin-bottom: 0;
	 margin-left: -5px;

	 -ms-flex-wrap: wrap;

	 li {
		 position: relative;
		 flex-basis: 140px;
		 margin-right: 5px;
		 margin-bottom: 10px;
		 margin-left: 5px;
		 padding: 5px;
		 border: 2px solid;
		 border-color: #D9D9D9;
		 border-radius: $basel-vc-options-border;
		 cursor: pointer;
		 transition: all .2s ease-in-out;

		 -ms-flex-preferred-size: 140px;

		 &.selected {
			 border-color: $basel-button-color;

			 &:before {
				 @extend %basel-image-checkmark;
			 }
		 }

		 &.with-title {

			 img {
				 margin-bottom: 5px;
			 }
		 }

		 &:not(.selected) {

			 &:hover {
				 border-color: #B9B9B9;
			 }
		 }
	 }

	 img {
		 width: 100%;
	 }

	 h4 {
		 margin: 0;
		 color: #333;
		 font-size: 12px;
		 line-height: 1.4;
	 }

	 .social-form &,
	 .title-align & {

		 li {
			 flex-basis: 40px;

			 -ms-flex-preferred-size: 40px;
		 }
	 }

	 .price-plan &,
	 .divider &,
	 .social-style &,
	 .content-position &,
	 .info-icon &,
	 .button-style &,
	 .button-shape &,
	 div[data-vc-shortcode="basel_image_hotspot"] & {

		 li {
			 flex-basis: 80px;

			 -ms-flex-preferred-size: 80px;
		 }
	 }

	 .tab-design & {

		 li {
			 flex-basis: 180px;

			 -ms-flex-preferred-size: 180px;
		 }
	 }

	 div[data-vc-shortcode="basel_portfolio"] & {

		 [data-value="inherit"] {

			 img {
				 width: 140px;
				 height: 140px;

				 -o-object-position: 50% 35%;
				 object-position: 50% 35%;
				 -o-object-fit: cover;
				 object-fit: cover;
			 }
		 }
	 }
 }

 //**** basel AUTOCOMPLETE DROPDOWN ****//

 ul.ui-autocomplete {
	 background-color: #FFF;
	 color: #444;
	 font-size: 13px;

	 &.ui-widget {
		 border: 1px solid #5B9DD9;
	 }
 }

 //**** basel SLIDER VALUE SELECTOR ****//

 .basel-slider-field-value-display {
	 padding-top: .5em;
	 color: #888;
	 color: #5E5E5E;
	 font-weight: 400;
	 font-size: 12px;
 }

 .basel-slider-field {

	 .ui-widget-header {
		 background: $basel-button-color;
	 }

	 &.ui-widget {

		 &.ui-widget-content {
			 border: none;
			 background-color: #F1F1F1;
		 }
	 }

	 &.ui-slider {

		 .ui-slider-handle {
			 top: -5px;
			 width: 12px;
			 height: 12px;
			 border: solid 2px $basel-button-color;
			 border-radius: 50%;
			 background: #FFF;
			 cursor: pointer;

			 &:hover {
				 box-shadow: 0 0 0 2px #89BCE8;
			 }

			 &:focus {
				 box-shadow: 0 0 0 3px #89BCE8;
			 }
		 }
	 }

	 &.ui-slider-horizontal {
		 height: 4px;
		 cursor: pointer;
	 }
 }

 //**** basel SHORTCODE STYLES ****//

 .wpb_edit_form_elements {

	 input,
	 select,
	 textarea {
		 @extend %basel-input-style;

		 &:focus {
			 box-shadow: none;
		 }
	 }

	 .vc_column{
		 -webkit-animation: wd-fadeInTooltip .5s ease;
		 animation: wd-fadeInTooltip .5s ease;

		 &.vc_col-sm-6 {
			 padding-top: 15px !important; // basel extras tab
		 }
	 }

	 .vc_autocomplete-field {

		 .vc_autocomplete {
			 padding-right: 6px;
			 padding-left: 6px;
			 border-radius: $basel-vc-options-border;

			 &:hover {
				 border-color: #BDBDBD;
			 }
		 }
	 }

	 .ui-autocomplete-input {
		 box-shadow: none;
	 }
 }

 .wpb_el_type_basel_empty_space {
	 padding: 0 !important;
 }

 .wpb_el_type_basel_css_id {
	 display: none;

	 & + .vc_col-xs-12 {
		 padding-top: 0 !important;
	 }
 }

 [data-vc-shortcode="basel_responsive_text_block"] {

	 [data-tab-index="2"] {
		 display: none;
	 }
 }

 [data-vc-shortcode="basel_info_box"] {

	 [data-vc-shortcode-param-name="basel_bg_position"] {
		 margin-bottom: 15px;
		 margin-left: 350px;
	 }

	 .wpb_element_label {
		 font-weight: 400;
	 }
 }

 //**** OPTION SECTION STYLE ****//

 .basel-td-wrapper {
	 margin-bottom: 30px;
	 width: 100%;

	 &:last-child {
		 margin-bottom: 20px;
	 }
 }

 .basel-td-title {
	 margin-bottom: 15px;
	 color: $basel-vc-element-title;
	 text-transform: uppercase;
	 font-weight: 600;
	 font-size: 16px;
 }

 .basel-td-content {
	 display: flex;
	 clear: both;
	 flex-wrap: wrap;
	 margin-top: 0;
	 margin-right: 15px;
	 margin-left: 15px;
	 padding: 5px;
	 border: 1px solid #E8E8E8;
	 border-radius: 5px;
	 background: #F9F9F9;

	 .vc_column {
		 padding-top: 15px;
		 padding-bottom: 15px;

		 select {
			 padding: 6px 6px;
			 height: 36px;
		 }

		 &.wpb_el_type_basel_image_select {
			 padding-bottom: 5px;
		 }
	 }

	 .wpb_element_label {
		 margin-bottom: 10px;
	 }

	 .wpb_el_type_vc_link {

		 .button {
			 height: 36px;
			 border-radius: $basel-vc-options-border;
			 box-shadow: none;
			 line-height: 34px;
		 }

		 .vc_link_label {
			 line-height: 36px;
		 }
	 }

	 .wpb_el_type_attach_image {

		 .added,
		 .gallery_widget_add_images {
			 border-radius: $basel-vc-options-border;
		 }
	 }

	 .wp-media-buttons {

		 button {
			 border-radius: $basel-vc-options-border;
			 box-shadow: none;
		 }
	 }

	 .basel-vc-slider {
		 position: relative;
	 }

	 .basel-slider-field {
		 margin-top: 25px;
	 }

	 .basel-slider-field-value-display {
		 position: absolute;
		 right: 0;
		 bottom: 27px;
		 font-weight: 600;
		 font-size: 16px;
	 }
 }

 .wpb-select,
 select[name$="[font-weight]"] {

	 &[class$="100"],
	 option[value="100"] {
		 font-weight: 100;
	 }

	 &[class$="200"],
	 option[value="200"] {
		 font-weight: 200;
	 }

	 &[class$="300"],
	 option[value="300"] {
		 font-weight: 300;
	 }

	 &[class$="400"],
	 option[value="400"] {
		 font-weight: 400;
	 }

	 &[class$="500"],
	 option[value="500"] {
		 font-weight: 500;
	 }

	 &[class$="600"],
	 option[value="600"] {
		 font-weight: 600;
	 }

	 &[class$="700"],
	 option[value="700"] {
		 font-weight: 700;
	 }

	 &[class$="800"],
	 option[value="800"] {
		 font-weight: 800;
	 }

	 &[class$="900"],
	 option[value="900"] {
		 font-weight: 900;
	 }
 }

 //**** basel COLORPICKER ****//

 .basel-vc-colorpicker {

	 .wp-picker-container {
		 position: relative;

		 @extend %basel-colorpicker-style;

		 .wp-color-result {

			 &.wp-picker-open {

				 &:after {
					 display: none;
				 }
			 }
		 }

		 .basel-vc-colorpicker-input[type=text] {
			 padding: 8px 6px;
			 height: 36px;
		 }

		 .iris-picker {
			 margin-bottom: 74px;
			 border-bottom-right-radius: 0;
			 border-bottom-left-radius: 0;
		 }
	 }

	 .wp-picker-holder {
		 position: absolute;
		 top: 100%;
		 left: 0;
	 }
 }

 .basel-opacity-container {
	 position: absolute;
	 bottom: -73px;
	 left: -1px;
	 z-index: 1000;
	 padding: 6px;
	 width: 243px;
	 border: 1px solid #DFDFDF;
	 border-radius: 0;
	 border-bottom-right-radius: $basel-vc-options-border;
	 border-bottom-left-radius: $basel-vc-options-border;
	 background-color: #FFF;

	 .basel-opacity-field {
		 padding-right: 0;
		 padding-left: 0;
	 }
 }

 //**** basel BUTTON SET ****//

 .basel-vc-button-set-list {
	 margin-top: 0;
	 margin-bottom: 0;

	 li {
		 display: inline-block;
		 margin-bottom: 0;
		 padding: 0 10px;
		 background-color: #E3E3E3;
		 color: #444;
		 font-weight: 600;
		 cursor: pointer;
		 transition: all .2s ease-in-out;

		 span {
			 display: block;
			 line-height: 36px;
		 }

		 &:hover {
			 background-color: #7A7A7A;
			 color: #FFF;
		 }

		 &.checked {
			 background-color: $basel-button-alt-color;
			 color: #FFF;
		 }

		 &:not(:last-child) {
			 margin-right: 2px;
		 }

		 &:first-child {
			 border-top-left-radius: $basel-vc-options-border;
			 border-bottom-left-radius: $basel-vc-options-border;
		 }

		 &:last-child {
			 border-top-right-radius: $basel-vc-options-border;
			 border-bottom-right-radius: $basel-vc-options-border;
		 }
	 }
 }

 //**** basel BUTTON SWITCH ****//

 .basel-vc-switch {

	 .switch-controls {
		 display: inline-block;
		 min-width: 50px;
		 height: 36px;
		 background-color: #E3E3E3;
		 color: #444;
		 text-align: center;
		 font-weight: 600;
		 cursor: pointer;
		 transition: all .2s ease-in-out;

		 span {
			 display: block;
			 line-height: 36px;
		 }

		 &:hover {
			 background-color: #7A7A7A;
			 color: #FFF;
		 }

		 &:first-child {
			 margin-right: 2px;
			 border-top-left-radius: $basel-vc-options-border;
			 border-bottom-left-radius: $basel-vc-options-border;
		 }

		 &:last-child {
			 border-top-right-radius: $basel-vc-options-border;
			 border-bottom-right-radius: $basel-vc-options-border;
		 }
	 }

	 .switch-inactive {

		 &.checked {
			 background-color: #B1B1B0;
			 color: #FFFF;
		 }
	 }

	 .switch-active {

		 &.checked {
			 background: $basel-button-alt-color;
			 color: #FFFF;
		 }
	 }
 }

 //**** RESPONSIVE FONT SIZE ****//

 .wpb_el_type_basel_responsive_size {
	 -ms-flex: 1 1 auto;
	 flex: 1 1 auto;
	 width: auto !important; //overwright theme styles

	 -webkit-box-flex: 1;
 }

 .basel-rs-wrapper {

	 > div {
		 display: inline-block;
		 margin-right: 10px;
		 vertical-align: middle;
	 }

	 .basel-rs-input {
		 width: 60px;
		 height: 36px;
		 border-top-left-radius: 0;
		 border-bottom-left-radius: 0;
		 vertical-align: middle;
	 }

	 .basel-rs-item {
		 display: -webkit-inline-box;
		 display: -ms-inline-flexbox;
		 display: inline-flex;

		 &.hide {
			 display: none;
		 }
	 }

	 .basel-rs-unit {
		 margin-right: 0;
	 }
 }

 .basel-rs-icon {
	 display: inline-block;
	 padding: 8px;
	 border-top-left-radius: $basel-vc-options-border;
	 border-bottom-left-radius: $basel-vc-options-border;
	 background-color: #F0F0F0;
 }

 .basel-rs-trigger {
	 cursor: pointer;
 }

 //**** SHORTCODE OPTIONS HINT ****//

 .basel-hint {
	 position: relative;
	 display: inline-block;
	 margin-left: 10px;
	 width: 16px;
	 height: 16px;
	 outline: none;
	 border: 1px solid #0473AA;
	 border-radius: 50%;
	 color: #0473AA;
	 text-align: center;
	 font-weight: 700;
	 font-size: 12px;
	 line-height: 17px;
	 cursor: pointer;

	 &:hover {

		 .basel-hint-content {
			 visibility: visible;
			 opacity: 1;
			 -webkit-animation: wd-fadeInTooltip .3s ease;
			 animation: wd-fadeInTooltip .3s ease;
		 }
	 }
 }

 .basel-hint-content {
	 position: absolute;
	 top: 50%;
	 z-index: 10;
	 display: inline-block;
	 visibility: hidden;
	 margin-top: -23px;
	 padding: 15px;
	 width: 250px;
	 background-color: #000;
	 color: #FFF;
	 font-weight: 400;
	 font-size: .9em;
	 line-height: 1.5em;
	 opacity: 0;

	 .basel-hint-left & {
		 left: 100%;
		 margin-left: 6px;

		 &:before {
			 left: -3px;
		 }

		 &:after {
			 left: -25px;
		 }
	 }

	 .basel-hint-right & {
		 right: 100%;
		 margin-right: 6px;

		 &:before {
			 right: -3px;
		 }

		 &:after {
			 right: -25px;
		 }
	 }

	 &:before {
		 content: '';
		 position: absolute;
		 top: 19px;
		 display: block;
		 width: 10px;
		 height: 10px;
		 background-color: #000;
		 -webkit-transform: rotate(-45deg);
		 transform: rotate(-45deg);
	 }

	 &:after {
		 content: '';
		 position: absolute;
		 top: 0;
		 display: block;
		 width: 25px;
		 height: 100%;
	 }
 }

 //**** SHORTCODE OPTIONS TOOLTIPS ****//

 .basel-css-tooltip {

	 img {
		 vertical-align: middle;
	 }
 }

 .basel-tltp {
	 position: relative;

	 &:hover {

		 .basel-tooltip-label {
			 visibility: visible;
			 opacity: 1;
			 -webkit-animation: wd-fadeInTooltip .3s ease;
			 animation: wd-fadeInTooltip .3s ease;
		 }
	 }
 }

 .basel-tooltip-label {
	 position: absolute;
	 bottom: 100%;
	 left: 50%;
	 z-index: 2;
	 visibility: hidden;
	 margin-bottom: 8px;
	 padding: 0 15px;
	 height: 34px;
	 background-color: #000;
	 color: #FFF;
	 text-align: center;
	 text-transform: capitalize;
	 white-space: nowrap;
	 letter-spacing: .3px;
	 font-size: 12px;
	 line-height: 34px;
	 opacity: 0;
	 pointer-events: none;

	 &:before {
		 content: "";
		 position: absolute;
		 top: 100%;
		 left: 50%;
		 margin-left: -5px;
		 border-width: 5px 5px 0;
		 border-style: solid;
		 border-color: transparent;
		 border-color: transparent;
		 border-top-color: #000;
	 }
 }

 //**** basel ANIMATIONS SELECTOR ****//

 .vc_param-animation-style-preview {

	 .vc_btn {
		 height: 36px;
	 }
 }

 .wd-slide-from-bottom,
 .wd-slide-from-top,
 .wd-slide-from-left,
 .wd-slide-from-right,
 .wd-left-flip-y,
 .wd-right-flip-y,
 .wd-top-flip-x,
 .wd-bottom-flip-x,
 .wd-zoom-in,
 .wd-rotate-z {
	 -webkit-transition: opacity .7s cubic-bezier(0, .87, .58, 1);
	 transition: opacity .7s cubic-bezier(0, .87, .58, 1);

	 &.animated {
		 -webkit-animation-duration: .7s;
		 animation-duration: .7s;
		 -webkit-animation-timing-function: cubic-bezier(0, .87, .58, 1);
		 animation-timing-function: cubic-bezier(0, .87, .58, 1); 
	 }
 }

 .wd-slide-from-top {
	 -webkit-animation-name: wd-SlideFromTop;
	 animation-name: wd-SlideFromTop;
 }

 .wd-slide-from-bottom {
	 -webkit-animation-name: wd-SlideFromBottom;
	 animation-name: wd-SlideFromBottom;
 }

 .wd-slide-from-left {
	 -webkit-animation-name: wd-SlideFromLeft;
	 animation-name: wd-SlideFromLeft;
 }

 .wd-slide-from-right {
	 -webkit-animation-name: wd-SlideFromRight;
	 animation-name: wd-SlideFromRight;
 }

 .wd-right-flip-y {
	 -webkit-animation-name: wd-RightFlipY;
	 animation-name: wd-RightFlipY;
 }

 .wd-left-flip-y {
	 -webkit-animation-name: wd-LeftFlipY;
	 animation-name: wd-LeftFlipY;
 }

 .wd-top-flip-x {
	 -webkit-animation-name: wd-TopFlipX;
	 animation-name: wd-TopFlipX;
 }

 .wd-bottom-flip-x {
	 -webkit-animation-name: wd-BottomFlipX;
	 animation-name: wd-BottomFlipX;
 }

 .wd-zoom-in {
	 -webkit-animation-name: wd-ZoomIn;
	 animation-name: wd-ZoomIn;
 }

 .wd-rotate-z {
	 -webkit-animation-name: wd-RotateZ;
	 animation-name: wd-RotateZ;

	 will-change: animation;
 }