/* widget */

$color_1: #777;
$brand_darkblue: #0C3A5B;
$brand_lightgrey: #B9B9BA;
$brand_white: #fff;
$brand_lightblue: #409EBB;
$brand_midgrey: #545764;
$brand_darkgrey: #2E3744;

.widgets-php {
  .eaw-columns-2 {
    overflow: hidden;
    float: left;
    width: 46%;
    margin-right: 3.5%;
  }

  .eaw-columns-3 {
    select.widefat {
      width: 98.5%;
    }

    label {
      font-size: 11px;
    }

    p {
      small {
        color: $color_1;
        font-style: italic;
      }
    }
  }

  .eaw-column-last {
    float: right;
    margin-right: 0;
  }
}

.small-input {
  width: 30%;
}

.eaw-block {
  display: block;
}

.eaw-multiple-check-form {
  margin: 1em 0;

  ul {
    border: 1px solid rgb(238, 238, 238);
    padding: 10px;
    max-height: 110px;
    overflow: auto;
    margin-top: 0;

    li {
      &:last-child {
        margin-bottom: 0;
      }
    }
  }
}

.settings_page_widget-for-eventbrite-api-settings-account #wpfooter {
  display: none;
}
.wfea-settings{
  ul {
    list-style-type: disc;
    list-style-position: inside;
  }
  li {
    margin-left: 20px;
  }
}

.fs-settings-meta-box-wrap {
  input {
    &.invalid {
      border: 2px solid red;
    }

    &.valid {
      border: 2px solid green;
    }
  }
}

.settings_page_widget-for-eventbrite-api-settings {
  .api-key-status {
    background: green;
    padding: 7px 40px;
    color: white;
    border: 2px solid black;
    display: none;
    margin-top: 1em;

    &.error {
      background: red;
      display: block;
    }

    &.connected {
      background: green;
      display: block;
    }
  }
}

#wfea-wizard {
  .fs-notice {
    display: none!important;
  }
  p, li {
    font-size: 16px;
  }

  .api-key-result.active {
    width: 300px;
    background: green;
    padding: 10px;
    color: white;
    border: 2px solid black;

    &.error {
      background: red;
    }
    &.connected {
      background: green;
    }
    &.connecting {
      background: lightgray;
      animation: progress 5s infinite;
    }

  }

  .container {
    .block {
      max-width: 600px;
      margin-left: auto;
      margin-right: auto;
      margin-top: 10%;
      padding: 20px;
      background-color: $brand_white;
      border: 2px $brand_lightgrey solid;
      border-radius: 10px;

      .logo {
        text-align: center;
      }

      h1 {
        font-size: 28px;
      }
      .settings-link {
        float: right;
      }
    }
  }
}

.wfea-block-control__number {
  position: relative;
  max-width: 120px;

  input {
    z-index: 1;
  }
}
.wfea-block-control__venue-contrast-popover {
  button:nth-child(2) {
    background-color: black;
    color: white;
  }
}

.dashicon {
  &.gray {
    color: rgba(75, 85, 99, 1);
  }

  &.red {
    color: rgba(220, 38, 38, 1);
  }

  &.orange {
    color: rgba(217, 119, 6, 1);
  }

  &.green {
    color: rgba(5, 150, 105, 1);
  }

  &.blue {
    color: rgba(37, 99, 235, 1);
  }

  &.indigo {
    color: rgba(79, 70, 229, 1);
  }

  &.purple {
    color: rgba(124, 58, 237, 1);
  }

  &.pink {
    color: rgba(219, 39, 119, 1);
  }

  &.default {

  }

}


@keyframes progress {
  from {background-color: lightgrey;}
  to {background-color: black;}
}
