/* DSW Webhook Buttons — frontend styles */

.dsw-webhook-btn {
    display: inline-block;
    padding: 10px 22px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
    line-height: 1.4;
}

.dsw-webhook-btn:hover:not(:disabled) {
    background-color: #005a87;
    color: #fff;
}

.dsw-webhook-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Loading spinner via CSS */
.dsw-webhook-btn.dsw-loading::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 8px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dsw-spin 0.7s linear infinite;
    vertical-align: middle;
}

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

/* Success state */
.dsw-webhook-btn.dsw-success {
    background-color: #46b450;
}

/* Error state */
.dsw-webhook-btn.dsw-error {
    background-color: #d63638;
}
