/**
 * PEWC Race Condition Fix - Styles
 * Simple visual feedback for race condition prevention
 */

/* Loading Overlay */
.pewc-race-fix-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

/* Spinner */
.pewc-race-fix-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: pewc-spin 0.8s linear infinite;
}

@keyframes pewc-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Loading Text */
.pewc-race-fix-text {
    margin-top: 8px;
    font-size: 12px;
    color: #555;
    font-weight: 500;
}

/* Locked Component State */
.pewc-locked {
    position: relative;
    opacity: 0.8;
    pointer-events: none !important;
}

.pewc-locked * {
    pointer-events: none !important;
}

/* Notification */
.pewc-race-fix-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2271b1;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    display: none;
    font-size: 14px;
    max-width: 300px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pewc-race-fix-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}