/* Overlay background */
.wpc-modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* dark overlay */
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
/* Modal box */
.wpc-modal-box {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    position: relative;
    animation: fadeIn 0.3s ease;
}
/* Close button */
.wpc-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
}

/* Dropdown */
.wpc-modal-select {
    width: 100%;
    padding: 10px;
    margin: 15px 0;
    font-size: 16px;
}
/* Save Button */
.wpc-modal-save-btn {
    background: #0071a1;
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
}
.wpc-modal-save-btn:hover {
    background: #005f87;
}
/* Animate */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wpc-modal-save-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wpc-spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #3498db;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
