/* GreenMart Quick Cart */
.gmqc {
    --gmqc-green: var(--tb-theme-color, #6bad2f);
    --gmqc-border: #e5e7eb;
    --gmqc-text: #20252b;
    margin-top: 10px;
    width: 100%;
    font-size: 14px;
}

.gmqc-variations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.gmqc-variation {
    appearance: none;
    border: 1px solid var(--gmqc-border);
    background: #fff;
    color: var(--gmqc-text);
    border-radius: 8px;
    min-height: 34px;
    padding: 5px 10px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: .15s ease;
}

.gmqc-variation:hover,
.gmqc-variation.is-selected {
    border-color: var(--gmqc-green);
    color: var(--gmqc-green);
    box-shadow: 0 0 0 1px var(--gmqc-green) inset;
}

.gmqc-current-price {
    min-height: 20px;
    margin-bottom: 8px;
    font-weight: 700;
}

.gmqc-row {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
}

.gmqc-quantity {
    display: inline-grid;
    grid-template-columns: 34px 44px 34px;
    border: 1px solid var(--gmqc-border);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
}

.gmqc-minus,
.gmqc-plus {
    appearance: none;
    border: 0;
    background: #fff;
    color: var(--gmqc-text);
    font-size: 19px;
    line-height: 36px;
    height: 36px;
    padding: 0;
    cursor: pointer;
}

.gmqc-minus:hover,
.gmqc-plus:hover {
    background: #f5f7f2;
    color: var(--gmqc-green);
}

.gmqc-qty {
    width: 44px !important;
    height: 36px !important;
    min-height: 36px !important;
    border: 0 !important;
    border-left: 1px solid var(--gmqc-border) !important;
    border-right: 1px solid var(--gmqc-border) !important;
    border-radius: 0 !important;
    padding: 0 3px !important;
    text-align: center;
    font: inherit;
    font-weight: 700;
    background: #fff;
    box-shadow: none !important;
    -moz-appearance: textfield;
}

.gmqc-qty::-webkit-outer-spin-button,
.gmqc-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


.gmqc-message {
    min-height: 18px;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
}

.gmqc-message a {
    text-decoration: underline;
}

.gmqc-fallback .button {
    width: 100%;
    text-align: center;
}

/* Si GreenMart injecte malgré tout son bouton natif dans certaines cartes,
   on ne masque que le bouton standard dans les produits pris en charge. */
.products .product .gmqc ~ .add_to_cart_button,
.products .product .gmqc ~ a.product_type_variable,
.products .product .gmqc ~ a.product_type_simple {
    display: none !important;
}

@media (max-width: 767px) {
    .gmqc {
        font-size: 13px;
    }

    .gmqc-variations {
        gap: 5px;
    }

    .gmqc-variation {
        min-height: 32px;
        padding: 4px 8px;
        border-radius: 7px;
    }

}

/* Retour visuel discret pendant la synchronisation automatique du panier. */
.gmqc-quantity.is-syncing {
    opacity: .62;
}

.gmqc-quantity.is-syncing .gmqc-minus,
.gmqc-quantity.is-syncing .gmqc-plus {
    cursor: progress;
}
