@import 'init';

body, html {
  margin: 0;
  padding: 0;
  .basefontStyle;
  font-size: @baseFontSize;
  line-height: 1.4em;
  height: 100%;
  color: @baseFontColor;
}

body {
  @media (min-width: 980px) {
    background: url(../img/structure/background.jpg) no-repeat;
    background-position: center 90px;
  }
  @media (max-width: 979px) {
    background: #fdfdfd;
  }
}

@media (min-width: 980px) {
  html {
    background: url(../img/structure/bg_tile.jpg) repeat;
  }
}

a, button, .button, .button2, .mobile-button, .side-nav-trigger {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.no_support_alert {
  display: none;
}

noscript {
  display: block;
  text-align: center;
  background-color: #FCC;
  color: #000;
  position: fixed;
  width: 100%;
  z-index: 1000;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 767px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .desktop-only {
    display: block;
  }
}

@media (min-width: 980px) {
  .header_bg {
    position: absolute;
    height: 90px;
    width: 100%;
    background: #fff;
    box-shadow: 0px 0px 60px 1px #888;
  }
}

header {
  height: 90px;
  position: relative;
  background: #fff;
  @media (max-width: 767px) {
    height: 60px;
  }
}

.formHint {
  display: none;
}

.section-logo {
  margin-left: 12px;

  img {
    margin: 24px 0 0 0;
    height: 25px;
    width: auto;
  }

  @media (min-width: 768px) and (max-width: 979px) {
    img {
      height: 25px;
      margin: 24px 0 0 0;
    }
  }
  @media (max-width: 767px) {
    img {
      height: 18px;
      margin: 23px 0 0 0px;
    }
  }
}

.juta-logo {
  position: absolute;
  top: 13px;
  right: 15px;

  img {
    width: auto;
    display: block;
    height: 25px;
    padding: 4px 0 0 0;
  }

  @media (min-width: 768px) {
    top: 0;
    right: 10px;
    img {
      width: auto;
      height: 43px;
      padding-top: 10px;
    }
  }
}

.colour-bar {
  position: relative;
  z-index: 1;
  .strip-ul;
  background-color: @colorRed;

  ul {
    width: 100%;

    li {
      width: 16.66666%;
      height: 10px;
      float: left;

      &.one {
        background-color: @colorYellow;
      }

      &.two {
        background-color: @colorOrange;
      }

      &.three {
        background-color: @colorGreen;
      }

      &.four {
        background-color: @colorPurple;
      }

      &.five {
        background-color: @colorPink;
      }

      &.six {
        background-color: @colorRed;
      }
    }
  }

  .shad1,
  .shad2 {
    position: absolute;
    bottom: -35px;
    width: 257px;
    height: 35px;
    background-size: 257px 35px;
    background-repeat: no-repeat;
  }

  .shad1 {
    left: 0;
    background-image: url(../img/structure/banshad_bl.png);

  }

  .shad2 {
    right: 0;
    background-image: url(../img/structure/banshad_br.png);
  }
}

/*============================= TOPNAV ===============================*/
@media (min-width: 768px) {
  @import 'topnav-desktop';
}

@media (max-width: 767px) {
  @import 'topnav-mobile';
}


/*============================= LEFTHAND SUBNAV ===============================*/
.left_panel_content {
  #subnav {
    position: relative;
    margin-bottom: 20px;
    .strip-ul;

    ul.accordian {
      > li {
        border-bottom: 1px solid @grey2;
        text-align: left;

        > div > a,
        > div {
          display: block;
          text-transform: uppercase;
          text-decoration: none;
          .transition (all 0.2s);
          color: @grey1;

          &:hover {
            background-color: @grey4;
            color: black;
          }
        }

        > div {
          padding: 3px 8px;
          margin: 3px 0;
        }

        &.notleaf,
        &.down {
          > div {
            background-position: 188px 4px;
            background-repeat: no-repeat;
            background-size: 14px 14px;
            cursor: pointer;
          }
        }

        &.notleaf {
          > div {
            background-image: url(../img/icons_logos/arrows/arrow_grey_2x.png);
          }
        }

        &.down {
          > div {
            background-image: url(../img/icons_logos/arrows/arrow_grey_dwn_2x.png);
          }
        }

        > ul.children {
          margin: 0;
          padding: 0 0 0 15px;
          display: none;

          > li {
            display: block;
            list-style: none;
            text-align: left;
            padding: 0 0 3px 0;

            a {
              display: block;
              text-transform: capitalize;
              padding: 3px 5px;
              .transition (all 0.3s);

              &:hover {
                background-color: @grey4;
              }
            }
          }
        }
      }
    }
  }

  @media (max-width: 979px) {
    #subnav {
      margin-top: 0px;

      ul.accordian {
        > li {
          > div {
            padding: 7px 8px;
          }

          &.notleaf,
          &.down {
            > div {
              background-position: 221px center;
            }
          }

          > ul.children {
            > li {
              a {
                padding: 10px;
              }
            }
          }
        }
      }
    }
  }

  .side-nav-trigger {
    @media (max-width: 979px) {
      position: absolute;
      cursor: pointer;
      right: -33px;
      top: 3px;
      width: 32px;
      height: 45px;
      border-radius: 0 10px 10px 0;
      box-shadow: 2px 0px 5px 0px rgba(0, 0, 0, 0.4);
      border: 1px solid @grey3;
      border-left: none;
      .mobile-nav-bg;
      span {
        display: block;
        width: 20px;
        height: 20px;
        position: absolute;
        right: 7px;
        top: 12px;
        bound-position: center center;
        background-size: auto 18px;
        background-repeat: no-repeat;
        background-image: url(../img/icons_logos/mobile_navbar/leftmenu.png);
      }

      &:hover,
      &.open {
        .mobile-nav-bg-invert;
      }
    }
  }
}

/*============================= Search bar ===============================*/
.search_bar {
  position: absolute;
  right: 0;
  top: 120px;
  width: 200px;
  margin: 0 20px 0 10px;
  z-index: 1100; //must be higher than dl-menu-wrapper
  input[type="text"] {
    width: 170px;
    float: left;
    border: none;
  }

  input[type="submit"] {
    .search-bar-button-style;
  }

  .icon.home {
    float: left;
    margin: 0 5px 0 0;
  }

  @media (max-width: 979px) {
    right: auto;
    left: 0;
    top: 100px;
    width: 100%;
    height: 40px;
    display: none;
    background: #6D6D6D;
    margin: 0;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 1);
    .icon {
      display: none;
    }

    input[type="text"] {
      width: 66%;
      max-width: 350px;
      float: none;
      position: absolute;
      top: 7px;
      right: 50px;
    }

    input[type="submit"] {
      overflow: hidden;
      text-indent: 1000px;
      float: none;
      position: absolute;
      top: 0;
      right: 0;
      width: 39px;
      height: 40px;
      border-left: 1px solid #444;
      box-shadow: inset 1px 0px 1px 0px #a7a4a4;
      background: #6D6D6D url(../img/icons_logos/mobile_navbar/search.png) center center no-repeat;
      background-size: auto 20px;

      &:hover {
        background-color: darken(#6D6D6D, 10%) !important;
        background-image: url(../img/icons_logos/mobile_navbar/search.png) !important;
        background-size: auto 20px !important;

      }
    }

    .close-search {
      left: 0;
      background: #6D6D6D;
      border-right: 1px solid #444;
      box-shadow: inset -1px 0px 1px 0px #a7a4a4;

      &:hover,
      &:active {
        background: darken(#6D6D6D, 10%) !important;
      }
    }

    &.sticky {
      position: fixed;
      top: 0;
    }

    @media (max-width: 767px) {
      top: 70px;
    }
  }
}

/*============================= MOBILE NAV BAR ===============================*/
@media (max-width: 979px) {
  .mobile-navbar {
    position: relative;
    z-index: 3;
    height: 40px;
    width: 100%;
    border-bottom: 1px solid #fff;

    &.sticky {
      position: fixed;
      top: 0;
    }

    .mobile-nav-bg;

    .log-buttons {
      position: absolute;
      left: 80px;
      top: 0;

      .mobile-button {
        text-indent: 0;
        width: auto;
        padding-left: 12px;
        overflow: initial;
        color: #fff;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
        font-size: 18px;
        line-height: 40px;
        text-align: center;
        border: none;
        box-shadow: none;

        &:hover,
        &:active {
          .mobile-nav-bg;
          text-decoration: none;
          color: @colorYellow;
        }
      }
    }

    .searchbar-trigger {
      position: absolute;
      top: 0px;
      right: 0;

      &.mobile-button {
        border-right: none;
        border-left: 1px solid #afafaf;
        box-shadow: inset 1px 0px 1px 0px #f1f1f1;
      }
    }

    @media (max-width: 768px) {
      .cart-trigger {
        &.mobile-button {
          border-right: none;
          border-left: 1px solid #afafaf;
          box-shadow: inset 1px 0px 1px 0px #f1f1f1;
        }
      }
    }
    @media (min-width: 769px) {
      .cart-trigger {
        &.mobile-button {
          display: none;
        }
      }
    }

    .user-menu {

      &.mobile-button {
        border-right: none;
        border-left: 1px solid #afafaf;
        box-shadow: inset 1px 0px 1px 0px #f1f1f1;
      }
    }
  }

  .mobile-button {
    display: block;
    position: absolute;
    top: 0;
    overflow: hidden;
    text-indent: 1000px;
    width: 39px;
    height: 40px;
    border-right: 1px solid #afafaf;
    box-shadow: inset -1px 0px 1px 0px #f1f1f1;
    cursor: pointer;

    &.menutrigger {
      left: 25px;
      top: 70px;

      &.dl-active {
        .mobile-nav-bg-invert;
      }

      &.sticky {
        top: 0px;
      }
    }

    &:active {
      .mobile-nav-bg-invert;
    }

    &.float {
      float: right;
      position: relative;
      top: auto;
    }

    &.ghost {
      box-shadow: none;
      border-color: transparent;
    }

    span.mobile-icon {
      display: block;
      width: 39px;
      height: 40px;
      overflow: hidden;
      text-indent: 1000px;
      background-position: center center;
      background-size: auto 20px;
      background-repeat: no-repeat;

      &.leftnav {
        background-image: url(../img/icons_logos/mobile_navbar/leftmenu.png);
      }

      &.mainnav {
        background-image: url(../img/icons_logos/mobile_navbar/menu.png);
      }

      &.search {
        background-image: url(../img/icons_logos/mobile_navbar/search.png);
        background-size: auto 15px;
      }

      &.close {
        background-image: url(../img/icons_logos/mobile_navbar/close.png);
        background-size: auto 15px;
      }

      &.usermenu {
        background-image: url(../img/icons_logos/mobile_navbar/usermenu.png);
      }

      &.cart {
        background-image: url(../img/icons_logos/mobile_navbar/cart.png);
        background-size: auto 20px;
      }

      &.login, &.logout {
        overflow: initial;
        text-indent: initial;
        text-transform: uppercase;
        color: @grey0;
        font-size: 15px;
        background: none;
        width: auto;
        .transition (all 0.2s);

        &:hover, &:active {
          color: black;
        }
      }
    }
  }

  @media (max-width: 768px) {
  }
}

@media (min-width: 768px) and (max-width: 979px) {
  .mobile-navbar {
    .log-buttons {
      left: 40px;
    }
  }
}

@media (min-width: 980px) {
  .mobile-button {
    display: none;
  }
}

// only if no touch device
body.no-touch {
  .mobile-button:hover,
  .mobile-button.menutrigger:hover {
    .mobile-nav-bg-invert;
  }
}


/*============================= MAIN FRAME ===============================*/
.body_bg {
  height: auto !important;
  min-height: 100%;
  overflow-x: hidden;
  @media (min-width: 980px) {
    background: url(../img/structure/mid-bg-tile.png) center repeat-y;
  }
}

.outer-wrap {
  height: 100%;
  max-width: 980px;
  width: 100%;
  margin: auto;
  position: relative;
  .transition (margin-left 0.3s);

  &.menu-open {
    margin-left: 260px;
  }
}

.bg-gradient {
  height: 150px;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.left_panel {
  position: relative;
  float: left;
  background-color: @grey5;
  .border-box;

  .padding {
    position: relative;
    padding: 20px 10px 10px 10px;
  }

  section {
    position: relative;
    z-index: 1;
  }

  .bg-gradient {
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2M0YzRjNCIgc3RvcC1vcGFjaXR5PSIwLjciLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
    background: -moz-linear-gradient(top, rgba(196, 196, 196, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(196, 196, 196, 0.7)), color-stop(100%, rgba(255, 255, 255, 0)));
    background: -webkit-linear-gradient(top, rgba(196, 196, 196, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(top, rgba(196, 196, 196, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(top, rgba(196, 196, 196, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to bottom, rgba(196, 196, 196, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#b3c4c4c4', endColorstr='#00ffffff',GradientType=0);
  }

  .toggle-loginbox {
    display: none;
  }

  @media (min-width: 980px) {
    width: 230px;
    border-left: 4px solid white;
  }
  @media (max-width: 979px) {
    width: 260px;
    position: absolute;
    height: 100%;
    //overflow-y: scroll;
    top: 0;
    left: -310px;
    background: #ededee;
    z-index: 1100;
    .transition (all 0.4s);
    box-shadow: 0px 0px 0px 0px #000;
    &.menu-open {
      left: 0;
      box-shadow: 1px 0px 60px 0px #000;
    }
  }
}

.main_wrap {
  position: relative;
  float: left;
  background-color: @mainContentBg;
  @media (min-width: 980px) {
    width: 750px;
  }
  @media (max-width: 979px) {
    float: none;
    width: 100%;
  }

  .bg-gradient {
    background: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiA/Pgo8c3ZnIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgdmlld0JveD0iMCAwIDEgMSIgcHJlc2VydmVBc3BlY3RSYXRpbz0ibm9uZSI+CiAgPGxpbmVhckdyYWRpZW50IGlkPSJncmFkLXVjZ2ctZ2VuZXJhdGVkIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjAlIiB5MT0iMCUiIHgyPSIwJSIgeTI9IjEwMCUiPgogICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2RkZGRkZCIgc3RvcC1vcGFjaXR5PSIwLjgiLz4KICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwIi8+CiAgPC9saW5lYXJHcmFkaWVudD4KICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSJ1cmwoI2dyYWQtdWNnZy1nZW5lcmF0ZWQpIiAvPgo8L3N2Zz4=);
    background: -moz-linear-gradient(top, rgba(221, 221, 221, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(221, 221, 221, 0.8)), color-stop(100%, rgba(255, 255, 255, 0)));
    background: -webkit-linear-gradient(top, rgba(221, 221, 221, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    background: -o-linear-gradient(top, rgba(221, 221, 221, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    background: -ms-linear-gradient(top, rgba(221, 221, 221, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    background: linear-gradient(to bottom, rgba(221, 221, 221, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ccdddddd', endColorstr='#00ffffff',GradientType=0);
  }
}

//compensate for page scrollbar
.no-touch .main_wrap {
  @media (min-width: 980px) and (max-width: 995px) {
    width: 735px;
    .main_content {
      width: 70%;
    }

    .right_panel {
      width: 30%;
    }
  }
}

.main_content {
  position: relative;
  float: left;

  .padding {
    padding: 15px;
  }

  @media (min-width: 980px) {
    width: 520px;
  }
  @media (min-width: 768px) and (max-width: 979px) {
    width: 70%;
  }
  @media (max-width: 767px) {
    width: 100%;
    float: none;
    .padding {
      padding: 10px;
    }
  }
}

.right_panel {
  position: relative;
  float: right;
  margin-top: 34px;
  .border-box;

  > .padding {
    padding: 15px 20px 10px 10px;
  }

  @media (min-width: 980px) {
    width: 230px;
  }
  @media (max-width: 979px) {
    margin-top: -10px;
  }
  @media (min-width: 768px) and (max-width: 979px) {
    width: 30%;
  }
  @media (max-width: 767px) {
    width: 100%;
    float: none;
    .padding {
      padding: 10px;
      //.box-wrap { max-width: 300px;}
    }
  }

  aside {
    padding: 10px 15px 10px 10px;
  }

}


/*============================= CONTENT ===============================*/

a {
  text-decoration: none;

  img {
    border: none;
  }
}

img {
  border: none;
}

*:focus {
  outline: none;
}


h1, .h1 {
  font-size: 22px;
  line-height: 26px;
  padding: 0;
  margin: 10px 0 15px 0;
  font-weight: normal;

  a {
    .a-color-content;
  }
}

h2, .h2 {
  font-size: 19px;
  padding: 0;
  margin: 5px 0 10px 0;
  font-weight: normal;

  a {
    .a-color-content;
  }

}

h3 {
  font-size: 16px;
  padding: 0;
  margin: 2px 0 5px 0;
  font-weight: bold;

  a {
    .a-color-content;
  }
}

h4, h5, h6 {
  font-size: 12px;
  padding: 0;
  margin: 0;
  line-height: 18px;
  font-weight: bold;
}

.p-li-style {
  line-height: @baseFontSize * 1.5;
  margin: 0 0 10px 0;
  text-align: left;
  .basefontStyle;

  a {
    .a-color-content;
  }
}

.li-style {
  p {
    margin: 0;
  }

  > a {
    .a-color-content;
  }

  margin: 3px 0;
}

p, li, pre {
  .p-li-style;
}

li {
  .li-style
}

ul.link-list {
  .inside-ul-strip;

  li a {
    .link-arrow;
    line-height: 15px;
    background-position: 5px 5px;
    padding: 5px 3px 5px 25px;
    margin: 5px 0;
  }
}

// only if no touch device
body.no-touch {
  .tooltip {
    border: 1px solid @grey0;
    width: 100px;
    height: auto;
    line-height: 18px;
    background: @grey2;
    color: #333;
    line-height: 20px;
    padding: 4px 8px;
    z-index: 9000;
    box-shadow: 2px 2px 4px @grey2;
  }
}

.hide-inline {
  display: none;
}

.fancybox-inner {
  .pop-up-box-wrap {
    width: 100%;
    max-width: 600px;
    background-color: @grey5;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid transparent;

    h2,
    .box-header,
    h1 {
      padding: 10px;
      background: @colorYellow;
      margin: 0 0 10px 0;
      font-size: 16px;

      + * {
        padding: 10px;
      }
    }

    > form {
      padding: 10px;
    }

    > p {
      padding: 0 10px;
    }

    h1 ~ h2 {
      background: transparent;
    }

    p, li {
      .p-li-style;
    }

    li {
      .li-style
    }

    .clear-after;
    @media (min-width: 768px) {
      min-width: 600px;
    }
    @media (max-width: 767px) {
      min-width: 380px;
    }
    @media (max-width: 479px) {
      min-width: initial;
      .button,
      button {
        float: left !important;
        margin-left: 15px;

        &:first-child {
          margin-left: 0;
        }
      }
    }
  }
}

//targets all content inside a container. 
.welcome p {
  text-align: justify !important;
}

.welcome.home-bottom > .dynamic-block-wrapper {
  padding: 20px 0px 10px 0;
  border-top: 1px solid @grey3;
  border-bottom: 1px solid @grey3;
  margin: 20px 0px;
}

.strip-rich-text,
.dynamic-block-wrapper,
.welcome {
  line-height: @baseFontSize * 1.5 !important;
  font-size: @baseFontSize !important;
  color: @baseFontColor !important;

  p,
  span,
  ul,
  li {
    line-height: @baseFontSize * 1.5 !important;
    margin: 0 0 15px 0 !important;
    font-family: Verdana, Arial, sans-serif !important;
    font-size: @baseFontSize !important;
    color: @baseFontColor !important;
  }

  li {
    margin: 3px 0 !important;

    p {
      margin: 0 !important;
    }
  }

  a,
  a > span {
    color: @grey1;
    font-weight: normal !important;

    &:hover, &:active {
      color: black !important
    }
  }

  table {
    p {
      margin: 0 !important;
    }

    th, th p {
      font-weight: normal;
      text-align: left;
      text-transform: uppercase;
    }
  }

  #orange-text-header,
  #orange-text-header > p,
  #teal-text-header,
  #teal-text-header > p {
    font-size: @baseFontSize * 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
  }

  #orange-text-header,
  #orange-text-header > p {
    color: @baseFontColor !important;
  }

  #teal-text-header,
  #teal-text-header > p {
    color: @baseFontColor !important;
  }

  #orange-text-header,
  #teal-text-header {
    border-bottom: 1px solid @grey3 !important;
    padding-bottom: 2px !important;
    margin-bottom: 10px !important;
    margin-top: 20px !important;
  }
}

.caps {
  text-transform: uppercase;
}

.arrow-icon {
  width: 15px;
  height: 15px;
  background-image: url(../img/icons_logos/icon_arrows_sprite_2x.png);
  background-repeat: no-repeat;
  background-size: 45px 30px;
}


.left {
  float: left;
}

.right {
  float: right;
}

.clear {
  clear: both;
}

.relative {
  position: relative;
}

.white {
  color: #FFF !important;
}

.divider,
hr {
  background-color: @grey3;
  height: 1px;
  width: 100%;
  margin: 20px 0;
  border: none;
}

.form-wrap hr {
  background-color: @grey2;
}

//general table layout
table {
  .strip-table;
  margin-bottom: 20px;
  background: @mainContentBg;

  > thead tr th,
  > tbody:first-child tr:first-child td {
    margin: 0;
    padding: 8px 6px !important;
    background-color: @grey2 !important;
    text-align: left;
    border-bottom: 1px solid white;
    border-top: 1px solid white;
    border-left: 1px solid white;
    border-right: 1px solid white;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: normal;

    &:first-child {
      border-left: none !important;
    }
  }

  &.no-header > tbody tr:first-child,
  tbody tr,
  tr {
    td {
      background: @grey4 !important;
      padding: 6px !important;
      vertical-align: middle;
      border-bottom: 1px solid white;
      border-left: 1px solid white;
      border-right: 1px solid white;
      border-top: none;
      font-size: @baseFontSize;
      font-weight: normal;
      text-transform: initial;

      &:first-child {
        border-left: none;
      }

      .button,
      button {
        margin: 0 !important;
        min-width: 100px;
        text-align: center;
      }

      a {
        .a-color-content;
      }
    }

    &:nth-child(even) {
      td {
        background: @grey5 !important;
      }
    }
  }

  &.clean,
  &.strip,
  &.mceLayout {
    background: transparent;

    thead {
      tr {
        th {
          background-color: transparent !important;
          border: none;
        }
      }
    }

    tbody tr td,
    > tbody:first-child tr:first-child td {
      background-color: transparent !important;
      border: none;
      padding: 4px;
      font-weight: normal;
      vertical-align: top;
      .basefontStyle;
      font-size: @baseFontSize !important;
      text-transform: initial !important;
    }

    tr:nth-child(even) {
      td {
        background: transparent;
      }
    }
  }

  &.strip {
    width: auto;

    thead tr th,
    tbody tr td {
      font-size: @baseFontSize;
      .basefontStyle;
      font-weight: normal;
      padding: 0 0 0 10px !important;
      line-height: @baseFontSize * 1.5;
      text-transform: initial;

      a {
        .a-color-content;
      }
    }
  }
}

.sharing {
  padding: 10px;
  background: @grey4;
  line-height: 14px;
  margin: 10px 0;
}


.box-wrap {
  position: relative;
  padding: 5px;
  background-color: #fff;
  position: relative;
  margin-bottom: 15px;
  .strip-ul;

  ul {
    li {
      text-align: left;

      a {
        display: block;
        padding: 4px 2px 2px 2px;
        margin: 3px 0;
        .transition (all 0.3s);

        &:hover, &:active {
          background-color: @grey4;
        }

        strong {
          font-weight: normal !important;
        }
      }

      border-bottom: 1px solid @grey3;
    }
  }

  .box-header {
    font-size: 16px;
    margin: -10px -10px 15px -10px;
    padding: 5px 10px;
    background-color: @colorYellow;
  }

  .padding {
    background-color: @grey5;
    padding: 10px;
  }

  .boxshad_r, .boxshad_l, .boxshad_br, .boxshad_bl {
    position: absolute;
  }

  .boxshad_r, .boxshad_l {
    height: 47px;
    width: 4px;
    bottom: 0;
  }

  .boxshad_r {
    right: -4px;
    background: url(../img/structure/boxshad_r.png) no-repeat;
  }

  .boxshad_l {
    left: -4px;
    background: url(../img/structure/boxshad_l.png) no-repeat;
  }

  .boxshad_br, .boxshad_bl {
    width: 95px;
    height: 9px;
    bottom: -9px;
  }

  .boxshad_br {
    right: -7px;
    background: url(../img/structure/boxshad_br.png) no-repeat;
  }

  .boxshad_bl {
    left: -4px;
    background: url(../img/structure/boxshad_bl.png) no-repeat;
  }

  a {
    .transition (all 0.3s);

    &:hover,
    &:active {
      background-color: @grey4;
    }
  }
}

/*============================= BLOCK LAYOUT ===============================*/
.block-wrap {
  width: 100%;
  margin: 0 0 10px 0;

  .padding {
    padding: 15px;
  }

  .quart-block {
    position: relative;
    width: 24.2%;
    float: left;
    margin-left: 1%;
    min-height: 1px;

    &:first-child {
      margin-left: 0;
    }

    @media (max-width: 479px) {
      width: 100%;
      float: none;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }
  }

  .half-block {
    position: relative;
    width: 49%;
    float: left;
    margin-left: 2%;
    min-height: 1px;

    &:nth-child(odd),
    &:first-child {
      margin-left: 0;
    }
  }

  .third-block {
    position: relative;
    width: 32%;
    float: left;
    margin-left: 2%;
    min-height: 1px;

    &:first-child {
      margin-left: 0;
    }

    &.twothirds-block {
      width: 66%;
    }
  }

  &.connect-blocks {
    > .half-block {
      width: 50%;
      margin-left: 0;
    }

    > .third-block {
      width: 33%;
      margin-left: 0;

      &.twothirds-block {
        width: 67%;
      }
    }
  }

  &.connect-below {
    margin-bottom: 0;
  }

  .border-left {
    border-left: 1px solid #c8c7c7;
  }

  .border-right {
    border-right: 1px solid #c8c7c7;
  }

  @media (max-width: 767px) {
    .half-block,
    .third-block,
    .third-block.twothirds-block {
      width: 100%;
      float: none;
      margin-left: 0 !important;
      margin-right: 0 !important;
    }

    &.stay {
      > .half-block {
        width: 48%;
        float: left;
        margin-left: 4% !important;

        &:first-child {
          margin-left: 0 !important;
        }
      }

      > .third-block {
        width: 32%;
        float: left;

        &:first-child {
          margin-left: 0;
        }

        &.twothirds-block {
          width: 66% !important;
          margin-left: 2%;
          float: left;
        }
      }

      &.connect-blocks {
        > .half-block {
          width: 50%;
          margin-left: 0 !important;
        }

        > .third-block {
          width: 33%;
          margin-left: 0;

          &.twothirds-block {
            width: 67%;
          }
        }
      }
    }

    &.connect-blocks {
      > .half-block {
        width: 100%;
        margin-left: 0;
      }

      > .third-block {
        width: 100%;
        margin-left: 0;

        &.twothirds-block {
          width: 100%;
        }
      }
    }

    .border-left,
    .border-right {
      border: none;
    }
  }
}

@import 'content';
@import 'forms';
@import 'scrollbar';
@import 'jquery-fancybox';

/*============================= FOOTER ===============================*/
.footer-spacer {
  height: 40px;
}

footer {
  position: fixed;
  width: 100%;
  bottom: 0;
  height: 40px;
  box-shadow: inset 0px 4px 10px 1px rgba(0, 0, 0, 0.3);
  background: #666 url(../img/structure/footer_tile.png) repeat;
  z-index: 110;

  nav {
    .strip-ul;

    ul {
      li {
        float: left;

        a {
          color: #fff !important;
          display: block;
          padding: 0 8px;
          line-height: 40px;
          .transition (0.3s);

          &:hover,
          &:active,
          &.active {
            color: @grey3 !important;
          }
        }
      }
    }
  }

  p.copy {
    color: #fff;
    padding: 0 0 0 10px;
    line-height: 40px;
  }

}

@media (max-width: 979px) {
  .footer-spacer {
    height: 0px;
  }

  footer {
    padding-top: 10px;
    position: relative;
    bottom: auto;
    height: auto;

    nav ul {
      li a {
        line-height: 30px;
      }
    }

    p.copy {
      line-height: 30px;
    }
  }
}

.touch {
  .footer-spacer {
    height: 0px;
  }

  footer {
    padding-top: 10px;
    position: relative;
    bottom: auto;
    height: auto;

    nav ul {
      li a {
        line-height: 30px;
      }
    }

    p.copy {
      line-height: 30px;
    }
  }
}

#gdpr-box {
  position: fixed;
  display: none;
  width: 100%;
  background: #4d4d4d;
  color: #fff;
  bottom: 0;
  z-index: 999;

  .wrapper {
    margin: 0 auto;
    display: flex;
    justify-content: space-between;

    .content {
      font-size: 1.3rem;
      line-height: 2rem;
      padding: 20px 30px;
      width: 80%;
      float: left;
      a {
        color: white;
        text-decoration: underline;
        font-weight: bolder;
      }
    }

    .accept-button-wrapper {
      display: flex;
      justify-items: center;
      justify-content: center;
      align-items: center;
      width: 15%;
      float: right;

      .button-accept {
        height: 30px;
        background: rgb(234, 112, 33);
        color: #fff !important;
        font-size: 12px;
        text-decoration: none;
        border-radius: 2px;
        text-align: left;
        border: none;
        font-weight: 800;
        -webkit-transition: all .5s;
        -moz-transition: all .5s;
        -o-transition: all .5s;
        transition: all .5s;
        display: flex;

        svg {
          display: inline-block;
          padding-top: 5px;
          padding-right: 5px;
          width: 10px;
          height: 10px;
          color: #fff;
          fill: #fff;
        }
      }
      &:hover {
        cursor: pointer;
      }
    }
  }
}
