/*--------------------------------------------------------------
## Fix elementor sections on raised sections.
--------------------------------------------------------------*/
.elementor-page {
  .hestia-about > .container {
    width: 100%;
  }
  .pagebuilder-section {
    padding: 0;
  }
  .title-in-content, .image-in-page {
    display: none;
  }
}

.home.elementor-page .main-raised > section.hestia-about {
  overflow: visible;
}

.elementor-editor-active .navbar {
  pointer-events: none;
}

.elementor-editor-active #elementor.elementor-edit-mode .elementor-element-overlay {
  z-index: 1000000;
}

.elementor-page.page-template-template-fullwidth {
  .blog-post-wrapper > .container {
    width: 100%;
    .col-md-12 {
      padding: 0;
    }
  }
  article.section {
    padding: 0;
  }
}

/*--------------------------------------------------------------
## Send in Blue
--------------------------------------------------------------*/
form.form-group[id^=sib] {
  input[type=text],
  input[type=email],
  select {
    border: none !important;
  }
}

/*--------------------------------------------------------------
## WPML
--------------------------------------------------------------*/
footer .wpml-ls-item-legacy-dropdown a,
footer .wpml-ls-item-legacy-dropdown-click a {
  color: #000000;
}

.wpml-ls-statics-footer {
  margin: 0 auto;
}

/*--------------------------------------------------------------
## BBPress Basic
--------------------------------------------------------------*/
.bbp-template-notice.info {
  max-width: inherit;
}

#bbpress-forums p.bbp-topic-meta img.avatar, #bbpress-forums ul.bbp-reply-revision-log img.avatar, #bbpress-forums ul.bbp-topic-revision-log img.avatar, #bbpress-forums div.bbp-template-notice img.avatar, #bbpress-forums .widget_display_topics img.avatar, #bbpress-forums .widget_display_replies img.avatar {
  margin-bottom: 0;
}

.bbpress.blog-post .section-text p {
  font-size: 15px;
  margin-bottom: 20px;
}

#wp-link-close {
  box-shadow: none
}

/*--------------------------------------------------------------
## Elementor / Beaver Builder Section Editing
--------------------------------------------------------------*/
.elementor-editor-preview .hestia-pagebuilder-frontpage-controls {
  display: none;
}
.elementor-editor-active .main,
.fl-builder-edit .main {
  > section {
    position: relative;
    .hestia-pagebuilder-frontpage-controls {
      position: absolute;
      top: 35px;
      bottom: 20px;
      left: 20px;
      right: 20px;
      border: 2px solid #76cfe8;
      text-align: center;
      display: none;
      z-index: 100;
      > a {
        cursor: pointer;
        position: relative;
        background: #71d7f7;
        border-radius: 3px 3px 0 0;
        top: -30px;
        line-height: 30px;
        min-width: 30px;
        text-align: center;
        color: #fff;
        font-weight: 800;
        padding: 0 10px;
        display: inline-block;
        &:hover {
          color: #f00;
        }
        > .dashicons {
          height: 30px;
          width: auto;
          margin-right: 5px;
          line-height: 27px;
        }
      }
    }
    &:hover .hestia-pagebuilder-frontpage-controls {
      display: block;
    }
  }
}

/*--------------------------------------------------------------
## PayPal for WooCommerce
--------------------------------------------------------------*/
#checkout_paypal_message {
  background-color: #f0f0f0;
  color: #515151;
  max-width: 100%;
  padding: 20px !important;

  &:before {
    content: '';
    display: none;
  }

  p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }

  .checkoutStatus {
    width: 100%;
  }

  #paypal_box_button {
    text-align: center;
  }

  #paypal_ec_button,
  #paypal_ec_paypal_credit_button {
    display: inline-block;
    float: none;
    margin: 0 10px;
  }

  .woocommerce_paypal_ec_checkout_message {
    margin-top: 10px;
  }
}

.woocommerce-cart {
  .angelleye_cart_button a.paypal_checkout_button, a.paypal_checkout_button {
    clear: none;
  }
  article{
    .woocommerce{
      display: inline-block;
      width: 100%;
    }
  }
}

@media (max-width: 480px) {
  #checkout_paypal_message {
    #paypal_ec_paypal_credit_button {
      margin-top: 10px;
    }
  }
}

.hestia-top-bar,
.nav-cart {
  .widget {
    a.paypal_checkout_button {
      display: none;
    }
  }
}

/*--------------------------------------------------------------
## MailChimp for WordPress (ibericode)
--------------------------------------------------------------*/
.woocommerce-checkout {
  .mc4wp-checkbox,
  .mc4wp-checkbox-woocommerce {
    margin-bottom: 0 !important;
    padding-left: 3px;

    span {
      color: #999999;
      font-size: 16px;
      font-weight: 300;
      margin-left: 7px;
    }
  }
}

/*--------------------------------------------------------------
## Bootstrap MS - 480-767 breakpoint
--------------------------------------------------------------*/
.col-ms-1,
.col-ms-2,
.col-ms-3,
.col-ms-4,
.col-ms-5,
.col-ms-6,
.col-ms-7,
.col-ms-8,
.col-ms-9,
.col-ms-10,
.col-ms-11,
.col-ms-12 {
  position: relative;
  min-height: 1px;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 481px) and (max-width: 767px) {
  .col-ms-1,
  .col-ms-2,
  .col-ms-3,
  .col-ms-4,
  .col-ms-5,
  .col-ms-6,
  .col-ms-7,
  .col-ms-8,
  .col-ms-9,
  .col-ms-10,
  .col-ms-11 {
    float: left;
  }

  .col-ms-1 {
    width: 8.33333%;
  }

  .col-ms-2 {
    width: 16.66667%;
  }

  .col-ms-3 {
    width: 25%;
  }

  .col-ms-4 {
    width: 33.33333%;
  }

  .col-ms-5 {
    width: 41.66667%;
  }

  .col-ms-6 {
    width: 50%;
  }

  .col-ms-7 {
    width: 58.33333%;
  }

  .col-ms-8 {
    width: 66.66667%;
  }

  .col-ms-9 {
    width: 75%;
  }

  .col-ms-10 {
    width: 83.33333%;
  }

  .col-ms-11 {
    width: 91.66667%;
  }

  .col-ms-12 {
    width: 100%;
  }

  .col-ms-push-1 {
    left: 8.33333%;
  }

  .col-ms-push-2 {
    left: 16.66667%;
  }

  .col-ms-push-3 {
    left: 25%;
  }

  .col-ms-push-4 {
    left: 33.33333%;
  }

  .col-ms-push-5 {
    left: 41.66667%;
  }

  .col-ms-push-6 {
    left: 50%;
  }

  .col-ms-push-7 {
    left: 58.33333%;
  }

  .col-ms-push-8 {
    left: 66.66667%;
  }

  .col-ms-push-9 {
    left: 75%;
  }

  .col-ms-push-10 {
    left: 83.33333%;
  }

  .col-ms-push-11 {
    left: 91.66667%;
  }

  .col-ms-pull-1 {
    right: 8.33333%;
  }

  .col-ms-pull-2 {
    right: 16.66667%;
  }

  .col-ms-pull-3 {
    right: 25%;
  }

  .col-ms-pull-4 {
    right: 33.33333%;
  }

  .col-ms-pull-5 {
    right: 41.66667%;
  }

  .col-ms-pull-6 {
    right: 50%;
  }

  .col-ms-pull-7 {
    right: 58.33333%;
  }

  .col-ms-pull-8 {
    right: 66.66667%;
  }

  .col-ms-pull-9 {
    right: 75%;
  }

  .col-ms-pull-10 {
    right: 83.33333%;
  }

  .col-ms-pull-11 {
    right: 91.66667%;
  }

  .col-ms-offset-1 {
    margin-left: 8.33333%;
  }

  .col-ms-offset-2 {
    margin-left: 16.66667%;
  }

  .col-ms-offset-3 {
    margin-left: 25%;
  }

  .col-ms-offset-4 {
    margin-left: 33.33333%;
  }

  .col-ms-offset-5 {
    margin-left: 41.66667%;
  }

  .col-ms-offset-6 {
    margin-left: 50%;
  }

  .col-ms-offset-7 {
    margin-left: 58.33333%;
  }

  .col-ms-offset-8 {
    margin-left: 66.66667%;
  }

  .col-ms-offset-9 {
    margin-left: 75%;
  }

  .col-ms-offset-10 {
    margin-left: 83.33333%;
  }

  .col-ms-offset-11 {
    margin-left: 91.66667%;
  }
}

@media (min-width: 480px) and (max-width: 767px) {
  .form-horizontal .form-group .control-label {
    text-align: right;
  }
}

// Elementor text editor widget compatibility
.elementor-text-editor {
  p, h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
  }
}

// WP forms compatibility
div.wpforms-container {
  .wpforms-form {
    input[type=date],
    input[type=datetime],
    input[type=datetime-local],
    input[type=email],
    input[type=month],
    input[type=number],
    input[type=password],
    input[type=range],
    input[type=search],
    input[type=tel],
    input[type=text],
    input[type=time],
    input[type=url],
    input[type=week],
    select,
    textarea {
      @extend %forms-inputs-styling;
    }

    input:focus,
    select:focus {
      border: none;
    }

    .form-group {
      &.is-focused .form-control {
        @extend %forms-inputs-styling-on-focus;
      }
    }
  }
}

/*--------------------------------------------------------------
## Instagram Feed (Smash Balloon)
--------------------------------------------------------------*/

.sbi_photo {
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 10px 15px -8px rgba(0,0,0,.24), 0 8px 10px -5px rgba(0,0,0,.2);
}


/*--------------------------------------------------------------
## Max Mega Menu Compatibility
--------------------------------------------------------------*/
#mega-menu-wrap-primary {
  display: table-cell;
  width: 100%;
  text-align: right;
  vertical-align: middle;
}

#mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  text-transform: uppercase;
}

.navbar-transparent #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link {
  color: #fff;
  &:hover {
    color: #fff;
  }
}

.mega-menu-primary .navbar-toggle-wrapper {
  display: none;
}

.mega-menu-primary .obfx-menu-icon {
  margin-right: 5px;
  vertical-align: middle;
}

@media (max-width: 768px) {
  .mega-menu-primary .container .navbar-header {
    width: auto;
    float: left;
  }
  #mega-menu-wrap-primary {
    width: auto;
    display: inline;
    top: 5px;
  }

  #mega-menu-wrap-primary #mega-menu-primary {
    width: 100%;
  }

  .navbar-transparent #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link,
  .navbar-transparent #mega-menu-wrap-primary #mega-menu-primary > li.mega-menu-item > a.mega-menu-link:hover {
    color: inherit;
  }
}

@media (min-width: 769px) {
  .mega-menu-primary .navbar.full-screen-menu .navbar-header {
    width: auto;
  }

  .mega-menu-primary .hestia_center #mega-menu-wrap-primary #mega-menu-primary {
    text-align: center;
  }
  .mega-menu-primary .hestia_right #mega-menu-wrap-primary #mega-menu-primary {
    text-align: left;
  }
}

/*--------------------------------------------------------------
## Beaver builder buttons
--------------------------------------------------------------*/
.fl-builder-bar-actions,
.fl-builder-panel,
.fl-builder--main-menu-panel-views,
.fl-lightbox-footer{
  button, input[type="submit"], input[type="button"]{
    -webkit-box-shadow: inherit;
    -moz-box-shadow: inherit;
    box-shadow: inherit;
    &:hover{
      -webkit-box-shadow: inherit;
      -moz-box-shadow: inherit;
      box-shadow: inherit;
    }
  }
}
.media-modal {
  &.wp-core-ui{
    .media-modal-close{
      background-color: inherit;
    }
    select {
      -webkit-appearance: menulist-button;
      -moz-appearance: menulist-button;
      appearance: menulist-button;
    }
  }
}

body.fl-builder-edit .navbar.header-with-topbar.navbar-default:not(.navbar-transparent) {
  margin-top: 40px;
}

