#tm_pb_main_container *,
#tm_pb_layout * {
  -webkit-font-smoothing: subpixel-antialiased;
}

#tm_pb_layout{
  padding: 30px;
	.inside {
	  min-height: 330px;
	  margin: 0;
	  padding: 0;
	}
	&.closed{
	  .hndle{
	   border-radius: $border-radius-large;
	  }
	}
}

#tm_pb_main_container {
  position: relative;
  color: $form_control_secondary_color;

  a:active {
	outline: 0;
  }
}



.post-type-tm_pb_layout #tm_pb_layout .inside {
  min-height: 102px;
}

#tm_pb_main_container {
  position: relative;
}


.tm_pb_section {
  background: $white_color;
  margin: 50px 0 120px 0;
  border-radius: $border-radius-large;
  border: 2px solid $border-color;
  position: relative;
  cursor: move;
  opacity: 1;
  box-shadow: 0;
  min-height: 59px;
  transition: opacity 0.5s, box-shadow 0.5s;
	&:last-child{
		margin: 50px 0 70px 0;
	}
}

#tm_pb_layout {
	.hndle {
		font-size: 30px;
		font-weight: 900;
		color: $text_color;
		padding: 24px 0 10px;
		border-bottom: 0;
		border-radius: $border-radius-large $border-radius-large 0 0;
		line-height: 30px;
		position: relative;
		text-align: left;
		clear: both;
	}
}

#tm_pb_toggle_builder:before {
	content: "\3c";
	display: block;
	position: absolute;
	left: 40px;
	top: 18px;
	font-size: 32px;
}

#tm_pb_layout {
  .handlediv {
	width: 30px;
	height: 20px;
	float: left;
	text-align: left;

	.toggle-indicator:before,
	&:before {
		color: $text_color;
		width: 30px;
		margin-top: 0;
	}

	.toggle-indicator:before {
	  left: -10px;
	}

	&:focus {
	  -moz-box-shadow: none;
	  -webkit-box-shadow: none;
	  box-shadow: none;
	  outline: 0;

	  .toggle-indicator:before {
		-webkit-box-shadow: none;
		box-shadow: none;
	  }
	}
  }

  span.toggle-indicator {
	z-index: 9;
	position: relative;
  }
}


.tm_pb_module_block.tm_pb_global .tm-pb-module-title {
  color: $white_color;
}

.tm_pb_module_block {
  background: $module_bg_color;
  padding: 10px 8px;
  color: $module_title_color;
  margin: 0 0 15px;
  min-height: 30px;
  position: relative;
  border-radius: $border-radius-small;
  position: relative;
  cursor: move;
  opacity: 1;
  box-shadow: 0;
  transition: opacity 0.5s, box-shadow 0.5s;

  >a {
	font-size: 16px;
	text-decoration: none;
	width: 20px;
	height: 20px;
	position: absolute;
	color: $white_color;
	top: 14px;
	  &:before{
		width: 20px;
		height: 20px;
		vertical-align: middle;
		text-align: center;
		line-height: 20px;
	  }
	  &:hover{
		  &:before{
			color: $dark_color;
		  }
	  }
	  &:focus{
		box-shadow: none;
	  }
  }

  .tm-pb-settings {
	right: 17px;
  }

  .tm-pb-clone {
	right: 55px;
  }

  .tm-pb-remove {
	left: 10px;
  }

  .tm-pb-expand {

  }
  .tm-pb-unlock {

  }

  &.tm_pb_global a {
	//opacity: 0.5;
  }
}

.tm_pb_global .tm_pb_module_block a {
  //opacity: 0.5;
}

.tm_pb_module_block {
  &.tm_pb_locked a {
	opacity: 0.5;
  }
  .tm-pb-remove {
	float: left;
  }
}

.tm_pb_module_block + .tm-pb-insert-module {
  display: inline;
  padding: 0;
  position: relative;
  border: none;
}

.tm-pb-insert-module ~ .tm_pb_module_block {
  margin-top: -56px;
}

.tm_pb_module_block + .tm-pb-insert-module ~ .tm_pb_module_block {
  margin-top: 0;
}

.tm-pb-column {
  float: left;
  margin-left: 3%;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  min-height: 40px;
}

.tm-pb-column-4_4 {
  width: 100%;
  margin-left: 0;
}

.tm-pb-column-1_2 {
  width: 48.5%;
}

.tm-pb-column-1_3 {
  width: 31%;
}

.tm-pb-column-1_4 {
  width: 22.6%;
}

.tm-pb-column-2_3 {
  width: 65%;
}

.tm-pb-column-3_4 {
  width: 74.4%;
}

.tm-pb-module-title {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  min-width: 65px;
  margin: 6px 0 6px 40px;
  display: inline-block;
}

.tm-pb-option-advanced-module-settings {
  border-bottom: 1px solid #EAEDF0;
  padding-bottom: 10px;
  padding-bottom: 20px;
  margin-bottom: 10px;
}

.tm-pb-add-sortable-option {
  color: $control_text_color;
  text-decoration: none;
  position: relative;
  margin-left: 36px;
  font-size: 12px;
  color: $module_bg_color;
  text-transform: uppercase;
  font-size: 12px;
	&:before{
	  margin-right: 5px;
	  color: $grey_color;
	  @include fa-icon();
	  font-size: 16px;
	  content: "\f067";
	}
}

.tm-pb-add-sortable-initial {
  margin: 0 30px 10px 30px;
  top: 0;
}

.tm-pb-add-sortable-option:hover {
  color: #23282D;
}

.tm-pb-column:first-child {
  margin-left: 0;
}

.tm_pb_modal_settings_container.tm_pb_modal_settings_container_step2 {
  box-shadow: none;
  -webkit-box-shadow: none;
  -moz-box-shadow: none;
}

.tm-pb-options-tabs {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  padding: 40px 0;

  .tm-pb-options-tab {
	display: none;

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

.tm-pb-options-tab-custom_css {
  .tm-pb-option > label {
	background-color: $form_control_color;
	width: 100%;
	color: $form_control_secondary_color;
	font-weight: 700 !important;
	padding: 15px;
	margin-top: 0;
	font-weight: normal;
	box-sizing: border-box;
	position: relative;
  }

  .tm-pb-custom-css-option {
	top: 0;
  }

  .tm-pb-option-container textarea {
	width: 100%;
	padding: 15px;
	border-radius: 0;
	font-size: 16px;
	font-family: courier new;
	line-height: 26px;
	font-family: "Open Sans",sans-serif;
	font-size: 14px;
	&:focus {

	}
  }

  .tm-pb-option {
	&.tm_pb_custom_css_regular label {
	  background: none;
	  width: 107px;
	  font-weight: 600;
	  font-size: 14px;
	  text-transform: uppercase;
	}

	label > span {
	  font-size: 12px;
	  color: $option_label_color;
	  font-weight: 600;
	  padding: 0 5px;
	  margin: 0 5px;
	  opacity: 0;
	  display: none;
	  line-height: 1.3;
	  text-transform: none;

	  &.tm_pb_visible_css_selector {
		opacity: 1;
		-webkit-animation: tm_pb_slide_left_short 0.5s 1 cubic-bezier(0.77, 0, 0.175, 1);
		animation: tm_pb_slide_left_short 0.5s 1 cubic-bezier(0.77, 0, 0.175, 1);
	  }

	  &.tm_pb_hidden_css_selector {
		opacity: 0;
		-webkit-animation: tm_pb_slide_out_left_short 0.2s 1 cubic-bezier(0.77, 0, 0.175, 1);
		animation: tm_pb_slide_out_left_short 0.2s 1 cubic-bezier(0.77, 0, 0.175, 1);
	  }
	}
  }
}

.tm_pb_section.tm_pb_global {
  .tm_pb_row.tm_pb_global,
  .tm_pb_module_block.tm_pb_global {
	background-color: rgb(95, 160, 0);
  }
}

.tm_pb_row.tm_pb_global .tm_pb_module_block.tm_pb_global {
  background-color: rgb(95, 160, 0);
}

.tm-pb-section-add {
  position: absolute;
  bottom: -72px;
  text-decoration: none;
  font-size: 12px;
  color: $white_color;
  width: 100%;
  box-sizing: border-box;
	span{
	  font-size: 12px;
	  font-weight: 800;
	  text-transform: uppercase;
	  margin: 0 10px;
	  padding: 16px 20px;
	  background-color: $button_bg_color;
	  border-radius: $border-radius-medium;
	  display: inline-block;
	  box-shadow: 3px 3px 13px rgba(0, 0, 0, 0.2);
	  cursor: pointer;
	  transition: all 0.3s cubic-bezier(.5,.12,.46,.88);
		&:first-child{
		  margin-left: 0;
		}
		&:hover{
		  background-color: $button_bg_hover_color;
		  box-shadow: 0px 0px 13px rgba(0, 0, 0, 0.2);
		  color: $white_color;
		}
		&:before{
		  margin-right: 5px;
		  @include fa-icon();
		  content: "\f067";
		  font-size: 16px;
		}
	}
}

.tm-pb-row-add {
  position: absolute;
  bottom: -45px;
  left: 5px;
  text-decoration: none;
  font-size: 10px;
  color: $control_text_color;
  text-transform: uppercase;
  font-weight: 700;
  display: none;
	&:before{
	  margin-right: 5px;
	  @include fa-icon();
	  content: "\f067";
	  font-size: 16px;
	  color: #b4b7ba;
	  position: relative;
	  top: 2px;
	}
	&:hover{
		&:before{
			color: $module_bg_color;
		}
	}
	span{
	  font-size: 12px;
	  font-weight: 900;
	  color: $module_bg_color;
	  text-transform: uppercase;
	}
}

.tm-pb-section-content .tm_pb_row:last-child .tm-pb-row-add {
  display: block;
}

.tm_pb_section_specialty{
	.tm-pb-insert-module{
		border-color: $white_color;
	}
	.tm_pb_row{
		.tm-pb-insert-module{
			border-color: $section_bg_color;
		}
	}
}


.tm-pb-insert-column,
.tm-pb-insert-module,
.tm-pb-add-sortable-initial {
  display: block;
  text-align: center;
  color: $control_text_color;
  text-decoration: none;
  position: relative;
  min-height: 46px;
  padding: 14px;
  border: 2px solid $section_bg_color;
  border-radius: $border-radius-small;
  box-sizing: border-box;
	&:hover{
		&:before{
			color: $module_bg_color;
		}
	}
	&:before{
	  @include fa-icon();
	  content: "\f067";
	  font-size: 16px;
	  margin-right: 5px;
	  color: #b4b7ba;
	  position: relative;
	  top: 2px;
	}
	span{
	  font-size: 12px;
	  font-weight: 900;
	  color: $module_bg_color;
	  text-transform: uppercase;
	}
}

.tm-pb-insert-module:focus,
.tm-pb-insert-column:focus,
.tm-pb-add-sortable-option:focus {
  outline: none;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  box-shadow: none;
}

.tm-pb-settings span,
.tm-pb-remove span,
.tm-pb-modal-close span,
.tm-pb-advanced-setting-remove span,
.tm-pb-advanced-setting-options span,
.tm-pb-clone span,
.tm-pb-change-structure span,
.tm-pb-expand span,
.tm-pb-unlock span {
  display: none;
}
