.wpast-clearfix:after {
    clear: both;
    display: block;
    content: '';
}

.wpast-settings.wrap {
    a {
        &:focus {
            box-shadow: none;
        }
    }
}

.uk-tab {
    &:before {
        border-bottom: none !important;
    }

    &>.uk-active>a {
        border-color: $primary !important;
        color: $primary !important;
    }
}

.uk-tab>*>a {
    border-bottom-color: #A4A4A4;
}

.uk-margin {
    margin-bottom: 30px;
}

.uk-modal {
    z-index: 100000;
}

.uk-modal-title {
    font-size: 20px;
}

.uk-notification-message {
    border: 1px solid transparent;
}

.uk-notification-message-success {
    background: #DDF9EE;
    border-color: rgba(50, 210, 150, 0.7);
}

.uk-notification-message-danger {
    background: #FBEDEF;
    border-color: rgba(240, 80, 110, 0.7);
}

.uk-form-label {
    font-weight: bold;
    margin-bottom: 5px;
    display: inline-block;
}

.uk-input,
.uk-select,
.uk-textarea {
    border-color: #E5E5E5 !important;
    border-radius: 0 !important;

    &:focus {
        box-shadow: none !important;
        border-color: #3498DB !important;
    }
}

.uk-form-custom select {
    max-width: unset;
}

.uk-checkbox {
    background-repeat: no-repeat !important;
    background-position-y: 2px !important;
    border-color: #E5E5E5 !important;
    border-radius: 0 !important;

    &:focus {
        box-shadow: none !important;
    }

    &:checked:before {
        content: "" !important;
    }
}

.uk-radio {
    &:checked {
        background-position: -1px -1px;
    }

    &:checked:before {
        content: "" !important;
        background-color: transparent !important;
    }

    &:focus {
        box-shadow: none !important;
    }
}

.uk-button {
    border-radius: 3px;
    transition: 200ms;
}

.wpast-settings {
    .uk-button-primary {
        background-color: $primary;

        &:active,
        &:hover,
        &:focus {
            background-color: darken($primary, 5%);
            transform: translateY(-2px);
            box-shadow: 0 7px 14px rgba(50, 50, 93, 0.25), 0 3px 6px rgba(0, 0, 0, 0.2);
        }
    }
}

.uk-button-primary:disabled {
    background-color: $primary;
    color: #FFF;
    border-color: transparent;
    opacity: 0.65;
}

.uk-button-secondary {
    color: #fff !important;
}

.uk-form-custom {
    width: 100%;

    .uk-button-default {
        width: 100%;
        text-align: left;
        padding-left: 10px;
        padding-right: 10px;

        .uk-icon {
            float: right;
            position: relative;
            top: 9px;
        }
    }
}

input[type=number].uk-input {
    height: 40px;
}

.wpast-confirm-activation {
    background: $red;
    color: #FFF;
    position: relative;
    border-radius: 2px;
    padding: 15px 10px;
    margin-top: 10px;
    display: none;

    &:before {
        position: absolute;
        content: '';
        left: 15px;
        top: -6px;
        width: 0;
        height: 0;
        border-bottom: 6px solid $red;
        border-right: 6px solid transparent;
        border-left: 6px solid transparent;
    }

    .uk-icon {
        position: relative;
        bottom: 2px;
    }
}

.wpast-upload-file-wrapper {
    border: 2px dashed #E5E5E5;
    padding: 10px;
    text-align: center;
    border-radius: 3px;

    img {
        max-width: 200px;
        height: auto;
        margin-bottom: 10px;
    }

    .uk-button-primary {
        background-color: #1e87f0 !important;
    }

    .uk-button-default {
        background-color: #efefef;
    }
}

#adminmenu {
    #toplevel_page_wpast-support-ticket {
        .wp-menu-image {
            img {
                max-width: 20px;
                position: relative;
                bottom: 2px;
            }
        }
    }
}

#wpast-ticket-info,
#wpast-order-support-info {
    .inside {
        .section-title {
            color: #888888;
            background-color: #f3f3f3;
            padding: 10px 12px;
            margin: 0 -12px;
        }

        label {
            margin-bottom: 4px;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            span {
                color: #888;
            }
        }

        input {
            width: 100%;
            display: block;
        }

        .description {
            color: #7b7b7b;
            font-size: 90%;
        }

        .select2-container {
            display: block;
            width: 100% !important;
        }
    }
}

.wpast-update-notice {
    background: #f39c12;
    border: 1px solid #d98d14;
    color: #ffffff !important;
    border-radius: 3px;
    padding: 10px;
    font-size: 12px !important;
    margin-top: 5px;
}

.wpast-custom-alert {
    padding: 20px;
    position: relative;
    overflow: hidden;

    button {
        font-size: 85%;
        line-height: 30px;
        padding: 0 10px;
    }

    .wpast-custom-alert-icon {
        position: absolute;
        right: 10px;
        bottom: -60px;
        opacity: 0.15;
    }

    &.wpast-custom-alert-success {
        background-color: #edfbf5;
        color: #05c58a;

        h4 {
            color: #05c58a;
        }
    }

    &.wpast-custom-alert-danger {
        background-color: #FC427B;
        color: #fff;

        h4 {
            color: #fff;
        }

        .uk-button {
            color: #fff;
        }
    }
}

.wpast-modal-dialog {
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 100000;
    display: none;
    &.show {
        display: block;
    }
    .wpast-modal-backdrop {
        background: #000;
        opacity: 0.5;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
    }
    .wpast-modal {
        background-color: #fff;
        overflow: hidden;
        position: absolute;
        width: 640px;
        @media (max-width: 768px) {
            width: 100%;
        }
        max-height: calc(100vh - 8px);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        border-radius: 4px;
        .wpast-modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: #fcfcfc;
            border-bottom: 1px solid #ddd;
            .wpast-modal-title {
                display: flex;
                align-items: center;
                justify-content: space-between;
                margin: 0;
                font-size: 16px;
                font-weight: bold;
            }
            .wpast-modal-close {
                background: transparent;
                border: none;
                cursor: pointer;
                width: 32px;
                height: 32px;
                &:hover .dashicons {
                    color: #767676;
                }
                .dashicons {
                    color: #666;
                }
            }
        }
        .wpast-modal-content {
            padding: 15px;
            overflow-y: auto;
            max-height: calc(100vh - 53px);
        }
    }
}