/**
 * WebX MFS Integration Styles
 */

.webx-mfs-configurator-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.webx-mfs-configure-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    max-width: 150px;
    justify-content: center;
}

.webx-mfs-configure-link:hover {
    background: #333333;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.webx-mfs-configure-link.loading {
    opacity: 0.7;
    pointer-events: none;
}

.webx-mfs-configure-link.loading .dashicons {
    animation: webx-mfs-spin 1s linear infinite;
}

.webx-mfs-configure-link .dashicons {
    font-size: 12px;
    line-height: 1;
    margin: 0;
    color: #ffffff;
}

@keyframes webx-mfs-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .webx-mfs-configure-link {
        font-size: 9px;
        padding: 5px 10px;
        max-width: 130px;
        gap: 3px;
    }

    .webx-mfs-configure-link .dashicons {
        font-size: 10px;
    }
}

/* Cart table specific styles */
.woocommerce-cart-form .webx-mfs-configurator-wrapper {
    margin-top: 8px;
}

.woocommerce-cart-form .webx-mfs-configure-link {
    align-self: flex-start;
}

/* Success message styling */
.webx-mfs-success-message {
    padding: 10px 16px;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 14px;
}

/* Error message styling */
.webx-mfs-error-message {
    padding: 10px 16px;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 14px;
}
