/* Loading Modal Styles */
.myshop-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.myshop-loading-modal.show {
    display: flex;
}

.myshop-loading-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    width: 90%;
}

.myshop-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #000000;
    border-radius: 50%;
    animation: myshop-spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.myshop-loading-text {
    font-size: 16px;
    color: #333;
    margin: 0;
    font-weight: 500;
}

/* Alternative loading animation - dots */
.myshop-loading-dots {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.myshop-loading-dots div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #000000;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.myshop-loading-dots div:nth-child(1) {
    left: 8px;
    animation: myshop-dots1 0.6s infinite;
}

.myshop-loading-dots div:nth-child(2) {
    left: 8px;
    animation: myshop-dots2 0.6s infinite;
}

.myshop-loading-dots div:nth-child(3) {
    left: 32px;
    animation: myshop-dots2 0.6s infinite;
}

.myshop-loading-dots div:nth-child(4) {
    left: 56px;
    animation: myshop-dots3 0.6s infinite;
}

@keyframes myshop-dots1 {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

@keyframes myshop-dots3 {
    0% { transform: scale(1); }
    100% { transform: scale(0); }
}

@keyframes myshop-dots2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(24px, 0); }
}

/* Responsive design */
@media (max-width: 480px) {
    .myshop-loading-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .myshop-loading-text {
        font-size: 14px;
    }
}