//
// Page Boxed Layout
//
@if $layout_boxed_padding {
  body.boxed .bs-vc-content > .vc_row > .bs-vc-wrapper,
  body.boxed .content-wrap {
	padding-left: $layout_boxed_padding;
	padding-right: $layout_boxed_padding;
  }

  body.boxed .bf-breadcrumb > .bf-breadcrumb-container {
	margin-left: $layout_boxed_padding !important;
	margin-right: $layout_boxed_padding !important;
  }

  body.boxed .mega-menu .content-wrap {
	padding-left: $layout_boxed_padding * .5;
	padding-right: $layout_boxed_padding * .5;
  }

  body.boxed .slider-container .content-wrap {
	padding-left: 0;
	padding-right: 0;
  }

  body.boxed .bs-sks .bs-sksitemr {
	padding-left: $layout_boxed_padding;
  }

  body.boxed .bs-sks .bs-sksiteml {
	padding-right: $layout_boxed_padding;
  }

  @media (max-width: 980px) {
	body.boxed .bs-vc-content > .vc_row > .bs-vc-wrapper,
	body.boxed .content-wrap,
	body.boxed .mega-menu .content-wrap {
	  padding-left: 0;
	  padding-right: 0;
	}
	body.boxed .bf-breadcrumb > .bf-breadcrumb-container {
	  margin-left: 0 !important;
	  margin-right: 0 !important;
	}
  }
}

@if ($columns_separator or $columns_separator_padding) {

  @media all and (min-width: 780px) {
	.ltr {
	  .main-section > .content-column:before,
	  .main-section > .sidebar-column:before,
	  .vc_row > .bs-vc-wrapper > .bs-vc-column:before {
		content: '';
		position: absolute;
		right: 0;
		top: 0;
		bottom: 0;
		background-color: $columns_separator;
		width: 1px;
	  }

	  .main-section > .content-column:last-child:before,
	  .main-section > .sidebar-column:last-child:before,
	  .vc_row > .bs-vc-wrapper > .bs-vc-column:last-child:before {
		display: none;
	  }

	  @if ($columns_separator_padding) {
		.vc_row-has-fill + .vc_row-full-width + .vc_row > .bs-vc-wrapper > .bs-vc-column:before {
		  top: $columns_separator_padding;
		}

		.vc_row-has-fill + .vc_row-full-width + .vc_row > .bs-vc-wrapper > .bs-vc-column > .bs-vc-wrapper {
		  padding-top: $columns_separator_padding !important;
		}

		.main-section > .content-column:before,
		.main-section > .sidebar-column:before,
		.vc_row > .bs-vc-wrapper > .bs-vc-column:before {
		  bottom: $columns_separator_padding;
		}

		.main-section > .content-column,
		.main-section > .sidebar-column,
		.vc_row > .bs-vc-wrapper > .bs-vc-column {
		  padding: 0 ($columns_separator_padding);
		  border: none;
		}

		.slider-container > .content-wrap > .container > .row > .col-sm-12,
		.main-section > .content-column:first-child,
		.main-section > .sidebar-column:first-child,
		.vc_row > .bs-vc-wrapper > .bs-vc-column:first-child {
		  padding-left: $columns_separator_padding / 2;
		}

		.main-section > .content-column:last-child,
		.main-section > .sidebar-column:last-child,
		.vc_row > .bs-vc-wrapper > .bs-vc-column:last-child {
		  padding-right: $columns_separator_padding / 2;
		}
	  }

	}

	.rtl .main-section > .content-column,
	.rtl .main-section > .sidebar-column,
	.rtl .vc_row > .bs-vc-wrapper > .bs-vc-column {
	  border-right: $columns_separator !important;
	}

	.rtl .main-section > .content-column:last-child,
	.rtl .main-section > .sidebar-column:last-child,
	.rtl .vc_row > .bs-vc-wrapper > .bs-vc-column:last-child {
	  border-right: none !important;
	}

  }
}

@if ($rows_separator) {

  .main-section > .content-column > .bs-vc-wrapper:after,
  .main-section > .sidebar-column > .bs-vc-wrapper:after,
  .vc_row.vc_inner > .wpb_column > .bs-vc-wrapper:after,
  .vc_row > .bs-vc-wrapper > .bs-vc-column > .bs-vc-wrapper:after {
	content: '';
	height: 1px;
	position: absolute;
	left: $rows_separator_padding  / 2;
	right: $rows_separator_padding / 2;
	bottom: 0;
	background: $rows_separator;
	display: inline-block;
  }
}

@if ($full_separator and $full_separator_padding) {
  .sidebar-column > aside > *,
  .bs-vc-column > .bs-vc-wrapper > *,
  .bs-vc-column > .bs-vc-wrapper > .wpb_widgetised_column > .wpb_wrapper > * {
	position: relative;
  }

  .sidebar-column > aside > *:after,
  .bs-vc-column > .bs-vc-wrapper > *:after,
  .bs-vc-column > .bs-vc-wrapper > .wpb_widgetised_column > .wpb_wrapper > *:after {
	content: '';
	height: 1px;
	position: absolute;
	left: - $full_separator_padding  / 2;
	right: - $full_separator_padding / 2;
	background: $full_separator;
	display: inline-block;
	bottom: 0;
  }

  @media all and (max-width: 768px) {
	.sidebar-column > aside > *:after,
	.bs-vc-column > .bs-vc-wrapper > *:after,
	.bs-vc-column > .bs-vc-wrapper > .wpb_widgetised_column > .wpb_wrapper > *:after {
	  left: 0;
	  right: 0;
	}
  }

  .sidebar-column > aside > *:last-child:after,
  .bs-vc-column > .bs-vc-wrapper > *:last-child:after,
  .bs-vc-column > .bs-vc-wrapper > .wpb_widgetised_column > .wpb_wrapper > *:last-child:after {
	display: none;
  }

  @media all and (min-width: 780px) {
	.main-section > .content-column:after,
	.main-section > .sidebar-column:after,
	.vc_row.vc_inner > .wpb_column:after,
	.vc_row > .bs-vc-wrapper > .bs-vc-column:after {
	  content: '';
	  width: 1px;
	  position: absolute;
	  top: 0;
	  bottom: 0;
	  background: $full_separator;
	  display: inline-block;
	  right: 0;
	}

	.vc_row.vc_inner > .wpb_column:last-child:after,
	.main-section > .content-column:last-child:after,
	.main-section > .sidebar-column:last-child:after,
	.vc_row > .bs-vc-wrapper > .bs-vc-column:last-child:after {
	  right: inherit;
	  left: -1px;
	}
	.vc_row.vc_inner > .wpb_column:last-child:first-child:after,
	.main-section > .content-column:last-child:first-child:after,
	.main-section > .sidebar-column:last-child:first-child:after,
	.vc_row > .bs-vc-wrapper > .bs-vc-column:last-child:first-child:after {
	  display: none;
	}

	.bs-vc-column:before {
	  content: '';
	  height: 1px;
	  position: absolute;
	  left: 0;
	  right: 0;
	  background: $full_separator;
	  display: inline-block;
	}

	// hide top line of first row
	.vc_row:first-child > .bs-vc-wrapper > .bs-vc-column:before {
	  display: none;
	}

	.widget,
	.entry-content .better-studio-shortcode,
	.sidebar-column .better-studio-shortcode,
	.content-column .better-studio-shortcode,
	.content-column .bs-shortcode,
	.sidebar-column .bs-shortcode,
	.content-column .bs-listing,
	.sidebar-column .bs-listing,
	.sidebar-column .bsac,
	.content-column .bsac,
	  //.content-column > div:last-child,
	.slider-style-18-container,
	.slider-style-16-container,
	.slider-style-8-container,
	.slider-style-2-container,
	.slider-style-4-container,
	.bsp-wrapper,
	  //.single-container,
	  //.content-column > div:last-child,
	.vc_row .vc_column-inner .wpb_content_element,
	.wc-account-content-wrap,
	.order-customer-detail,
	.slider-container,
	.order-detail-wrap {
	  margin-bottom: 0 !important;
	  padding-top: $full_separator_padding / 2 !important;
	  padding-bottom: $full_separator_padding / 2 !important;
	}

	.slider-container {
	  border-bottom: 1px solid $full_separator;
	}

	.main-section {
	  margin-bottom: 0 !important;
	}

	.slider-container .bs-shortcode,
	.widget > .bsac,
	.widget > .bs-listing {
	  padding-top: 0 !important;
	  padding-bottom: 0 !important;
	}

	.widget:last-child {
	  padding-bottom: 0 !important;
	}

	.layout-1-col.layout-bc-before,
	.layout-2-col.layout-bc-before,
	.layout-3-col.layout-bc-before {
	  padding-top: $full_separator_padding / 2;
	  margin-top: 0 !important;
	}
	.layout-2-col.layout-bc-before {
	  padding-top: 0;
	}
	.layout-2-col.layout-bc-before .content-column {
	  padding: $full_separator_padding / 2;
	}
  }

  .bf-breadcrumb-container {
	@if (($full_separator_padding / 5 ) > 10) {
	  padding: ($full_separator_padding / 5) 0;
	} @else {
	  padding: 10px 0;
	}

	border-bottom: solid 1px $full_separator;
  }

}


