@-moz-keyframes spin {
    100% {
        -moz-transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
    }
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.otys_page_otys_settings.otys_page_otys_settings .notice {
    position: sticky;
    top: 50px;
    z-index: 99;
}

.otys-dashboard {
    margin-block: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    &-w {
        background: #FFF;
        text-align: center;
        padding: 30px;
        border: 1px solid #c3c4c7;
        border-radius: 4px;
        font-size: 20px;

        label {
            margin-block-end: 10px;
            display: block;
        }

        &-text {
            font-weight: bold;
        }
    }
}

form p.submit:after {
    content: '';
    mask-image: url(../../images/admin/loader-solid.svg);
    -webkit-mask-image: url(../../images/admin/loader-solid.svg);
    width: 10px;
    height: 10px;
    background: #2271b1;
    display: block;
    display: inline-block;
    margin-left: 5px;
    opacity: 0;
    transition: .2s ease-in;
}

form.loading p.submit:after {
    opacity: 1;
    -webkit-animation: spin 2s linear infinite;
    -moz-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    width: 15px;
    height: 15px;
}

.otys-correct-api-key:before {
    content: '';
    margin-right: 5px;
    width: 8px;
    height: 8px;
    display: inline-block;
    background: #177f43;
    border-radius: 100%;
}

.otys-error-message {
    padding: 5px 10px;
    border: 1px solid #d63638;
    display: inline-block;
    margin: 10px 0 0 0;
    border-radius: 3px;
    background: #f6f7f7;
}

.otys-settings-tab-inner {
    max-width: 1000px;
}

/* repeater */
.repeating-list {
    margin-block-start: 30px;

    .repeating-item {
        margin-top: 10px;
        margin-bottom: 10px;
        margin-block: 10px;
        display: flex;
        align-items: center;
        background: #FFF;
        padding: 5px 10px;
        border-radius: 3px;
        border: 1px solid #dcdcde;
        justify-content: space-between;
        white-space: nowrap;

        &-col {
            margin-inline: 5px;
            padding-block: 5px;

            &--url {
                padding-inline: 10px;
                border: 1px solid #dcdcdc;
                border-radius: 3px;
                margin-left: -5px;
                display: flex;
                align-items: center;
            }
        }
    }
}

/* instructions */
.otys-instructions {
    background: #FFF;
    border: 1px solid #dcdcde;
    border-collapse: collapse;
    width: 100%;
}

.otys-instructions th:first-child {
    width: 15%;
}

.otys-instructions th[colspan="2"] {
    width: 40%;
}

.otys-instructions th {
    width: 20%;
}

.otys-instructions~.otys-instructions {
    margin-top: 30px;
}

.otys-instructions tr:first-of-type th {
    background-color: #2c3338;
    color: #FFF;
}

.otys-instructions th {
    padding: 10px 10px;
    background: #f6f7f7;
    border-bottom: 1px solid #dcdcde;
    text-align: left;
}

.otys-instructions tr td {
    padding: 10px 10px;
}

.otys-instructions tr:not(:last-of-type) td {
    border-bottom: 1px solid #dcdcde;
}

.otys-instructions tr td code~code {
    margin-top: 4px;
    display: inline-block;
}

#instructions-iframe {
    width: 100%;
    height: 100vh;
}

/*
    Toggle
*/
.otys-sortable {
    background: #FFF;
    margin: 5px 0;
    width: 300px;
    display: flex;
    align-items: center;
    padding: 5px 60px 5px 10px;
    text-align: left;
    position: relative;
    cursor: move;
    cursor: grab;
    cursor: -moz-grab;
    cursor: -webkit-grab;
    transition: .1s ease-in-out;
    border: 1px solid #dcdcde;
    border-radius: 5px;

    input[type="hidden"] {
        display: none;
    }

    input[type="text"] {
        width: 100%;
    }
}

.otys-sortable.sortable-chosen {
    transform: scale(0.95) !important;
    box-shadow: rgb(0 0 0 / 16%) 0px 0px 4px 0px;
}

.otys-sortable svg {
    height: 22px;
    margin-inline-end: 10px;
    flex-shrink: 0;
}

.otys-sortable-list input[type=checkbox] {
    height: 0;
    width: 0;
    visibility: hidden;
}

.otys-sortable input[type=checkbox]:checked::before {
    display: none;
}

.otys-sortable-list.otys-sortable-list label {
    cursor: pointer;
    text-indent: -9999px;
    width: 40px;
    height: 21px;
    background: grey;
    display: block;
    border-radius: 100px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 !important;

    &[disabled] {
        cursor: not-allowed;
        opacity: 0.4;
      
    }
}

.otys-sortable-list label:after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    background: #fff;
    border-radius: 90px;
    transition: 0.3s;
}

.otys-sortable-list input:checked+label {
    background: #3582c4;
}

input:checked+label:after {
    left: calc(100% - 3px);
    transform: translateX(-100%);
}

.otys-sortable-list label:active:after {
    width: 34px;
}

/*
* Settings TABS  
*/
.otys-settings-tabs-container:not(.swiper-initialized) {
    display: none;
}

.otys-settings-tabs-container th:empty {
    display: none !important;
}

.otys-settings-tabs-container th:empty+td {
    padding: 0 !important;
}

.swiper-pagination {
    position: relative;
    top: 0;
    left: 0;
    text-align: left;
}

.swiper-pagination-bullet {
    width: auto;
    height: auto;
    border-radius: 0;
    position: relative;
}

.swiper-pagination-bullet {
    cursor: pointer;
}

.swiper-pagination-bullet[disabled] {
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.swiper-pagination-bullet:not([data-actions="0"]):not([disabled]):after {
    content: attr(data-actions);
    position: absolute;
    top: -7px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #d63638;
    border-radius: 100%;
    text-align: center;
    color: #FFF;
    font-size: 11px;
}

/**
    Settings
**/
.otys-cb-image-preview img {
    height: auto !important;
}

.otys-admin-message {
    text-align: center;
    height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
}