.wc-group-progress-box {
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f7f7;
    border-radius: 6px;
}

.wc-group-progress-bar {
    width: 100%;
    height: 10px;
    background: #ddd;
    border-radius: 5px;
    overflow: hidden;
    margin: 8px 0;
}

.wc-group-progress-bar span {
    display: block;
    height: 100%;
    background: #6f42c1;
    transition: width .3s ease;
}

body.single-product .wc-group-variable-actions + .variations_form .single_add_to_cart_button {
    display: none !important;
}

/* Esconde botão padrão APENAS quando plugin de grupo estiver ativo */
.wc-group-variable-actions ~ .single_add_to_cart_button {
    display: none !important;
}

/* ======================================================
   POP-UP DE CONVITE — COMPRA EM GRUPO
====================================================== */

#wc-group-invite-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.wc-group-invite-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.wc-group-invite-box {
    background: #ffffff;
    max-width: 520px;
    margin: 10vh auto;
    padding: 24px;
    border-radius: 14px;
    position: relative;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    animation: wcGroupFadeUp 0.3s ease-out;
}

@keyframes wcGroupFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wc-group-invite-box h2 {
    font-size: 22px;
    margin-bottom: 16px;
    color: #111;
}

.wc-group-invite-box p {
    font-size: 14px;
    color: #444;
    margin-top: 10px;
}

#wc-group-invite-link {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    cursor: pointer;
    font-size: 14px;
    background: #fafafa;
}

#wc-group-invite-link:focus {
    outline: none;
    border-color: #6f42c1;
    box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.15);
}

.wc-group-invite-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #666;
}

.wc-group-invite-close:hover {
    color: #000;
}

.wc-group-invite-whatsapp {
    margin-top: 18px;
    width: 100%;
    padding: 14px;
    background: #25D366;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wc-group-invite-whatsapp:hover {
    background: #1ebe5d;
}


