#WINP_ViewOptionsMetaBox {
  display: block;

  .winp-template {
    display: none;
  }
}

.winp-advanded-options {
  input {
    float: none;
    position: relative;
    top: 0;
    padding: 4px;
  }

  .winp-head {
    overflow: auto;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    border-left: 1px solid #ddd;
    padding: 10px 15px;

    .winp-left {
      float: left;
    }

    .winp-right {
      float: right;
    }

    .winp-left > *,
    .winp-right > * {
      display: inline-block;
      vertical-align: middle;
    }

    .winp-left > span,
    .winp-right > span {
      margin: 0 5px;
    }
  }

  .winp-editor-wrap .winp-filters {
    padding-left: 20px;
    border-left: 1px solid #ddd;
  }

  .winp-filters {

    .winp-point {
      background-color: #fff;
      border: 1px solid #0073aa;
      border-radius: 100%;
      width: 11px;
      height: 11px;
      display: block;
      position: absolute;
      margin-left: -26px;
      margin-top: 19px;
    }

    .winp-point:after {
      position: absolute;
      content: " ";
      display: block;
      width: 15px;
      border-top: 1px solid #ddd;
      margin-left: 10px;
      margin-top: 4px;
    }
  }

  .winp-filter + .winp-filter {
    margin-top: 20px;
  }

  .winp-box {
    padding: 25px 15px 15px 15px;
    border-left: 1px solid #ddd;
    background-color: #f9f9f9;
  }

  .winp-when-empty {
    display: none;
  }

  .winp-empty .winp-when-empty {
    display: block;
  }

  .winp-empty .winp-conditions {
    display: none;
  }

  .winp-integer {
    width: 60px;
  }

  .winp-text {
    width: 300px;
  }
}

/* Conditions */
.winp-condition {
  position: relative;

  .btn-group .btn {
    height: 28px;
  }

  .winp-hint,
  .winp-hint-content {
    display: none;
  }

  .winp-hint {
    position: relative;
    display: inline-block;
    padding: 0 6px 0 3px;
  }

  .winp-hint-icon {
    background: url('../img/help.png') no-repeat 0 0 transparent;
    position: relative;
    height: 14px;
    width: 13px;
    display: inline-block;
    cursor: help;
    vertical-align: middle;
    top: -1px;
    opacity: 0.55;
  }

  .winp-hint:hover .winp-hint-content {
    display: block;
    position: absolute;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.8);
    white-space: normal;
    padding: 10px 12px 12px 12px;
    font-weight: normal;
    line-height: 150%;
    border-radius: 4px;
    color: #fff;
    font-size: 13px;
    z-index: 999;
  }

  .winp-hint .winp-hint-content,
  .winp-hint .winp-hint-content a {
    color: #fff;
  }

  .winp-or {
    display: none;
    color: rgba(0, 0, 0, 0.4);
    font-weight: bold;
    padding: 1px 0 3px 0;
    font-size: 80%;
    text-transform: uppercase;
  }

  + .winp-condition .winp-or {
    display: block;
  }

  .winp-controls {
    position: absolute;
    right: 0;
  }

  .btn-group {
    border: 0;
  }
}

.winp-condition > span {
  display: inline-block;
  vertical-align: top;
}

/* date control */
.winp-date-control {
  display: inline-block;
  position: relative;

  input[type='text'],
  select {
    vertical-align: top;
  }

  .winp-label {
    display: inline-block;
    vertical-align: top;
    position: relative;
    top: 4px;
    padding: 0 4px;
  }

  .winp-switcher {
    padding: 4px 0;
  }

  .winp-switcher * {
    display: inline-block;
    vertical-align: bottom;
  }

  .winp-switcher label {
    margin: 0 5px 0 0;
    font-weight: normal;
  }

  .winp-absolute-date {
    input[type="text"] {
      -moz-box-sizing: border-box;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      background-color: #fff;
      padding-right: 20px;
      width: 140px;
    }

    .fa-calendar {
      position: absolute;
      right: 7px;
      top: 8px;
      border-left: 1px solid rgba(0, 0, 0, 0.2);
      padding-left: 6px;
    }
  }

  .winp-relative-date input[type="text"] {
     width: 40px;
     text-align: center;
  }
}

.winp-date-control.winp-between .winp-solo-date {
  display: none;
}

.winp-date-control.winp-solo .winp-between-date {
  display: none;
}

.winp-date-control.winp-relative .winp-absolute-date {
  display: none;
}

.winp-date-control.winp-absolute .winp-relative-date {
  display: none;
}

.winp-scope {
  .winp-and {
    display: none;
    color: rgba(0, 0, 0, 0.7);
    font-weight: bold;
    border-top: 1px solid #ddd;
    margin: 18px 0;
    position: relative;
  }

  .winp-and span {
    position: absolute;
    top: -10px;
    background-color: #f9f9f9;
    padding-right: 7px;
    text-transform: uppercase;
  }

  + .winp-scope .winp-and {
    display: block;
  }
}