/**
 * WooCommerce Order via WhatsApp - Frontend Styles
 */

:root {
    --wc-wa-bg-color: #25D366;
    --wc-wa-hover-color: #1EBE5D;
    --wc-wa-text-color: #FFFFFF;
    --wc-wa-border-radius: 8px;
}

.wc-order-wa-button-wrapper {
    margin: 14px 0;
    display: block;
    width: 100%;
    clear: both;
}

.wc-order-wa-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background-color: var(--wc-wa-bg-color) !important;
    color: var(--wc-wa-text-color) !important;
    border: none !important;
    border-radius: var(--wc-wa-border-radius) !important;
    padding: 12px 22px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    box-sizing: border-box;
}

.wc-order-wa-btn:hover,
.wc-order-wa-btn:focus {
    background-color: var(--wc-wa-hover-color) !important;
    color: var(--wc-wa-text-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
    text-decoration: none !important;
}

.wc-order-wa-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.wc-order-wa-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.wc-order-wa-icon svg {
    display: block;
    fill: currentColor;
    width: 22px;
    height: 22px;
}

.wc-order-wa-text-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.wc-order-wa-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.wc-order-wa-sublabel {
    display: block;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

/* Archive Catalog Button */
.wc-order-wa-archive-btn {
    margin-top: 8px !important;
    font-size: 14px !important;
    padding: 8px 14px !important;
    width: 100% !important;
}

/* Loading Spinner state */
.wc-order-wa-btn.is-loading {
    pointer-events: none;
    opacity: 0.85;
}

.wc-order-wa-btn.is-loading::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wc-wa-spin 0.75s linear infinite;
}

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

/* Validation Notice */
.wc-order-wa-notice {
    padding: 10px 14px;
    margin-bottom: 12px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 6px;
    font-size: 14px;
    display: none;
    animation: wc-wa-fade-in 0.3s ease;
}

.wc-order-wa-admin-alert {
    padding: 12px 16px;
    background-color: #fff8e5;
    border-left: 4px solid #ffb900;
    margin: 15px 0;
    font-size: 13px;
    color: #614600;
}

@keyframes wc-wa-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
