/**
 * msOrderCancelButton Styles
 */

.msoc-cancel-btn {
    display: inline-block;
    color: #dc3545;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    background: transparent;
    margin: 0;
    padding: 0;
}

.msoc-cancel-btn:hover {
    background-color: #c82333;
    color: #fff;
}

.msoc-cancel-btn:disabled,
.msoc-cancel-btn.msoc-loading {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Cancelled order styling */
.msoc-cancelled {
    opacity: 0.6;
    position: relative;
}

.msoc-cancelled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.03) 10px,
        rgba(0, 0, 0, 0.03) 20px
    );
    pointer-events: none;
}

/* Message notifications */
.msoc-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 25px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: msocSlideDown 0.3s ease;
}

.msoc-message.msoc-success {
    background-color: #28a745;
    color: #fff;
}

.msoc-message.msoc-error {
    background-color: #dc3545;
    color: #fff;
}

.msoc-message.msoc-fade-out {
    animation: msocFadeOut 0.3s ease;
    opacity: 0;
}

@keyframes msocSlideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes msocFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Status badge styling */
.ms2_status.cancelled,
.order-status.cancelled {
    background-color: #6c757d;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    display: inline-block;
}
