:root {
    --mo-white: #ffffff;
    --mo-black: #2d3748;
    --mo-charcoal-gray: #4a5568;
    --mo-slate-gray: #718096;
    --mo-neutral-gray: #a0aec0;
    --mo-light-neutral-gray: #f7fafc;
    --mo-pale-gray: #e2e8f0;
    --mo-blue-primary: #667eea;
    --mo-blue-hover: #5a67d8;
    --mo-blue-disable: rgba(102, 126, 234, 0.50);
    --mo-red: #e53e3e;
    --mo-pastel-red: #fed7d7;
    --mo-green: #38a169;
    --mo-pastel-green: #c6f6d5;
    --mo-font-primary: 'Sora', sans-serif;
    --mo-font-secondary: 'SF Pro', sans-serif;
    --mo-font-size-sm: 0.8125rem;
    --mo-font-size-md: 0.875rem;
    --mo-font-size-lg: 1rem;
    --mo-font-size-xl: 1.125rem;
}

.mo-wcps-delete-button {
    background: #ffffff !important;
    color: #4a5568 !important;
    border: 1px solid #cbd5e0 !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
    cursor: pointer !important;
    transition: all 0.15s ease-in-out !important;
    text-decoration: none !important;
    text-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    vertical-align: top !important;
    min-height: 30px !important;
    box-shadow: 0 1px 0 #e2e8f0 !important;
    margin-left: 8px !important;
}

.mo-wcps-delete-button:hover {
    background: #f7fafc !important;
    border-color: #a0aec0 !important;
    color: #2d3748 !important;
    box-shadow: 0 1px 0 #cbd5e0 !important;
}

.mo-wcps-delete-button:active,
.mo-wcps-delete-button:focus {
    background: #edf2f7 !important;
    border-color: #718096 !important;
    color: #1a202c !important;
    box-shadow: inset 0 2px 5px -3px rgba(0, 0, 0, 0.1) !important;
    outline: none !important;
}

.mo-wcps-delete-button .dashicons {
    margin-right: 4px !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

/* Modal Overlay */
#mowcps-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999999;
    display: none;
    backdrop-filter: blur(1px);
    animation: fadeIn 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
    }
    to { 
        opacity: 1;
    }
}

/* Modal Container */
#mowcps-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    max-width: 480px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    animation: slideIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.96) translateY(8px);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

/* Modal Header */
#mowcps-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(to bottom, #ffffff, #fafbfc);
}

#mowcps-modal-title {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

#mowcps-modal-description {
    margin: 0;
    color: #718096;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 400;
}

/* Modal Body */
#mowcps-modal-body {
    padding: 24px;
}

#mowcps-loading {
    text-align: center;
    padding: 48px 20px;
    color: var(--mo-slate-gray);
    font-size: 14px;
    font-weight: 500;
}

.mowcps-loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f1f5f9;
    border-radius: 50%;
    border-top-color: var(--mo-blue-primary);
    animation: spin 0.8s linear infinite;
    margin-right: 12px;
}

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

/* Error State */
#mowcps-error {
    display: none;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fef7f7 100%);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 6px;
    color: #dc2626;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    border-left: 4px solid #ef4444;
}

/* Supplier Selection */
#mowcps-supplier-list {
    display: none;
}

#mowcps-select-all-label {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 500;
    font-size: 14px;
    color: var(--mo-charcoal-gray);
    cursor: pointer;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 6px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

#mowcps-select-all-label:hover {
    background: #f1f5f9;
    border-color: rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

#mowcps-select-all {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--mo-blue-primary);
}

#mowcps-suppliers {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    padding: 8px;
    background: #ffffff;
}

.mowcps-supplier-label {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 4px;
    transition: all 0.12s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    color: var(--mo-charcoal-gray);
    border: 1px solid transparent;
}

.mowcps-supplier-label:last-child {
    margin-bottom: 0;
}

.mowcps-supplier-label:hover {
    background: #f8fafc;
    border-color: rgba(102, 126, 234, 0.08);
    transform: translateX(2px);
}

.mowcps-supplier-checkbox {
    margin-right: 12px;
    width: 16px;
    height: 16px;
    accent-color: var(--mo-blue-primary);
}

/* Modal Footer */
#mowcps-modal-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: linear-gradient(to top, #fafbfc, #ffffff);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Cancel Button */
#mowcps-cancel-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 80px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    min-height: 36px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#mowcps-cancel-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
    color: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Delete Button */
#mowcps-delete-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: 1px solid #5a67d8;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
    min-height: 36px;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
}

#mowcps-delete-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    border-color: #4c51bf;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.25);
}

#mowcps-delete-btn:active:not(:disabled),
#mowcps-delete-btn:focus:not(:disabled) {
    background: linear-gradient(135deg, #4c51bf 0%, #5a67d8 100%);
    border-color: #434190;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
    outline: none;
}

#mowcps-delete-btn:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

/* Custom Scrollbar */
#mowcps-suppliers::-webkit-scrollbar {
    width: 6px;
}

#mowcps-suppliers::-webkit-scrollbar-track {
    background: #F1F1F1;
    border-radius: 3px;
}

#mowcps-suppliers::-webkit-scrollbar-thumb {
    background: var(--mo-neutral-gray);
    border-radius: 3px;
}

#mowcps-suppliers::-webkit-scrollbar-thumb:hover {
    background: var(--mo-slate-gray);
}

/* Enhanced Admin Notice */
#mo-wcps-delete-miniorange-synced-products-notice {
    border-left: 4px solid var(--mo-blue-primary) !important;
    background: linear-gradient(90deg, var(--mo-white) 0%, #f7fafc 100%) !important;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.08) !important;
    padding: 16px 20px !important;
    margin: 16px 0 !important;
    border-radius: 0 6px 6px 0 !important;
    font-family: var(--mo-font-secondary) !important;
}

#mo-wcps-delete-miniorange-synced-products-notice p {
    margin: 0 !important;
    font-size: var(--mo-font-size-md) !important;
    color: var(--mo-charcoal-gray) !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* Success state for notice */
#mo-wcps-delete-miniorange-synced-products-notice.success {
    border-left-color: var(--mo-green) !important;
    background: linear-gradient(90deg, var(--mo-white) 0%, var(--mo-pastel-green) 100%) !important;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.08) !important;
}

/* Responsive Design */
@media (max-width: 600px) {
    #mowcps-modal {
        width: 95%;
        margin: 20px;
        max-height: 90vh;
    }
    
    #mowcps-modal-header,
    #mowcps-modal-body,
    #mowcps-modal-footer {
        padding: 16px;
    }
    
    #mowcps-modal-footer {
        flex-direction: column-reverse;
    }
    
    #mowcps-cancel-btn,
    #mowcps-delete-btn {
        width: 100%;
        margin: 0;
    }
}

/* Focus states for accessibility */
#mowcps-select-all:focus,
.mowcps-supplier-checkbox:focus {
    outline: 2px solid var(--mo-blue-primary);
    outline-offset: 2px;
}

#mowcps-cancel-btn:focus,
#mowcps-delete-btn:focus {
    outline: 2px solid var(--mo-blue-primary);
    outline-offset: 2px;
}

/* Loading state enhancement */
#mowcps-delete-btn.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

#mowcps-delete-btn.loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 50%;
    left: 50%;
    margin-left: -9px;
    margin-top: -9px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
}