/**
 * Global Delivery Switch Styles
 */

/* Loading-Indikator beim Preis-Update */
body.bringmal-updating-prices {
    cursor: wait;
}

body.bringmal-updating-prices * {
    pointer-events: none;
}

/* Optionaler Overlay mit Spinner */
body.bringmal-updating-prices::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.bringmal-updating-prices::after {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--wp--preset--color--primary);
    border-radius: 50%;
    animation: bringmal-spin 1s linear infinite;
    z-index: 9999;
}

@keyframes bringmal-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
