/* Loader */
.sun-cart-back-loader{
    width: 100%;
    position: absolute;
    background: rgb(227 227 227 / 65%);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    z-index: 999;
}

.sun-cart-loader{
    width: 75px;
    height: 75px;
    border: 3px solid transparent;
    border-top-color: var(--wp-admin-theme-color, var(--sunDark));
    border-radius: 50%;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
}

.sun-cart-loader::before {
    content: "";
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 3px solid transparent;
    border-top-color: var(--sunWhite);
    border-radius: 50%;
    -webkit-animation: spin 6s linear infinite;
    animation: spin 6s linear infinite;
    opacity: 1;
}

.sun-cart-loader::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px solid transparent;
    border-top-color: var(--sunDark);
    border-radius: 50%;
    -webkit-animation: spin 5s linear infinite;
    animation: spin 5s linear infinite;
    opacity: 1;
}

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

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

/* Edit btn */
.sun-variation-edit {
    width: fit-content;
    display: flex;
    display: -webkit-flex;
    justify-content: flex-start;
    -webkit-justify-content: flex-start;
    align-items: center;
    -webkit-align-items: center;
    margin-top: 20px;
    cursor: pointer;
    font-weight: 600;
}

.sun-variation-edit > span {
    font-size: 20px;
    margin-right: 6px;
}

.sun-variation-edit >label{
    font-size: 13px;
    cursor: pointer;
    margin: 0;
}

.sun-variation-edit >label:hover{
    text-decoration: underline;
}

/* Form edit variation */
.sun-editor{
    width: 100%;
    height: 100%;
    margin: 0;
    position: relative;
    box-shadow: 0 0 4px 3px var(--sunLightShadow);
}

.sun-title{
    border-bottom: 1px solid var(--sunLightGrey2);
}

.sun-editor tbody tr{
    border-top: 0 !important;
}

.sun-thumbnail{
    width: 30%;
}

.sun-thumbnail-ori, .sun-thumbnail-new{
    width: 100%;
    height: 100%;
    display: flex;
    display: -webkit-flex;
    justify-content: center;
    -webkit-justify-content: center;
    align-items: center;
    -webkit-align-items: center;
}

.sun-thumbnail-ori > img, .sun-thumbnail-new > img{
    width: 80% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
}

.sun-info{
    padding-left: 20px;
}

.sun-item-qty{
    margin-bottom: 20px;
}

.sun-item-actions{
    display: flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: space-between;
    -webkit-justify-content: space-between;
}

.sun-item-actions > button{
    width: 20%;
    margin-right: 20px;
    border-radius: var(--sunBorderRadius);
}

.sun-info > .variations{
    padding-left: 20px;
    text-decoration: none !important;
}

.sun-variation-info > .woocommerce-variation-description,
.sun-variation-info > .woocommerce-variation-price,
.sun-variation-info > .woocommerce-variation-availability {
    margin-bottom: 20px;
}

.sun-variations-form-edit td{
    padding-left: 0 !important;
}

.sun-reset-variations >a{
    margin: 0 !important;
}