.zgv-offers-card {
    margin: 18px 0;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid #d9d9d9;
    background: #f8f8f8;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease, transform .2s ease;
}

.zgv-offers-card:hover {
    transform: translateY(-1px);
}

.zgv-offers-card.is-active {
    border-color: #238636;
    background: #effff2;
    box-shadow: 0 10px 28px rgba(35, 134, 54, 0.15);
}

.zgv-offers-card.is-near {
    border-color: #d79921;
    background: #fff9e8;
}

.zgv-offers-main {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.zgv-offers-badge {
    width: fit-content;
    background: #222;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    padding: 7px 10px;
    border-radius: 999px;
}

.zgv-offers-card.is-active .zgv-offers-badge {
    background: #238636;
}

.zgv-offers-title {
    margin: 0;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
    color: #202020;
}

.zgv-offers-text,
.zgv-offers-status,
.zgv-offers-progress-label,
.zgv-gift-status {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.zgv-offers-status {
    color: #666;
}

.zgv-offers-card.is-active .zgv-offers-status {
    color: #238636;
    font-weight: 800;
}

.zgv-offers-progress {
    width: 100%;
    height: 8px;
    background: #e1e1e1;
    border-radius: 999px;
    overflow: hidden;
}

.zgv-offers-progress-bar {
    width: 0%;
    height: 100%;
    background: #238636;
    border-radius: inherit;
    transition: width .2s ease;
}

.zgv-offers-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.zgv-offers-button {
    border: none;
    border-radius: 999px;
    padding: 11px 16px;
    min-height: 42px;
    background: #222;
    color: #fff;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.zgv-offers-button:hover,
.zgv-offers-card.is-active .zgv-offers-button {
    background: #238636;
}

.zgv-gift-card {
    margin-top: 10px;
    padding: 11px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.04);
    color: #333;
}

.zgv-gift-card.is-active {
    background: rgba(35,134,54,.1);
    color: #166328;
    font-weight: 700;
}

.zgv-offers-card[hidden] {
    display: none !important;
}

@media screen and (max-width: 768px) {
    .zgv-offers-card {
        grid-template-columns: 1fr;
    }

    .zgv-offers-actions {
        align-items: stretch;
    }

    .zgv-offers-button {
        width: 100%;
    }
}

/* v1.0.2 - CTA renforcé pour éviter que le thème / Elementor écrase le bouton */
.zgv-offers-card .zgv-offers-actions {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 5 !important;
}

.zgv-offers-card .zgv-offers-button,
.zgv-offers-card button.zgv-offers-button {
    appearance: none !important;
    -webkit-appearance: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    min-width: 210px !important;
    min-height: 48px !important;
    padding: 13px 20px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #1f7a3a !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: none !important;
    cursor: pointer !important;
    box-shadow: 0 8px 20px rgba(31,122,58,.22) !important;
}

.zgv-offers-card .zgv-offers-button:hover,
.zgv-offers-card .zgv-offers-button:focus {
    background: #145c2b !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.zgv-offers-card.is-active .zgv-offers-button {
    background: #238636 !important;
}

@media screen and (max-width: 768px) {
    .zgv-offers-card .zgv-offers-button,
    .zgv-offers-card button.zgv-offers-button {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* v1.0.3 - Affichage panier plus visible */
.zgv-cart-offer-summary-row th,
.zgv-cart-offer-summary-row td {
    background: #effff2 !important;
    border-top: 2px solid #238636 !important;
    border-bottom: 2px solid #238636 !important;
    color: #166328 !important;
}

.zgv-cart-offer-badge,
.zgv-cart-subtotal-offer,
.zgv-cart-qty-note {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}
