/*******************************************************************************
 * Off canvas styling.
 ******************************************************************************/

.l-off-canvas-show,
.l-off-canvas-hide {
  display: none;
  position: absolute;
  top: 6px;
  right: 5px;
  width: 24px;
  height: 24px;
  background: transparent url("../../../layouts/main/assets/close.png") center center no-repeat;
  @include hide-text;
}
.l-off-canvas-show {
  right: -40px;
  background: transparent url("../../../layouts/main/assets/menu.png") center center no-repeat;
}

#off-canvas.is-visible{
  ul li {
    clear: both;
    width: 100%;
    a {
      width: 100%;
      text-align: right;
      padding: 10px 20px 8px 20px;
    }
  }
}

@include breakpoint(0 $tab) {
  // No JS Fallbacks
  .no-js .l-off-canvas {
    position: relative;
    min-height: 24px;
    padding-right: 24px;

    .l-region {
      position: relative;
      overflow: hidden;
    }
    .l-off-canvas-hide {
      display: block;
    }
    &:not(:target) {
      .l-region {
        min-height: 0;
        height: 0;
      }
      .l-off-canvas-show {
        display: block;
      }
      .l-off-canvas-hide {
        display: none;
      }
    }
  }

  .js .l-off-canvas {
    background: #635F68;
    position: absolute;
    z-index: 99;
    width: 170px;
    top: 0;
    bottom: 0;
    left: -170px;
    padding-top: 24px;

    @include transition(left 0.2s ease-in);
    cursor: pointer;

    &.is-visible {
      left: 0;
      cursor: auto;

      .l-off-canvas-show {
        display: none;
      }
      .l-off-canvas-hide {
        display: block;
      }
    }
    .l-off-canvas-show {
      display: block;
    }

    ul li {
      clear: both;
      width: 100%;
      a {
        width: 100%;
      }
    }
  }

  .l-branding {
    width: 90%;
    position: relative;
    right: -60px;
    padding-top: 5px;
  }

  #block-rooms-booking-manager-rooms-availability-search {
    padding: 0px;
    .block__title {
      cursor: pointer;
      margin: 0px;
      padding:15px;
      position: relative;
      text-decoration: underline;
      &:after {
        position: absolute;
        content: "\25bc";
        right: 10px;
      }
    }
    .block__content {
      -webkit-transition: max-height 0.5s ease-in-out;
      -moz-transition:    max-height 0.5s ease-in-out;
      -ms-transition:     max-height 0.5s ease-in-out;
      -o-transition:      max-height 0.5s ease-in-out;
      transition:         max-height 0.5s ease-in-out;
      max-height: 0px;
      overflow: hidden;
      form {
        padding: 15px;
      }
    }
    &.open {
      .block__title:after {
        content: "\25b2";
      }
      .block__content {
        max-height: 250px;
      }
    }
  }

  .paragraphs-item-info-boxes {
    .field--name-field-paragraph-info-boxes > .field__items > .field__item {
      clear: left;
      width: 100%;
    }

  }
}


@include susy-breakpoint($tab, $tab-columns) {

  .page-checkout,
  .page-cart {
    ol.commerce-checkout-progress {
      li {
        border-bottom: none;
        clear: none;
        text-align: left;
        text-indent: 30px;
        width: 26%;
        &:after {
          content: " ";
          display: block;
          width: 0;
          height: 0;
          border-top: 50px solid transparent;
          border-bottom: 50px solid transparent;
          border-left: 30px solid #A494C4;
          border-right: none;
          position: absolute;
          top: 50%;
          margin-top: -50px;
          margin-left: 0px;
          left: 100%;
          z-index: 2;
        }
        &:before {
          content: " ";
          display: block;
          width: 0;
          height: 0;
          border-top: 50px solid transparent;
          border-bottom: 50px solid transparent;
          border-left: 30px solid white;
          position: absolute;
          top: 50%;
          margin-top: -50px;
          margin-left: 3px;
          left: 100%;
          z-index: 1;
        }
        &:first-child {
          text-indent: 20px;
          width: 22%;
        }
        &:last-child {
          &:before {
            display: none;
          }
          &:after {
            display: none;
          }
        }
      }
      li.visited {
        &:after {
          border-left: 30px solid #5A4289;
          border-top: 50px solid transparent;
        }
      }
      li.active {
        &:after {
          border-left: 30px solid #599642;
          border-top: 50px solid transparent;
        }
      }
    }
  }

  .commerce-responsive-table .views-row .views-field .views-label {
    display: none;
  }

  .commerce-responsive-table .views-row-1 .views-field .views-label {
    display: block;
    text-align: left;
  }

}


@include susy-breakpoint($desk, $desk-columns) {
  .page-checkout,
  .page-cart {
    ol.commerce-checkout-progress {
      li {
        text-indent: 40px;
        &:last-child {
          &:before {
            display: block;
            margin-left: -18px;
          }
          &:after {
            display: block;
            margin-left: -30px
          }
        }
      }
    }
  }
}
