/* Espilon Layout Control */

.epsilon-layouts-container {
  .epsilon-button-label {
    display: inline-block;
    margin-right: 20px;
    text-align: left;
  }

  a {
    outline: none;
    text-decoration: none;
    color: #000;
    &:hover,
    &:focus {
      text-decoration: none;
      color: #79b5d1;
    }
  }

  .epsilon-layouts-advanced-toggler {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #fefefe;
    padding: 9px;
    -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, .1);
    -moz-box-shadow: 0 0 4px rgba(0, 0, 0, .1);
    box-shadow: 0 0 4px rgba(0, 0, 0, .1);
    display: inline-block;
    vertical-align: middle;
    .dashicons {
      line-height: 21px;
    }
    &.active {
      background: #f4f4f4;
      -webkit-border-bottom-right-radius: 0;
      -moz-border-bottom-right-radius: 0;
      border-bottom-right-radius: 0;
      -webkit-border-bottom-left-radius: 0;
      -moz-border-bottom-left-radius: 0;
      border-bottom-left-radius: 0;
      color: #79b5d1;
    }
  }

  .epsilon-layouts-container-buttons {
    label {
      display: block;
    }
    .epsilon-button-group {
      -webkit-box-shadow: 0 0 4px rgba(0, 0, 0, .1);
      -moz-box-shadow: 0 0 4px rgba(0, 0, 0, .1);
      box-shadow: 0 0 4px rgba(0, 0, 0, .1);
      background: #fefefe;
      -webkit-border-radius: 3px;
      -moz-border-radius: 3px;
      border-radius: 3px;
      display: table;
      table-layout: fixed;
      vertical-align: middle;
      width: 81%;
      float: left;
      margin-right: 3px;
      a {
        &.active {
          -webkit-box-shadow: inset 0 2px 5px rgba(0, 0, 0, .08);
          -moz-box-shadow: inset 0 2px 5px rgba(0, 0, 0, .08);
          box-shadow: inset 0 2px 5px rgba(0, 0, 0, .08);
          &:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background-color: #57a7c9;
          }
        }

        &:first-of-type {
          -webkit-border-top-left-radius: 3px;
          -moz-border-top-left-radius: 3px;
          border-top-left-radius: 3px;
          -webkit-border-bottom-left-radius: 3px;
          -moz-border-bottom-left-radius: 3px;
          border-bottom-left-radius: 3px;
        }
        &:last-of-type {
          -webkit-border-top-right-radius: 3px;
          -moz-border-top-right-radius: 3px;
          border-top-right-radius: 3px;
          -webkit-border-bottom-right-radius: 3px;
          -moz-border-bottom-right-radius: 3px;
          border-bottom-right-radius: 3px;
        }

        background: #fefefe;
        padding: 9px 5px;
        display: table-cell;
        position: relative;
        width: 100%;
        text-align: center;
        img {
          vertical-align: middle;
        }

      }
    }
  }

  .epsilon-layouts-container-advanced {
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-border-top-right-radius: 0px;
    -moz-border-top-right-radius: 0px;
    border-top-right-radius: 0px;
    background-color: #f4f4f4;
    -webkit-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
    -moz-box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
    box-shadow: 0 4px 5px rgba(0, 0, 0, .05);
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    display: none;
    .epsilon-layouts-container-label {
      margin-bottom: 20px;
      display: inline-block;
    }

    .epsilon-layouts-setup {
      display: inline-block;
      width: 100%;
    }

    .epsilon-column {
      border-right: 4px solid #f4f4f4;
      float: left;
      position: relative;
      box-sizing: border-box;
      height: 40px;
      background-color: #cacaca;
      -webkit-box-shadow: inset 0 2px 1px rgba(0, 0, 0, .15);
      -moz-box-shadow: inset 0 2px 1px rgba(0, 0, 0, .15);
      box-shadow: inset 0 2px 1px rgba(0, 0, 0, .15);
      text-align: center;
      &:first-of-type {
        a {
          &:first-of-type {
            display: none;
          }
        }
      }
      &:last-of-type {
        border-right: none;
        a {
          &:last-of-type {
            display: none;
          }
        }
      }

      &:first-of-type {
        &:last-of-type {
          .dependency-visible {
            display: block;
          }
        }
      }
      &.col12 {
        width: 100%
      }

      &.col11 {
        width: 91.66666667%
      }

      &.col10 {
        width: 83.33333333%
      }

      &.col9 {
        width: 75%
      }

      &.col8 {
        width: 66.66666667%
      }

      &.col7 {
        width: 58.33333333%
      }

      &.col6 {
        width: 50%
      }

      &.col5 {
        width: 41.66666667%
      }

      &.col4 {
        width: 33.33333333%
      }

      &.col3 {
        width: 25%
      }

      &.col2 {
        width: 16.66666667%
      }

      &.col1 {
        width: 8.33333333%
      }

      a {
        opacity: .2;
        width: 17px;
        height: 17px;
        -webkit-border-radius: 3px;
        -moz-border-radius: 3px;
        border-radius: 3px;
        background-color: #e14d43;
        color: #fff;
        position: absolute;
        top: 50%;
        left: 2%;
        -webkit-transform: translate(0%, -50%);
        -ms-transform: translate(0%, -50%);
        -o-transform: translate(0%, -50%);
        transform: translate(0%, -50%);
        -webkit-transition: opacity .2s;
        transition: opacity .2s;
        .dashicons {
          font-size: 12px;
          line-height: 17px;
          width: initial;
          height: initial;
        }
        &:last-of-type {
          right: 0;
          left: initial;
        }
        &.dependency-visible {
          display: none;
          left: 50%;
          right: initial;
          -webkit-transform: translate(-50%, -50%);
          -ms-transform: translate(-50%, -50%);
          -o-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
        }
      }
      &:hover,
      &:focus {
        > a {
          opacity: 1;
          -webkit-transition: opacity .2s;
          transition: opacity .2s;
        }
      }
    }
  }
}
