/** Skins */
#woowgallery-skin-select {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 0;
  z-index: 1;
  border-bottom: 1px solid #dfdfdf;

  &.closed {
    height: 0;
  }

  .woowgallery-skins {
    margin: 12px;
    overflow: hidden;
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 3px;

    .woowgallery-skin {
      position: relative;
      margin-right: 10px;

      .woowgallery-pro-feature {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        height: auto;
        padding-top: 100px;
      }
    }

    label {
      position: relative;
      display: block;
      height: 200px;
      padding: 12px;
      box-sizing: content-box;

      @at-root #woowgallery-iframe-content#{&} {
        height: 120px;
      }

      img {
        display: block;
        height: 100%;
        width: auto;
        box-shadow: 0 0 0 3px #ffffff, 0 0 0 5px #e5e5e5;
      }

      input[type="radio"] {
        position: absolute;
        right: 0;
        top: 0;
        margin: 0;
        width: auto;
        height: auto;
        min-width: auto;
        border-width: 4px;
        visibility: hidden;

        &:checked {
          visibility: visible;
          border-color: #5b9dd9;

          + img {
            box-shadow: 0 0 0 3px #ffffff, 0 0 0 7px #5b9dd9;
          }
        }
      }
    }

    .skin-info {
      position: absolute;
      left: 12px;
      right: 12px;
      bottom: 12px;
      display: block;
      padding: 10px 10px 5px;
      text-align: right;
      background: rgba(255, 0, 0, 0.7);
      background: linear-gradient(transparent, rgba(0, 0, 0, 0.5));
      color: #fff;

      .skin-title {
        float: left;
      }
    }
  }
}

/** Top Buttons */
.woowgallery-top-buttons {
  display: flex;
  width: 100%;
  margin-top: -1px;
  position: relative;
  flex-wrap: wrap;

  .wg-media-buttons {
    flex: 1 1 auto;
    float: none;
    margin: 0 0 0 -2px;
    padding: 5px 0;
    background-color: #f1f1f1;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-left-color: #f1f1f1;
    box-shadow: inset -1px 0px 1px rgba(0, 0, 0, 0.04);
    font-size: 1.3em;
    text-align: left;
  }

  .woowgallery-skin-preset-selector {
    flex: 1 1 auto;
    float: none;
    margin: 0 0 0 -2px;
    background-color: #f1f1f1;
    border: 1px solid #e5e5e5;
    border-left-color: #f1f1f1;
    box-shadow: inset 0 5px 3px -2px rgba(0, 0, 0, 0.04), inset 0 -5px 2px -3px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0 0 0;
    align-items: center;

    h2 {
      flex: 1 1 auto;
      padding: 0;
      line-height: 1.2;
      margin: 5px 10px 5px 0;
    }

    .woowgallery-skin-preset {
      padding: 0;
      margin: 5px 5px 5px auto;
      display: flex;
      align-items: center;
      flex-wrap: wrap;

      > * {
        margin: 0 5px 0 0;
      }

      .label {
        vertical-align: middle;
      }

      .form-control {
        width: auto;
        height: 26px;
        min-height: 26px;
        margin: 0;
        font-size: 14px;
        vertical-align: middle;
        padding-top: 1px;
        padding-bottom: 0;
        line-height: 1;
      }
    }
  }

  .woowgallery-choose-skin {
    position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0 12px;
    z-index: 2;

    &.activity {
      background: url('../images/loader-wave.gif') center center no-repeat;

      button {
        opacity: 0;
      }
    }

    button.handleskinsdiv {
      width: auto;
      display: flex;
      align-items: center;
      margin: 5px 0;
      padding-bottom: 0;
      color: #23282d;

      &:hover,
      &:focus {
        color: #23282d;
      }

      &:focus {
        box-shadow: none;
        outline: none;
      }
    }

    &:not(.closed) button.handleskinsdiv {
      color: #0085ba;
    }
  }

  .woowgallery-action-buttons {
    text-align: center;
    padding: 10px 7px 2px 7px;
    margin-left: auto;
    flex-wrap: wrap;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #fff;
    position: relative;
    z-index: 2;

    button {
      margin: 3px;
    }

    &.activity {
      background: url('../images/loader-wave.gif') center center repeat-x;

      button {
        opacity: 0;
      }
    }

    .reset-changes-action {
      display: none;
    }
  }
}

.wg-media-buttons {
  text-align: center;

  .button {
    &,
    &:active {
      display: inline-flex;
      align-items: center;
      top: 0;
      margin: 5px 10px 5px 0;
      font-size: 1em;
      line-height: 1.3em;
      height: auto;
      padding: 0.3em 1em 0.3em 0.7em;
    }

    span {
      margin: 0 0 0 7px;

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