:root {
    --font-stack-mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
    --font-stack-ui: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
}



fieldset {
    border: 2px solid var(--accent-color);
    margin: 0 0 24px 0;
}
legend {
    background-color: var(--accent-color);
    color: #ffffff;
    padding: 4px 16px;
    line-height: 2;
}

code {
    font-family: var(--font-stack-mono);
}


.ui--heading {
    font-weight: 700;
    line-height: 1.5;
    font-size: 26px;
    letter-spacing: -0.011em;
}
.ui--paragraph {
    letter-spacing: -0.011em;
    font-weight: 400;
}
.ui--paragraph--light {
    letter-spacing: -0.011em;
    font-weight: 300;
}


/**
 * Checkbox Toggle UI
 */
input[type="checkbox"].wppd-ui-toggle {
    font-family: var(--font-stack-mono);

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    -webkit-tap-highlight-color: transparent;

    width: auto;
    height: auto;
    vertical-align: middle;
    position: relative;
    border: 0;
    outline: 0;
    cursor: pointer;
    line-height: 0;
    background: none;
    box-shadow: none;
}
input[type="checkbox"].wppd-ui-toggle:focus {
    box-shadow: none;
}
input[type="checkbox"].wppd-ui-toggle:after {
    content: '';
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 28px;
    text-indent: -24px;
    color: #3a4466;
    width: 64px;
    height: 28px;
    display: inline-block;
    background-color: #3a4466;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--accent-color--active) inset, 0 4px 0 #1d162c;
    border: 2px inset #1d162c;
}


/*
input[type="checkbox"].wppd-ui-toggle:hover {
    transform: translateY(2px);
    box-shadow: 0 0 0 1px var(--accent-color--active) inset, 0 2px 0 #1d162c;
}
input[type="checkbox"].wppd-ui-toggle:hover:after {
    box-shadow: 0 0 0 1px var(--accent-color--active) inset, 0 2px 0 #1d162c;
}
/**/
input[type="checkbox"].wppd-ui-toggle:before {
    content: '⦀';
    z-index: 1;
    width: 24px;
    height: 24px;
    line-height: 22px;
    color: rgba(255, 255, 255,  0.15);
    text-align: center;
    vertical-align: middle;
    display: block;
    position: absolute;
    top: 4px;
    left: 4px;
    margin: 0;
    border-radius: 2px;
    background-color: #1d162c;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15) inset;
}
input[type="checkbox"].wppd-ui-toggle:checked:before {
    left: 40px;
    margin: 0;
    background-color: var(--accent-color--active);
}
input[type="checkbox"].wppd-ui-toggle,
input[type="checkbox"].wppd-ui-toggle:before,
input[type="checkbox"].wppd-ui-toggle:after,
input[type="checkbox"].wppd-ui-toggle:checked:before,
input[type="checkbox"].wppd-ui-toggle:checked:after {
    transition: all cubic-bezier(0.34, 1.56, 0.64, 1) .15s, color cubic-bezier(0.83, 0, 0.17, 1) .6s;
}
input[type="checkbox"].wppd-ui-toggle:checked:after {
    content: 'ON';
    background-color: var(--accent-color);
    color: #1d162c;

    animation: shake 0.2s cubic-bezier(.36,.07,.19,.97) both;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    perspective: 1000px;
}



@keyframes shake {
  10%, 90% {
    transform: translate3d(-1px, 0, 0);
  }
  
  20%, 80% {
    transform: translate3d(2px, 0, 0);
  }

  30%, 50%, 70% {
    transform: translate3d(-4px, 0, 0);
  }

  40%, 60% {
    transform: translate3d(4px, 0, 0);
  }
}



.editor--cell.editor--cell-factory h3 {
    font-family: var(--font-stack-mono);
    margin: 16px 4px 0 4px;
}


.ui-factory--settings .ui-label {
    font-family: var(--font-stack-mono);
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
}
.ui-factory--control {
    padding: 8px 0;
    display: flex;
    align-items: center;
}
.ui-factory--control.ui--wrap {
    flex-wrap: nowrap;
    gap: 8px;
}
.ui-factory--control.ui--wrap button {
    flex: 1 1 0;
    flex-basis: 0;
    margin: 4px 0;
}
.ui-factory--settings hr {
    border: 0 none;
    height: 1px;
    background-color: #3a4466;
}
fieldset input[type="text"],
fieldset input[type="email"],
fieldset input[type="password"],
.ui-factory--control input[type="text"],
.ui-factory--control select {
    font-family: var(--font-stack-mono);
    font-size: 14px;
    padding: 12px;
    background-color: #3a4466;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--accent-color--active) inset, 0 4px 0 #1d162c;
    border: 2px inset #1d162c;
    margin: 0 4px;
}
.ui-factory--control select {
    width: 100%;
}
fieldset button,
fieldset input[type="submit"],
.ui-factory--control button {
    font-family: var(--font-stack-mono);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    background-color: var(--accent-color);
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--accent-color--active) inset, 0 4px 0 #1d162c;
    border: 2px inset #1d162c;
    margin: 4px;
    flex-basis: 100%;
}

input[type="color"] {
    -webkit-appearance: none;
    width: 32px;
    height: 32px;
    background-color: #3a4466;
    border-radius: 2px;
    box-shadow: 0 0 0 1px var(--accent-color--active) inset, 0 4px 0 #1d162c;
    border: 2px inset #1d162c;
    margin: 0 4px;
}
input[type="color"]::-webkit-color-swatch-wrapper {
	padding: 0;
}
input[type="color"]::-webkit-color-swatch {
	border: none;
}





.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.tabs .ui-tab--label {
    order: 1;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #1d162c;

    font-family: var(--font-stack-mono);
    font-weight: 400;
    font-size: 16px;
    text-transform: uppercase;
    padding: 18px 18px;
    border-radius: 2px;
    /*
    box-shadow: 0 0 0 1px var(--accent-color--active) inset, 0 4px 0 #1d162c;
    /**/
    border: 0 none;
    margin: 0;

}
.tabs .ui-tab--label svg {
    margin: 0 8px 0 0;
}
.tabs .ui-tab--label.has-icon-only svg {
    margin: 0 0 0 0;
}


.tabs .tab {
  order: 99;
  flex-grow: 1;
  width: 100%;
  display: none;
  padding: 1rem;
}

.tabs input[type=radio] {
  display: none;
}

.tabs input[type=radio]:checked + .ui-tab--label {
  background: var(--accent-color--active);
}

.tabs input[type=radio]:checked + .ui-tab--label + .tab {
  display: block;
}



fieldset button.has-switch-background,
fieldset input[type="submit"].has-switch-background,
.ui-factory--control button.has-switch-background {
    background-color: var(--switch-color);
    box-shadow: 0 0 0 1px var(--switch-color--active) inset, 0 4px 0 #1d162c;
}

.is-switch {
    color: var(--switch-color);
}



details summary {
    font-family: var(--font-stack-mono);
    margin: 16px 4px;

    color: #c8d6e5;
    font-size: 16px;
    font-weight: 400;
    text-transform: uppercase;
}





/* loader */

.loader {
    display: flex;
    position: relative;
    margin: 0 auto;
    width: 80px;
    height: 80px;
    opacity: 0;
}


.loader.show {
    opacity: 1;
}

.loader div {
    position: absolute;
    left: 8px;
    width: 16px;
    background: var(--accent-color--active);
    animation: loader 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.loader div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

.loader div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

.loader div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes loader {
    0% {
        top: 8px;
        height: 64px;
    }

    50%,
    100% {
        top: 24px;
        height: 32px;
    }
}









