/** Loads on WoowGallery Create/Edit Screen
 *
 * Any styles that will be used by the main Gallery editor screen should be added to this file
 */
/** Imports */
@import "vars", "mixins", "helpers", "checkbox-toggle";
@import "tab-content", "skin-select", "skin-config";

ul#woowgallery-tabs-nav {
  flex-basis: auto;
  font-size: 16px;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;

  li {
    a {
      padding-right: 30px;
    }
  }
}

.woowgallery-wrap {
  box-sizing: border-box;

  * {
    box-sizing: inherit;
  }

  .inside {
    padding: 10px 20px;
    margin: 0;

    > .form-group:first-child {
      border-top: none;
    }

    &::after {
      content: "";
      display: table;
      clear: both;
      height: 0;
      overflow: hidden;
    }
  }

  .woowgallery-postbox .inside {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
  }

  h3 {
    margin: 10px 0;
  }

  .settings-actions {
    background-color: #f7f7f7;
    border-top: 1px solid #ddd;
  }

  .wg-add-media-toggle {
    display: inline-block;
    cursor: pointer;
    user-select: none;
    border: 1px solid #ddd;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .07);
    border-radius: 6px;
    padding: 3px 12px 3px 7px;

    input[type="checkbox"] {
      display: none !important;

      &:not(:checked) {
        ~ .wg-checked {
          display: none;
        }

        ~ .wg-unchecked {
          display: inline-block;
        }
      }

      &:checked {
        ~ .wg-checked {
          display: inline-block;
        }

        ~ .wg-unchecked {
          display: none;
        }
      }
    }

    span {
      vertical-align: middle;
      display: inline-block;
      overflow: hidden;

      img {
        vertical-align: middle;
        filter: invert(30%) sepia(89%) saturate(8000%) hue-rotate(190deg);
      }

      &.append-mode img {
        transform: rotate(180deg);
      }
    }
  }
}
