/* ─────────────────────────────
   DISPLAY ONLY THE CART FOR gsb
──────────────────────────── */

form.cart {
    display: none !important;
}

.elementor-add-to-cart {
    display: block !important;
}

/* ─────────────────────────────
   gsb BASE LAYOUT
──────────────────────────── */

#gsb-app {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 100%;
}

.gsb-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid #eee;
    border-top: 3px solid #000;
    border-radius: 50%;
    display: inline-block;
    animation: gsb-spin 0.8s linear infinite;
}

@keyframes gsb-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─────────────────────────────
   STICKY COUNTER
──────────────────────────── */

#gsb-counter-wrap {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 999;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* ─────────────────────────────
   REMOVE +/- COUNTER
──────────────────────────── */

.gsb-qty-select::-webkit-inner-spin-button,
.gsb-qty-select::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.gsb-qty-select {
    -moz-appearance: textfield;
}

/* ─────────────────────────────
   REMOVE BORDERS FROM FILTER TABLE
──────────────────────────── */

#gsb-filters table.variations {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

#gsb-filters table.variations td,
#gsb-filters table.variations tr,
#gsb-filters table.variations th {
    border: none !important;
}

/* ─────────────────────────────
   FILTER BOX (top controls)
──────────────────────────── */

#gsb-filters table.variations {
    width: 100%;
    border-collapse: collapse;
}

#gsb-filters td {
    padding: 8px 5px;
}

#gsb-filters label {
    font-weight: 600;
}

/* dropdown styling */
.gsb-select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

/* ─────────────────────────────
   COUNTER
──────────────────────────── */

#gsb-counter {
    font-weight: 600;
    margin: 10px 0;
    font-size: 14px;
}

/* ─────────────────────────────
   PRODUCT LIST CONTAINER
──────────────────────────── */

#gsb-products {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #eee;
    padding: 0 10px 10px;
    border-radius: 10px;
    background: #fff;
}

/* ─────────────────────────────
   EACH PRODUCT ROW
──────────────────────────── */

.gsb-product-row {
    display: grid;
    grid-template-columns: 50px 1fr 80px;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f2f2f2;
}

.gsb-product-row img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

/* product name */
.gsb-product-row span:nth-child(2) {
    font-size: 13px;
    line-height: 1.3;
}

/* qty dropdown */
.gsb-qty-select {
    width: 70px;
    padding: 5px;
    border-radius: 6px;
}

/* ─────────────────────────────
   ADD TO CART SECTION
──────────────────────────── */

#gsb-cart-wrap {
    position: sticky;
    bottom: 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
}

#gsb-add-to-cart {
    width: 100%;
    padding: 12px;
    background: #DF3507;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

#gsb-add-to-cart:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─────────────────────────────
   END
──────────────────────────── */