/**
 * Checkout Data Storage Styles
 */

/* Save notice styling */
#joan-checkout-notice {
    position: relative;
    animation: slideInFromTop 0.3s ease-out;
}

#joan-checkout-notice .dashicons {
    color: #0073aa;
}

/* Restore notice styling */
.joan-restore-notice {
    position: relative;
    animation: slideInFromTop 0.3s ease-out;
}

.joan-restore-notice .dashicons {
    color: #155724;
}

/* Animations */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtle loading indicator for when data is being restored */
.joan-checkout-loading {
    position: relative;
}

.joan-checkout-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.joan-checkout-loading::before {
    content: 'Restoring your data...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    background: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #joan-checkout-notice,
    .joan-restore-notice {
        font-size: 12px;
        padding: 8px;
    }
    
    #joan-checkout-notice .dashicons,
    .joan-restore-notice .dashicons {
        font-size: 14px;
    }
}
