@import "partials/accordion";

body[class*='_es_settings'] {
  background: #fff;

  #wpcontent {
    padding: 0;
    background: #fff;
  }

  #wpbody-content {
    padding-bottom: 0;
  }

  .update-nag {
    display: none;
  }

  #wpfooter {
    display: none;
  }
}

#es-settings {
  position: relative;
  font-family: 'Roboto', sans-serif;

  h4 {
    font-weight: bold;
    font-size: 16px;
    line-height: 24px;
    color: #263238;
    font-family: 'Heebo', sans-serif;
  }

  .es-field {
    .es-field__caption {
      a {
        color: #B0BEC5;
      }
    }
  }

  .es-accordion {
    border-bottom: 2px solid #CFD8DC;
      padding: 0 0 25px;
      margin: 25px 0 0;
  }

  .es-field__map_cluster_color, .es-field__map_marker_color {
    flex-wrap: wrap;

    label {
      flex: 1 0 100%;
    }
  }

  a {
    color: #37474f;
  }

  hr {
    margin: 20px 0 32px;
    border: 0;
    background: #CFD8DC;
    width: 100%;
    height: 2px;
  }

  h3 {
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    color: #263238;
    margin: 6px 0;
  }

  p.es-subtitle {
    font-weight: bold;
    font-size: 12px;
    line-height: 18px;
    color: #B0BEC5;
    margin: 0;

    a {
      text-decoration: underline;
      color: #B0BEC5;
    }
  }

  @media screen and (max-width: 782px) {
    .es-notification {
      padding: 14px 30px;
    }
  }

  .es-setting-page-description {
    font-weight: normal;
    font-size: 16px;
    line-height: 24px;
    color: #37474F;
    margin: 8px 0 40px;

    a {
      text-decoration-line: underline;
    }
  }

  .es-box--marker {

    svg {
      width: 22px;
      height: 22px;
    }

    label {
        margin: 0;
      svg {
          display: none;
      }
    }
  }

  .es-btn--save {
    margin-top: 30px;
  }

  .es-settings-fields {
    width: 100%;
    margin-top: 28px;

    &.es-settings-fields--max-width {
      max-width: 360px;

      @media screen and (max-width: 580px) {
        max-width: 100%;
      }
    }
  }

  a:focus {
    box-shadow: none;
    outline: 0;
  }

  .es-tabs {
    .es-tabs__content {

      h2 {
        margin-bottom: 40px;
      }

      .es-field {

        &.es-field__listings_layout, &.es-field__single_layout {
          .es-row {
            margin-top: -15px;
            margin-bottom: -15px;
          }

          .es-col-4 {
            max-width: 210px;
            margin: 15px 0;
          }
        }

          &.es-field__map_cluster_icon {
            .es-box {
                padding: 6px;

                svg {
                    width: 44px;
                    height: 44px;

                    path {
                        display: initial !important;
                    }
                }
            }
          }

        &.es-field--pro-version:not(.es-field--radio-label):not(.es-field--incrementer) {
          &>label:after {
            content: 'PRO';
            display: block;
            background: #69C200;
            border-radius: 6px;
            width: 33px;
            line-height: 20px;
            text-align: center;
            color: #fff;
            height: 20px;
            font-size: 10px;
            position: absolute;
            //margin-left: 15px;
            right: -49px;
            top: 0;
          }
        }

        &.es-field--pro-version.es-field--incrementer>label:after {
          position: absolute;
          right: -50px;
          top: 54%;
        }

        &.es-field--radio-boxed {
          max-width: initial;
        }

        &.es-field__terms_input_type {
          max-width: 620px;

          .es-row {
            margin-bottom: -15px;
          }

          .es-col-6 {
            margin-bottom: 15px;
          }
        }

        @media screen and (max-width: 580px) {
          max-width: 100%;
        }
      }
    }
  }
}

.es-recommended-page {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 450px;
  padding: 15px 15px;
  align-items: center;
  box-sizing: border-box;
  border: 2px solid #ECEFF1;
  border-radius: 6px;
  font-family: 'Roboto', sans-serif;
  margin-bottom: 20px;

  .es-recommended-page__content {
    flex: 1;
    display: flex;
    align-items: center;

    img {
      margin-right: 15px;
    }

    b {
      font-weight: bold;
      font-size: 12px;
      line-height: 18px;
      color: #B0BEC5;
      display: block;
      margin-bottom: 8px;
    }

    span {
      font-weight: normal;
      font-size: 14px;
      line-height: 24px;
      color: #263238;
    }
  }

  @media screen and (max-width: 480px) {
    text-align: center;
    flex-wrap: wrap;

    .es-recommended-page__content, button, div {
      flex: 1 0 100%;
      text-align: center;
    }

    .es-recommended-page__content {
      flex-wrap: wrap;

      .es-recommended-page__content-inner {
        margin: 20px 0;
      }

      img {
        margin: 0 auto;
        width: 100%;
        max-width: 100px;
      }

      div {
        flex: 1 0 100%;
      }
    }
  }
}
