.kaliforms-wrapper {
    .kaliforms-post-editor {
        .public-DraftEditor-content {
            min-height: 100px;
        }
    }
}

.hidden {
    opacity: 0;
    visibility: hidden;
}

#postcustom {
    display: none;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;

    &:focus {
        background-color: #fff;
        border-radius: 3px;
        box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
        clip: auto !important;
        clip-path: none;
        color: #000;
        display: block;
        font-size: 0.875rem;
        font-weight: bold;
        height: auto;
        left: 5px;
        line-height: normal;
        padding: 15px 23px 14px;
        text-decoration: none;
        top: 5px;
        width: auto;
        z-index: 100000;
    }
}

#content[tabindex="-1"]:focus {
    outline: 0;
}

.react-grid-layout {
    $base-input-height: 36px !default;
    $base-input-placeholder-color: #999 !default;
    $base-input-border-size: 1px !default;
    $base-input-border-radius: 0px !default;
    $base-input-color: #000 !default;
    $base-input-background-color: #fff !default;
    $base-input-background-focus-color: #fff !default;
    $base-input-border-color: #ccc !default;
    $base-input-border-focus-color: #000 !default;
    $base-select-box-height: 36px !default;

    // ==========================================================================
    // Base Forms
    // ==========================================================================*,
    *:before,
    *:after {
        -webkit-box-sizing: border-box;
        -moz-box-sizing: border-box;
        box-sizing: border-box;
    }

    // Inputs
    [type="text"],
    [type="email"],
    [type="password"],
    [type="tel"],
    [type="number"],
    [type="date"],
    [type="search"] {
        background-color: $base-input-background-color;
        -webkit-appearance: none;
        -moz-appearance: textfield;

        &:focus {
            background-color: $base-input-background-focus-color;
            border-color: $base-input-border-focus-color;
            outline: 0;
        }
    }

    textarea {
        background-color: $base-input-background-color;
        overflow: auto;

        &:focus {
            background-color: $base-input-background-focus-color;
            border-color: $base-input-border-focus-color;
            outline: 0;
        }
    }

    // Select
    select {
        text-transform: none;
        background-color: $base-input-background-color;

        &:focus {
            background-color: $base-input-background-focus-color;
            border-color: $base-input-border-focus-color;
            outline: 0;
        }
    }

    .disabled,
    [disabled] {
        opacity: .4;
        user-select: none;
        pointer-events: none;
        cursor: not-allowed;
    }

    // Placeholders
    ::-webkit-input-placeholder {
        color: $base-input-placeholder-color;
    }

    :-moz-placeholder {
        color: $base-input-placeholder-color;
    }

    ::-moz-placeholder {
        color: $base-input-placeholder-color;
    }

    :-ms-input-placeholder {
        color: $base-input-placeholder-color;
    }
}

body {
    margin: 0;
}

.wp-header-end,
#screen-meta,
#slugdiv {
    display: none;
}

.react-resizable-handle {
    opacity: 0;
}

.react-grid-item.react-grid-placeholder {
    background: #f3f3f3 !important;
    opacity: .7 !important;

    &:before {
        content: '';
        position: absolute;
        top: 8px;
        bottom: 8px;
        left: 8px;
        right: 8px;
        background: #fff;
        display: inline-block;
    }
}

#kali-responsive-grid-layout {
    &.removePointerEvents {
        .react-grid-item {
            pointer-events: none;
        }
    }
}

.react-grid-item {
    &.active {
        background: #fff !important;
        border-style: solid;
    }

    >.react-resizable-handle {
        bottom: 30px !important;
        right: 4px !important;
        cursor: e-resize !important;
        height: 28px !important;

        &::after {
            top: 0 !important;
            left: 0 !important;
            bottom: 0 !important;
            right: 0 !important;
            font-size: 22px !important;
            border: none !important;
            display: 'block' !important;
            content: '\e981' !important;
            font-family: 'icomoon' !important;
        }
    }
}

.postbox {
    padding: 0;
    margin-bottom: 0;
    visibility: hidden;
    opacity: 0;
    height: 0;
}

#poststuff {
    padding: 0;
}

#poststuff .inside {
    margin: 0;
    padding: 0;
}

#adminmenumain {
    display: none;
}

#wpcontent,
#wpfooter {
    margin-left: initial;
    padding: 0
}

#kaliforms_forms_builder {
    border: none;
    box-shadow: none;
    height: initial;
    visibility: initial;
    opacity: initial;

    >h2 {
        display: none;
    }

    .handlediv {
        display: none;
    }
}

.postbox-header,
#submitdiv,
#titlediv,
.page-title-action {
    border: none;
    box-shadow: none;
    visibility: hidden;
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    display: none;
}

#wpadminbar {
    display: none;
}

html.wp-toolbar {
    padding-top: 0;
}

#show-settings-link,
.wrap h1.wp-heading-inline {
    display: none;
}

.wrap {
    margin: 0;
}

#post-body-content,
.edit-form-section {
    margin-bottom: 0
}

#contextual-help-link-wrap,
#screen-options-link-wrap {
    display: none;
}

#notice,
#message {
    position: absolute;
    top: 50px;
    right: 15px;
    z-index: 100;
    left: 15px;
}

#wpfooter {
    display: none;
}

#wpbody-content {
    padding-bottom: 0;
}

#wpwrap {
    height: 100vh;
    min-height: 100vh;
}

.notice {
    display: none;
}

.kaliforms-preloader {
    flex-grow: 1;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: '#f1f1f1';
    display: flex;
    z-index: 10000;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    text-align: center;
    font-family: 'Roboto';

    .kaliforms-preloader-badge {
        font-size: 1.5rem;
        text-transform: uppercase;
        letter-spacing: 4px;
        font-weight: bold;
        position: relative;
        margin: 0 auto;

        &::after {
            position: absolute;
            bottom: -5px;
            left: -5px;
            right: -5px;
            height: 3px;
            content: '';
            background-color: #000;
        }
    }

    .skeleton-button {
        width: 24px;
        height: 24px;
        border-radius: 50%;
        background: #fff;
    }

    .kaliforms-skeleton-app-bar {
        display: flex;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: #3B88F7;

        >img {
            width: 42px;
            height: 42px;
            margin-top: 11px;
            margin-left: 24px;
        }

        >.skeleton-button {
            margin-top: 19px;
            position: absolute;
            right: 80px;

            &:first-of-type {
                right: 125px;
            }

            &:last-of-type {
                right: 35px;
            }
        }
    }

    .kaliforms-skeleton-main {
        display: flex;
        position: fixed;
        width: 100%;
        top: 65px;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .kaliforms-skeleton-sidebar {
        flex-grow: 0;
        max-width: 33%;
        flex-basis: 33%;
        background: #fafafa;
        margin-right: 30px;
        display: flex;
        flex-direction: column;
        align-content: center;

        .row {
            display: flex;
            flex-direction: row;
            padding: 0 30px;
            margin-bottom: 5px;

            &:first-of-type {
                margin-top: 95px;
            }

            .skeleton-box {
                margin-right: 10px;
                height: 53px;
                border-radius: 4px;
                margin-bottom: 5px;

                &:last-of-type {
                    margin-right: 0;
                }
            }
        }
    }

    .kaliforms-skeleton-container {
        flex-grow: 0;
        max-width: 67%;
        flex-basis: 67%;
    }
}

.skeleton-box {
    display: inline-block;
    height: 2em;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    background-color: #DDDBDD;

    &::after {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        transform: translateX(-100%);
        background-image: linear-gradient(90deg,
                rgba(#fff, 0) 0,
                rgba(#fff, 0.2) 20%,
                rgba(#fff, 0.5) 60%,
                rgba(#fff, 0));
        animation: shimmer 5s infinite;
        content: '';
    }

    @keyframes shimmer {
        100% {
            transform: translateX(100%);
        }
    }
}

.addableListHandler {
    z-index: 9999;
}

.addableListHandlerImage,
.addableListHandlerProduct {
    z-index: 9999;
    max-width: 227px !important;
}

.addableListHandlerImage {
    max-width: 472px !important;
}

@import './../js/frontend/form-styles/buttons.scss';

