/* Bangora Quick Order — modal + buttons (v1.3.15, nishchintobazar-style
   loop-card buttons SIDE BY SIDE in one flex row: gold "কার্টে রাখুন" +
   green "অর্ডার করুন", reference colours #cc9a06 / #1b5e20, white text). */
.bqo-order-now-btn {
  display: inline-block;
  background: #1b5e20;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin: 6px 4px 0 0;
  transition: background .2s;
}
.bqo-order-now-btn:hover { background: #0f3d14; color: #fff; }
/* Gold "কার্টে রাখুন" button — loop cards and single pages (reference:
   gold #cc9a06 background, WHITE text, 1.5px gold border). */
.bqo-cart-btn {
  display: block; width: 100%; text-align: center;
  background: #cc9a06 !important; color: #fff !important;
  border: 1.5px solid #cc9a06; border-radius: 8px; padding: 10px 18px;
  font-weight: 700; font-size: 15px; margin-top: 8px; text-decoration: none;
  box-sizing: border-box;
}
.bqo-cart-btn:hover { background: #b89105 !important; color: #fff !important; }
.bqo-cart-btn.added { background: #0f7a45 !important; color: #fff !important; }
/* Loop-card buttons, side by side (v1.3.15): the .bqo-loop-btns wrapper
   is one flex row (gap 8px), each button flex:1 — matching the
   reference .nzb-pc-btns. A variable product's lone order button fills
   the row on its own. */
.bqo-loop-btns { display: flex; gap: 8px; margin-top: 8px; }
.woocommerce ul.products li.product .bqo-loop-btns .bqo-cart-btn,
.woocommerce ul.products li.product .bqo-loop-btns .bqo-order-now-btn {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 6px;
  font-size: 15px; font-weight: 600; white-space: nowrap;
  margin: 0; width: auto;
}
/* Block-based product cards (homepage Product Collection sections) */
.bqo-order-now-btn.bqo-block { width: 100%; margin-top: 8px; }

.bqo-single-actions { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bqo-single-actions .bqo-order-now-btn.bqo-single { font-size: 17px; padding: 13px 26px; margin: 0; }
.bqo-whatsapp-btn {
  display: inline-block; background: #16a34a; color: #fff !important;
  border-radius: 8px; padding: 13px 20px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.bqo-whatsapp-btn:hover { background: #15803d; color: #fff !important; }
.bqo-call-btn {
  display: inline-block; background: #06301d; color: #fff !important;
  border-radius: 8px; padding: 13px 20px; font-weight: 700; font-size: 15px; text-decoration: none;
}
.bqo-call-btn:hover { background: #08553d; color: #fff !important; }

.bqo-countdown {
  background: #fef3c7; border: 1px dashed #d97706; color: #92400e;
  border-radius: 8px; padding: 10px 14px; font-weight: 700; margin: 12px 0;
}
.bqo-countdown .bqo-timer { color: #dc2626; font-size: 18px; letter-spacing: 2px; }

.bqo-delivery-info {
  background: #f5f0e8; border-radius: 8px; padding: 12px 14px; margin: 12px 0; font-size: 14px; line-height: 1.8;
}

/* Modal — Soker-style: green header bar, dashed price box, cream info box.
   v1.3.9: the card is a flex column — the header stays at the top and the
   confirm button (in .bqo-foot) stays at the bottom, while only .bqo-body
   scrolls. (position:sticky on the nested submit button did not hold in
   v1.3.8, so the button now lives in a fixed footer outside the form and
   submits it via the form="..." attribute.) */
#bqo-modal { position: fixed; inset: 0; z-index: 99999; }
.bqo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.bqo-card {
  position: relative; background: #fff; border-radius: 10px;
  max-width: 460px; width: calc(100% - 32px); margin: 4vh auto;
  max-height: 92vh; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
}
.bqo-head {
  position: relative; /* v1.3.10: the close button is absolutely positioned
    (top:50%) — without this it resolved against .bqo-card and rendered
    mid-popup, white on the white form, invisible. */
  flex-shrink: 0;
  background: #149759; color: #fff; font-weight: 700; font-size: 18px;
  padding: 13px 16px; border-radius: 10px 10px 0 0; text-align: center;
}
.bqo-close {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  background: none; border: none; font-size: 20px; line-height: 1;
  cursor: pointer; color: #fff; padding: 4px 6px;
}
/* v1.3.11 — mobile fullscreen REMOVED (user request 2026-11-17): the v1.3.8
   fullscreen popup covered the whole phone display with no gaps and no
   visible close option, and the user does not like it. The popup is now a
   centred card with gaps on every side on phone too (the base .bqo-card
   rule: width calc(100% - 32px), margin 4vh auto, rounded corners), the
   way it was before v1.3.8. The pinned header/footer still work inside
   the card. */
.bqo-body { flex: 1; overflow-y: auto; min-height: 0; padding: 16px; }
/* Fixed footer holding the confirm button (v1.3.9): it sits outside the
   scrolling body, so it is always visible at the popup's bottom. */
.bqo-foot {
  flex-shrink: 0; padding: 12px 16px 16px;
  background: #fff; border-top: 1px solid #f0f0f0;
}
.bqo-foot .bqo-submit { margin-top: 0; }
.bqo-prod { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.bqo-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #eee; }
.bqo-pname { font-weight: 700; font-size: 15px; }
.bqo-unit-price { color: #149759; font-weight: 700; font-size: 15px; margin-top: 2px; }
.bqo-row { display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 15px; margin: 6px 0 12px; }
.bqo-stepper { display: inline-flex; align-items: center; gap: 0; border: 1px solid #ddd; border-radius: 8px; overflow: hidden; }
.bqo-stepper button {
  width: 36px; height: 36px; border: none; background: #f3f4f6;
  font-size: 18px; cursor: pointer; color: #333;
}
.bqo-stepper button:hover { background: #e5e7eb; }
.bqo-qty { width: 46px; text-align: center; border: none; border-left: 1px solid #ddd; border-right: 1px solid #ddd; height: 36px; font-size: 15px; background: #fff; }

/* ---------- Weight pills (v1.3.16, reference-style) ----------
   Variable products (hari gur) show their weights as SIDE-BY-SIDE
   pills — two per row, wrapping like the reference site — instead of
   the old dropdown. Each pill is two lines: the weight on top and the
   price below. The selected pill is dark green with white text and a
   white checkmark at the top-right. */
.bqo-variation-row { margin: 2px 0 14px; }
.bqo-variation-label { font-weight: 700; font-size: 15px; color: #24341a; margin-bottom: 8px; }
.bqo-variation-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.bqo-pill {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 8px;
  background: #fff;
  border: 1.5px solid #d8d8d8;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  font-family: inherit;
  line-height: 1.4;
}
.bqo-pill-label { font-weight: 700; font-size: 15px; color: #24341a; }
.bqo-pill-price { font-size: 14px; color: #5a6b5a; }
.bqo-pill-check {
  display: none;
  position: absolute;
  top: 6px;
  right: 9px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.bqo-pill.bqo-selected { background: #1b5e20; border-color: #1b5e20; }
.bqo-pill.bqo-selected .bqo-pill-label,
.bqo-pill.bqo-selected .bqo-pill-price { color: #fff; }
.bqo-pill.bqo-selected .bqo-pill-check { display: block; }
.bqo-totals {
  background: #fdf6e0; border: 1px dashed #d9a72e; border-radius: 8px;
  padding: 12px 14px; font-size: 15px; margin: 4px 0 12px;
}
.bqo-totals > div { display: flex; justify-content: space-between; margin: 5px 0; }
.bqo-totals .bqo-fee-red { color: #dc2626; font-weight: 600; }
.bqo-grand { font-weight: 800; font-size: 17px; color: #149759; border-top: 1px solid #e5e7eb; padding-top: 8px; margin-top: 8px !important; }
.bqo-info {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px;
  padding: 10px 14px; font-size: 14px; line-height: 1.9; margin-bottom: 6px;
}
.bqo-info .bqo-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #149759; margin-right: 8px; vertical-align: middle;
}
.bqo-form label { display: block; font-weight: 600; font-size: 14px; margin: 12px 0; }
.bqo-form input[type=text], .bqo-form input[type=tel], .bqo-form textarea, .bqo-form select {
  width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-top: 5px; font-size: 15px; background: #fff;
}
.bqo-form input:focus, .bqo-form textarea:focus, .bqo-form select:focus { border-color: #149759; outline: none; }
.bqo-submit {
  width: 100%; background: #149759; color: #fff; border: none; border-radius: 999px;
  padding: 14px; font-size: 17px; font-weight: 800; cursor: pointer; margin-top: 14px;
  box-shadow: 0 0 0 1.5px #d9a72e, 0 4px 14px rgba(6, 48, 29, .28);
}
.bqo-submit:hover { background: #0f7a45; }
.bqo-submit:disabled { opacity: .6; cursor: wait; }
.bqo-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 8px; padding: 10px; margin-top: 10px; }

/* Inline order form on single product pages (v1.3.0, Soker-style): the same
   form as the popup, rendered on the page itself in the summary column. */
.bqo-inline {
  background: #fff; border: 1.5px solid #d9a72e; border-radius: 16px;
  box-shadow: 0 4px 16px rgba(6, 48, 29, .06);
  padding: 0; margin: 16px 0; overflow: hidden;
}
.bqo-inline-head {
  background: linear-gradient(120deg, #06301d, #08553d);
  border-bottom: 3px solid #d9a72e;
  padding: 14px 18px; margin: 0 0 12px;
}
.bqo-inline-title { font-size: 19px; font-weight: 800; color: #ffffff; }
.bqo-inline-sub { font-size: 13.5px; color: #f2cd6b; margin-top: 2px; }
.bqo-inline .bqo-form { padding: 0 18px 18px; }

/* ---------- Cart checkout (v1.4.0) ----------
   The checkout page shows the same simple order form as the product
   page — name, mobile, address + delivery area only, no email. The
   cart items list sits above the totals; the form is centred, same
   width as the product-page inline form. */
.bqo-cart-checkout { max-width: 640px; margin: 0 auto; }
.bqo-cart-checkout .bqo-inline { margin: 0 0 24px; }
.bqo-cart-items { margin: 0 0 4px; }
.bqo-cart-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 2px; border-bottom: 1px solid #f0ead9; font-size: 15px;
}
.bqo-cart-item:last-child { border-bottom: none; }
.bqo-cart-item-name { font-weight: 600; color: #24341a; }
.bqo-cart-item-qty { color: #5a6b5a; font-weight: 500; }
.bqo-cart-item-price { font-weight: 700; color: #1b5e20; white-space: nowrap; }
.bqo-cart-empty { text-align: center; padding: 40px 16px; font-size: 16px; }
.bqo-cart-empty .button {
  display: inline-block; background: #1b5e20; color: #fff !important;
  border-radius: 999px; padding: 12px 28px; font-weight: 700;
  text-decoration: none; margin-top: 12px;
}

/* Tracking */
.bqo-track-form { max-width: 420px; }
.bqo-track-form input { width: 100%; border: 1px solid #ddd; border-radius: 8px; padding: 10px; margin-top: 4px; }
.bqo-track-form button {
  background: #149759; color: #fff; border: none; border-radius: 8px;
  padding: 12px 22px; font-weight: 700; cursor: pointer;
}
.bqo-track-result { background: #f5f0e8; border-radius: 10px; padding: 16px; max-width: 480px; margin-bottom: 16px; }
.bqo-track-error { color: #b91c1c; font-weight: 700; }

/* ---- v1.3.14: cart icon REMOVED ----
   The round cart icon (v1.3.6/1.3.7) is gone — the gold "কার্টে রাখুন"
   button on the card does that job now, and the reference cards have no
   icon on the image. The "View cart" link WooCommerce appends after an
   AJAX add-to-cart is hidden so the card stays clean. */
.woocommerce ul.products li.product .bqo-cart-btn.added + .added_to_cart,
.woocommerce ul.products li.product .bqo-cart-btn.added ~ .added_to_cart { display: none !important; }
