@import "bourbon";
@mixin oswald {
  font-family: 'Oswald', sans-serif;
}
@mixin merriwather {
  font-family: 'Merriweather', serif;
}
@mixin clearfix {
  &:after {
    content: "";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0;
  }
}
$white: #fff;
$black: #000;

[class*='gr_one_set'] {
  &.tve_gray_bg {
    background-image: none;
    background: #c2c2c2;
  }
}
#tve_gr_one_set {
  [class*='gr_one_set'] {
    @include clearfix();
    background: #fff;
    a {
      color: #2295ed;
      text-decoration: underline;
      &:hover {
        text-decoration: none;
      }
    }
    h1 {
      @include oswald();
      color: #232323;
      font-weight: 400;
      font-size: 55px;
      line-height: 1.273em;
      letter-spacing: normal;
    }
    h2 {
      @include oswald();
      color: #232323;
      font-weight: 400;
      font-size: 55px;
      line-height: 1.273em;
      letter-spacing: normal;
    }
    h3 {
      @include oswald();
      color: #232323;
      font-weight: 400;
      font-size: 45px;
      line-height: 1.222em;
      letter-spacing: normal;
    }
    h4 {
      @include oswald();
      color: #232323;
      font-weight: 400;
      font-size: 36px;
      line-height: 1.222em;
      letter-spacing: normal;
    }
    h5 {
      @include oswald();
      color: #232323;
      font-weight: 400;
      font-size: 30px;
      line-height: 1.222em;
      letter-spacing: normal;
    }
    h6 {
      @include oswald();
      color: #232323;
      font-weight: 400;
      font-size: 24px;
      line-height: 1.222em;
      letter-spacing: normal;
    }
    p {
      @include merriwather();
      color: #686868;
      font-size: 30px;
      font-weight: 400;
      line-height: 1.467em;
      margin-bottom: 20px;
      &.bold_text {
        font-weight: 700;
      }
    }
    blockquote {
      @include merriwather();
      background: transparent;
      border: 0;
      color: #7d7d7d;
      font-style: italic;
      font-size: 30px;
      font-weight: 400;
      padding-left: 90px;
      position: relative;
      &:before {
        content: '\0201C';
        color: #424242;
        display: block;
        font-size: 142px;
        position: absolute;
        left: -20px;
        top: -20px;
      }
    }
    ol.thrv_wrapper {
      li {
        @include merriwather();
        color: #686868;
        font-size: 30px;
        font-weight: 400;
        line-height: 44px;
        &.bold_text {
          font-weight: 700;
        }
      }
    }
    ul.thrv_wrapper {
      li {
        @include merriwather();
        color: #686868;
        font-size: 30px;
        font-weight: 400;
        line-height: 44px;
        &.bold_text {
          font-weight: 700;
        }
      }
    }
  }
}
#tve_gr_one_set {
  @include merriwather();
  text-shadow: none;
  position: relative;
  article {
    padding-bottom: 0;
  }
  .gr-close-button {
    @include transform(translateX(-50%));
    cursor: pointer;
    margin: 0 auto;
    position: absolute;
    bottom: 20px;
    left: 50%;
  }
  .thrv-greedy-ribbon {
    padding-top: 15vh;
  }
  .tve-greedy-ribbon-content {
    @include clearfix();
    max-width: 800px;
    margin: 0 auto;
  }
  .thrv_icon {
    border-radius: 100px;
    .tve_sc_icon {
      border-radius: 100px;
      padding: 15px;
    }
  }
  .thrv_button_shortcode {
    .tve_btn3.tve_btn {
      border-radius: 10px;
      &.tve_white {
        background: transparent;
        border: 1px solid #d0d0d0;
        span {
          color: #232323;
        }
        &:hover {
          background: transparent;
          border: 1px solid #d0d0d0;
          span {
            color: #5f5f5f;
          }
        }
        &:active {
          background: transparent;
          border: 1px solid #d0d0d0;
          span {
            color: #232323;
          }
        }
      }
      &.tve_normalBtn {
        font-size: 30px;
        line-height: 35px !important;
        .tve_btnLink {
          padding: 24px 10px;
          text-shadow: none;
        }
      }
    }
  }
  .thrv_content_container_shortcode {
    position: relative;
    z-index: 1;
  }
  .thrv_lead_generation {
    &.tve_white {
      .tve_lg_submit {
        button {
          background: transparent;
          border: 1px solid #d0d0d0;
          color: #232323;
          &:hover {
            background: transparent;
            border: 1px solid #d0d0d0;
            color: #5f5f5f;
          }
          &:active {
            background: transparent;
            border: 1px solid #d0d0d0;
            color: #232323;
          }
        }
      }
    }
    &.thrv_lead_generation_vertical {
      .tve_lg_submit {
        width: 49%;
      }
    }
    .thrv_lead_generation_container {
      .tve_lead_generated_inputs_container {
        .thrv_icon.thrv_wrapper {
          top: 40%;
        }
      }
    }
    button {
      @include merriwather();
      border-radius: 10px;
      border: 0;
      color: $white;
      font-weight: 500;
      font-size: 30px;
      line-height: 35px;
      padding: 24px 10px;
      text-shadow: none;
    }
    input[type="text"], input[type="email"] {
      @include merriwather();
      border-radius: 10px;
      border: 2px solid #d0d0d0;
      background: $white;
      color: #a1a0a0;
      font-size: 30px;
      font-weight: 400;
      height: auto;
      line-height: 35px;
      margin-bottom: 20px;
      padding: 20px !important;
      &:hover {
        border: 2px solid #b5b5b5;
        color: #a1a0a0;
      }
      &:focus {
        color: #232323;
      }
    }
  }
  /*
    autoresponder elements
  */
  .tve_lg_radio_wrapper {
    display: inline-block;
    position: relative;
    padding: 5px 20px 5px 0;
    input[type="radio"] {
      cursor: pointer;
      height: 100%;
      margin: 0;
      padding: 0;
      opacity: 0;
      position: absolute;
      left: 0;
      top: 0;
      z-index: 5;
      width: 100%;
      &:checked {
        + label {
          &:before {
            border: 2px solid #232323;
          }
          &:after {
            background: #232323;
          }
        }
      }
      + label {
        @include merriwather();
        color: #686868;
        display: inline-block;
        position: relative;
        font-size: 30px;
        font-weight: 400;
        &:before {
          background-color: #fff;
          border: 2px solid #686868;
          border-radius: 100%;
          content: '';
          display: inline-block;
          height: 20px;
          margin-right: 10px;
          position: relative;
          top: -3px;
          vertical-align: middle;
          width: 20px;
        }
        &:after {
          @include transition(background-color .3s);
          background-color: transparent;
          border-radius: 100%;
          content: '';
          height: 16px;
          position: absolute;
          @media screen and(-webkit-min-device-pixel-ratio:0) {
            top: 9px;
          }
          top: 10px;
          left: 4px;
          width: 16px;
        }
      }
    }
  }
  .tve_lg_checkbox_wrapper {
    display: inline-block;
    position: relative;
    padding: 5px 20px 5px 0;
    width: auto;
    input[type="checkbox"] {
      &:not(:checked),
      &:checked {
        position: absolute;
        visibility: hidden;
        + label {
          @include merriwather();
          color: #686868;
          cursor: pointer;
          font-size: 30px;
          font-weight: 400;
          position: relative;
          padding-left: 35px;
          &:before {
            border-radius: 5px;
            background-color: #fff;
            border: 2px solid #686868;
            content: '';
            height: 25px;
            position: absolute;
            left: 0;
            top: 2px;
            width: 25px;
          }
          &:after {
            @include transition(all, .2s);
            content: "\02713";
            font-size: 20px;
            font-weight: 600;
            position: absolute;
            top: 2px;
            left: 7px;
          }
        }
      }
      &:not(:checked) + label:after {
        @include transform(scale(0));
        opacity: 0;
      }
      &:checked + label:after {
        @include transform(scale(1));
        color: #fff;
        opacity: 1;
      }
      &:checked + label:before {
        background: #232323;
        border: 2px solid #232323;
      }
    }
  }
  .tve_lg_dropdown {
    position: relative;
    select {
      @include appearance(none);
      @include merriwather();
      background-color: #fff;
      border: 2px solid #d0d0d0;
      color: #232323;
      border-radius: 10px;
      cursor: pointer;
      display: inline-block;
      font-size: 30px;
      font-weight: 400;
      line-height: 33px;
      height: 71px;
      margin: 0;
      outline: none;
      padding-right: 40px !important;
      option {
        color: #232323;
        font-size: 38px;
        font-weight: 400;
      }
      &:hover {
        background: #f9f9f9;
      }
    }
    .tve_sc_icon {
      margin-right: 20px;
    }
    &:after {
      color: #d0d0d0;
      content: "\002C7";
      font-size: 40px;
      font-weight: 700;
      height: 20px;
      line-height: 40px;
      pointer-events: none;
      position: absolute;
      top: 25px;
      right: 20px;
      text-align: center;
      width: 20px;
    }
  }

}
$color-pallete: 'blue' #2295ed #44a9f6 #1984d6 #2295ed,
'black' #d0d0d0 #e8e8e8 #b3b3b3 #d0d0d0,
'green' #4adb76 #77e799 #33be5d #4adb76,
'white' #fff #fff #fff #ddd,
'orange' #ffb628 #ffc553 #f79c27 #ffb628,
'purple' #a562e3 #b682e7 #8040bc #a562e3,
'red' #e65a43 #f07763 #ca412a #e65a43,
'teal' #38e0ea #88ebf1 #28c3cc #38e0ea;

@each $color in $color-pallete {
  #tve_gr_one_set {
    .thrv-greedy-ribbon.tve_#{nth($color, 1)} {
      border-top: 20px solid nth($color, 2);
    }
    .thrv_icon.thrv_wrapper {
      span.tve_sc_icon.tve_#{nth($color, 1)} {
        color: nth($color, 5);
      }
    }
    .thrv_button_shortcode {
      .tve_btn3.tve_#{nth($color, 1)} {
        background: nth($color, 2);
        border: 1px solid nth($color, 2);
        &:hover {
          background: nth($color, 3);
          border: 1px solid nth($color, 3);
        }
        &:active {
          background: nth($color, 4);
          border: 1px solid nth($color, 4);
        }
      }
    }
    .thrv_lead_generation.tve_#{nth($color, 1)} {
      button {
        background: nth($color, 2);
        border: 1px solid nth($color, 2);
        &:hover {
          background: nth($color, 3);
          border: 1px solid nth($color, 3);
        }
        &:active {
          background: nth($color, 4);
          border: 1px solid nth($color, 4);
        }
      }
    }
  }
}
@font-face {
  font-family: 'tve-leads-gr-one-set-icons';
  src: url('fonts/gr_one_set/gr_one_set_icons.eot?o8i8n4');
  src: url('fonts/gr_one_set/gr_one_set_icons.eot?#iefixo8i8n4') format('embedded-opentype'),
  url('fonts/gr_one_set/gr_one_set_icons.woff?o8i8n4') format('woff'),
  url('fonts/gr_one_set/gr_one_set_icons.ttf?o8i8n4') format('truetype'),
  url('fonts/gr_one_set/gr_one_set_icons.svg?o8i8n4#icomoon') format('svg');
  font-weight: normal;
  font-style: normal;
}
[class^="gr-one-set"], [class*=" gr-one-set"] {
  color: inherit;
  font-family: 'tve-leads-gr-one-set-icons' !important;
  speak: none;
  font-style: normal;
  font-weight: normal;
  font-variant: normal;
  text-transform: none;
  line-height: 1;

  /* Better Font Rendering =========== */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.gr-one-set-close:before {
  content: "\f078";
}
@media only screen and (max-width: 800px) {
  #tve_gr_one_set {
    .thrv-greedy-ribbon {
      padding: 50px 20px 20px;
    }
    .thrv_lead_generation.thrv_lead_generation_vertical .tve_lg_submit {
      width: 100%;
    }
    .gr-button-container {
      .tve_content_inner {
        margin-top: 0!important;
        width: 100%!important;
      }
    }
    .thrv_lead_generation {
      input[type="text"], input[type="email"] {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 5px;
        padding: 10px!important;
      }
      button {
        font-size: 20px;
        line-height: 25px;
        padding: 10px;
      }
    }
    .thrv_button_shortcode {
      margin-top: 0;
      margin-bottom: 0;
      .tve_btn3.tve_btn.tve_normalBtn {
        font-size: 20px;
        line-height: 25px!important;
        .tve_btnLink {
          padding: 10px;
        }
      }
    }
    .gr-close-button {
      bottom: 40px;
      .tve_sc_icon {
        font-size: 15px!important;
      }
    }
  }
}
@media only screen and (max-width: 500px) {
  #tve_gr_one_set {
    h2, p {
      margin-bottom: 15px!important;
    }
    p {
      font-size: 15px!important;
    }
    .gr-close-button {
      bottom: 10px;
      .tve_sc_icon {
        font-size: 15px!important;
        padding: 5px;
      }
    }
  }
}
@media only screen and (max-height: 700px) {
  #tve_gr_one_set {
    h2, p {
      margin-bottom: 15px!important;
    }
    .gr-close-button {
      bottom: 10px;
      .tve_sc_icon {
        font-size: 15px!important;
        padding: 5px;
      }
    }
  }
}
@media only screen and (max-height: 600px) {
  #tve_gr_one_set {
    h2 {
      font-size: 30px!important;
    }
    .thrv_lead_generation.thrv_lead_generation_vertical .tve_lg_submit {
      width: 100%;
    }
    .gr-button-container {
      .tve_content_inner {
        margin-top: 0!important;
        width: 100%!important;
      }
    }
    .thrv_lead_generation {
      input[type="text"], input[type="email"] {
        font-size: 20px;
        line-height: 25px;
        margin-bottom: 5px;
        padding: 10px!important;
      }
      button {
        font-size: 20px;
        line-height: 25px;
        padding: 10px;
      }
    }
    .thrv_button_shortcode {
      .tve_btn3.tve_btn.tve_normalBtn {
        font-size: 20px;
        line-height: 25px!important;
        .tve_btnLink {
          padding: 10px;
        }
      }
    }
  }
}
@import "_responsive";
