/* One-page checkout (only when explicitly selected in admin). Uses Bazaro cards/buttons. */
.bb-bazaro-checkout--onepage{--bb-onepage-accent:#df2429;--bb-onepage-border:#e7e9ed;--bb-onepage-muted:#727b88;scroll-margin-top:20px}
.bb-bazaro-checkout--onepage .bb-checkout-progress{display:none!important}
.bb-bazaro-checkout--onepage .bb-checkout-main,.bb-bazaro-checkout--onepage .bb-checkout-summary-column{min-width:0}
.bb-bazaro-checkout--onepage .bb-checkout-payment-products .bb-checkout-card__step{background:#2b3038}
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-checkout-card__step{background:#2b3038}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .bb-checkout-card__step{background:var(--bb-onepage-accent)}
.bb-bazaro-checkout--onepage .bb-checkout-card{max-width:100%;min-width:0}
.bb-onepage-shipping{scroll-margin-top:20px}
.bb-onepage-shipping .bb-checkout-card__body{display:flex;flex-direction:column;gap:6px}
.bb-onepage-subheading{display:flex;align-items:center;gap:10px;margin:18px 0 12px;font-size:14px;color:#20262d}
.bb-onepage-subheading>span{width:25px;height:25px;display:grid;place-items:center;border-radius:50%;background:#fce8e9;color:#bc262b;font-size:12px;font-weight:800}
.bb-onepage-addresses .row{margin-inline:0!important}
.bb-onepage-addresses .adress-card,.bb-onepage-addresses .add-adress-card{height:100%;min-height:130px;border-radius:12px!important}
.bb-onepage-addresses .col-xl-4{max-width:100%;min-width:0}
.bb-onepage-addresses .adress-area{padding:6px!important;margin:0 0 7px!important}
.bb-onepage-options,.bb-onepage-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:12px}
.bb-onepage-option,.bb-onepage-day{position:relative;margin:0;cursor:pointer;min-width:0;border:1px solid var(--bb-onepage-border);border-radius:13px;background:#fff;transition:border-color .15s,box-shadow .15s}
.bb-onepage-option{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:15px}
.bb-onepage-option input,.bb-onepage-day input{position:absolute;opacity:0;width:1px;height:1px}
.bb-onepage-option:has(input:checked),.bb-onepage-day:has(input:checked){border-color:var(--bb-onepage-accent);box-shadow:0 0 0 2px rgba(223,36,41,.09);background:#fffbfb}
.bb-onepage-option__body{display:flex;flex-direction:column;gap:5px;min-width:0}
.bb-onepage-option__body strong{font-size:13px;color:#20262d}
.bb-onepage-option__body small,.bb-onepage-day small{font-size:11px;color:#818895}
.bb-onepage-option__dot{width:16px;height:16px;flex:none;border-radius:50%;border:2px solid #bac0c7}
.bb-onepage-option input:checked~.bb-onepage-option__dot{border:5px solid var(--bb-onepage-accent)}
.bb-onepage-day{padding:13px 9px;display:flex;flex-direction:column;text-align:center;align-items:center;gap:6px}
.bb-onepage-day strong{font-size:13px;color:#2f3641}
.bb-onepage-option:focus-within,.bb-onepage-day:focus-within{outline:2px solid #bc262b;outline-offset:2px}
.bb-onepage-note{font-size:12px;color:#6d7883;line-height:1.8;padding:12px 13px;background:#f7f9fb;border-radius:10px;margin-top:14px}
.bb-onepage-error{font-size:13px;color:#a5272d;background:#fff0f0;border:1px solid #f5c6c7;padding:11px 13px;border-radius:10px;margin-top:10px}
.bb-onepage-error[hidden]{display:none!important}
.bb-onepage-error--server{margin-bottom:20px}
.bb-bazaro-checkout--onepage .bb-payment-summary{top:22px}
.bb-bazaro-checkout--onepage .bb-checkout-payment-form,.bb-bazaro-checkout--onepage .bb-checkout-layout{max-width:100%}
.bb-bazaro-checkout--onepage .bb-checkout-payment-products .item_shoppingCart{max-width:100%;min-width:0}
.bb-bazaro-checkout--onepage .bb-checkout-summary-column{align-self:start}
.bb-bazaro-checkout--onepage .bb-checkout-submit:disabled{opacity:.55;cursor:not-allowed;filter:grayscale(.25)}
@media(max-width:1199px){.bb-bazaro-checkout--onepage .bb-checkout-summary-column{margin-top:12px}.bb-onepage-options{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){.bb-onepage-options,.bb-onepage-days{grid-template-columns:1fr 1fr}.bb-onepage-addresses .adress-area{width:100%}.bb-bazaro-checkout--onepage .bb-checkout-hero{margin-bottom:8px}}
@media(max-width:480px){.bb-onepage-options,.bb-onepage-days{grid-template-columns:1fr}.bb-onepage-shipping .bb-checkout-card__body{padding:14px!important}.bb-bazaro-checkout--onepage .bb-checkout-card__head{gap:8px}}
/* Language direction is taken from the storefront; only geometry is constrained. */
[dir="ltr"] .bb-onepage-subheading,[dir="ltr"] .bb-onepage-options,[dir="ltr"] .bb-onepage-days{text-align:start}

.bb-onepage-qty{position:relative;display:flex;align-items:center;justify-content:center;gap:6px;margin:7px auto 0;padding:4px;border:1px solid #e7e9ec;border-radius:10px;background:#fff}
.bb-onepage-qty__button{border:0;background:#f4f5f7;color:#353940;display:grid;place-items:center;width:27px;height:27px;cursor:pointer;border-radius:7px;font-size:18px;line-height:1}
.bb-onepage-qty__button:hover{background:#fbe8e9;color:#c62228}
.bb-onepage-qty__button:disabled{cursor:wait;opacity:.5}
.bb-onepage-qty__count{min-width:20px;text-align:center;font-size:12px;font-weight:800;color:#30343a}

/* One-page checkout UI refinement, 2026-11-10. All checkout-specific rules are
   scoped to the selected layout; multi-step checkout remains unchanged. */
.bb-bazaro-checkout--onepage {
  overflow: visible !important; /* sticky sidebar must not be clipped by main */
  --bb-op-ink: #20242c;
  --bb-op-line: #e7e9ed;
  --bb-op-shadow: 0 8px 24px rgba(23, 31, 45, .035);
}
.bb-bazaro-checkout--onepage .bb-checkout-area,
.bb-bazaro-checkout--onepage .bb-checkout-area > .container,
.bb-bazaro-checkout--onepage .bb-checkout-layout { overflow: visible !important; }
.bb-bazaro-checkout--onepage .bb-checkout-card {
  border: 1px solid var(--bb-op-line) !important;
  border-radius: 16px !important;
  box-shadow: var(--bb-op-shadow);
}
.bb-bazaro-checkout--onepage .bb-checkout-card__head { gap: 12px; }
.bb-bazaro-checkout--onepage .bb-checkout-card__head .bb-checkout-card__step {
  background: #252a32 !important;
  border-color: #252a32 !important;
  color: #fff !important;
}
.bb-bazaro-checkout--onepage .bb-onepage-shipping .bb-checkout-card__step {
  background: #252a32 !important; border-color: #252a32 !important;
}
.bb-bazaro-checkout--onepage .bb-payment-intro { font-size: 12px; line-height: 1.9; color: #7a828c; }

/* Cart: no selectable-product checkbox exists in the payment controller. If
   legacy scripts append one underneath a thumbnail, it is non-functional here;
   hide only that orphan control, never address/payment selection inputs. */
.bb-bazaro-checkout--onepage .bb-checkout-payment-products .firstInfo_itemShoppingCart input[type="checkbox"],
.bb-bazaro-checkout--onepage .bb-checkout-payment-products .firstInfo_itemShoppingCart > .form-check { display: none !important; }
.bb-bazaro-checkout--onepage .bb-onepage-qty {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 5px;
  width: max-content;
  min-height: 36px;
  padding: 3px 4px;
  margin: 8px auto 0;
  border: 1px solid #e6e8ed;
  background: #fafbfc;
  border-radius: 10px;
}
.bb-bazaro-checkout--onepage .bb-onepage-qty__button {
  appearance: none;
  display: grid !important;
  place-items: center;
  width: 29px !important;
  min-width: 29px;
  height: 29px !important;
  min-height: 29px;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  color: #252a32 !important;
  background: #fff !important;
  box-shadow: none !important;
  line-height: 1 !important;
  font-size: 18px !important;
  cursor: pointer;
}
.bb-bazaro-checkout--onepage .bb-onepage-qty__button:hover { background: #fceff0 !important; color: #b72733 !important; }
.bb-bazaro-checkout--onepage .bb-onepage-qty__count { min-width: 25px; line-height: 28px; color: #252a32; }
.bb-bazaro-checkout--onepage .bb-onepage-qty__button:focus-visible { outline: 2px solid #d82d39 !important; outline-offset: 2px; }

/* Delivery: native addresses and the one-page shipping/date choices share
   identical card proportions and clear selected/focus states. */
.bb-bazaro-checkout--onepage .bb-onepage-shipping .bb-checkout-card__body { gap: 0; }
.bb-bazaro-checkout--onepage .bb-onepage-subheading {
  gap: 9px; margin: 22px 0 12px; color: var(--bb-op-ink);
  font-size: 13px; font-weight: 700; line-height: 1.6;
}
.bb-bazaro-checkout--onepage .bb-onepage-subheading > span {
  width: 26px; height: 26px; flex: none;
  border-radius: 8px; color: #c42b35; background: #fff0f1;
}
.bb-bazaro-checkout--onepage .bb-onepage-addresses { min-width: 0; width: 100%; }
.bb-bazaro-checkout--onepage .bb-onepage-addresses #userAddress { gap: 12px !important; }
.bb-bazaro-checkout--onepage .bb-onepage-addresses .adress-area { min-width: 0; padding: 0 !important; margin: 0 !important; }
.bb-bazaro-checkout--onepage .bb-onepage-addresses .adress-card,
.bb-bazaro-checkout--onepage .bb-onepage-addresses .add-adress-card {
  width: 100%; min-height: 150px !important; height: 100%;
  border: 1px solid var(--bb-op-line) !important; border-radius: 12px !important;
  background: #fff; box-shadow: none !important;
}
.bb-bazaro-checkout--onepage .bb-onepage-addresses .add-adress-card { background: #fcfcfd !important; }
.bb-bazaro-checkout--onepage .bb-onepage-options {
  display: grid !important; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; width: 100%;
}
.bb-bazaro-checkout--onepage .bb-onepage-option,
.bb-bazaro-checkout--onepage .bb-onepage-day {
  margin: 0 !important;
  border: 1px solid var(--bb-op-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  cursor: pointer;
  box-shadow: none !important;
}
.bb-bazaro-checkout--onepage .bb-onepage-option {
  display: flex !important; min-height: 76px; padding: 14px 16px !important;
  align-items: center; gap: 12px;
}
.bb-bazaro-checkout--onepage .bb-onepage-option > input[type="radio"],
.bb-bazaro-checkout--onepage .bb-onepage-day > input[type="radio"] {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; margin: 0 !important; pointer-events: none;
}
.bb-bazaro-checkout--onepage .bb-onepage-option__body { flex: 1 1 auto; min-width: 0; }
.bb-bazaro-checkout--onepage .bb-onepage-option__body strong,
.bb-bazaro-checkout--onepage .bb-onepage-day strong {
  display: block; color: #2c313b !important; font-size: 13px !important; line-height: 1.6; font-weight: 700;
}
.bb-bazaro-checkout--onepage .bb-onepage-option__body small,
.bb-bazaro-checkout--onepage .bb-onepage-day small { display: block; color: #818996 !important; font-size: 11px !important; line-height: 1.7; }
.bb-bazaro-checkout--onepage .bb-onepage-option__dot {
  display: block; width: 19px; height: 19px; border: 2px solid #b9bec7;
  border-radius: 50%; background: #fff; flex: 0 0 19px;
}
.bb-bazaro-checkout--onepage .bb-onepage-option:has(input:checked),
.bb-bazaro-checkout--onepage .bb-onepage-day:has(input:checked) {
  border-color: #cf313c !important; background: #fffafb !important;
  box-shadow: 0 0 0 1px #cf313c24 !important;
}
.bb-bazaro-checkout--onepage .bb-onepage-option input:checked ~ .bb-onepage-option__dot {
  border: 5px solid #c62f39; background: #fff;
}
.bb-bazaro-checkout--onepage .bb-onepage-option:focus-within,
.bb-bazaro-checkout--onepage .bb-onepage-day:focus-within { outline: 2px solid #c62f39; outline-offset: 2px; }
.bb-bazaro-checkout--onepage .bb-onepage-days { width: 100%; grid-template-columns: repeat(auto-fit, minmax(115px, 1fr)); }
.bb-bazaro-checkout--onepage .bb-onepage-day {
  display: flex !important; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px; min-height: 80px;
  padding: 12px !important; text-align: center;
}

/* Coupon section: de-legacy material inputs/buttons without changing the
   discountSubmit POST action or its server-side coupon calculations. */
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-payment-coupon-panel,
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .addGiftInFactor { width: 100% !important; min-width: 0; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .addGiftInFactor {
  display: grid !important; grid-template-columns: minmax(0,1fr) auto !important;
  align-items: stretch !important; column-gap: 12px !important; row-gap: 10px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-alert {
  grid-column: 1 / -1; border-radius: 10px !important; margin: 0 !important;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-input { min-width: 0; margin: 0 !important; padding: 0 !important; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon #discountCode {
  appearance: none; width: 100% !important; min-width: 0 !important;
  height: 49px !important; min-height: 49px; margin: 0 !important; padding: 0 16px !important;
  border: 1px solid #dfe3e8 !important; border-radius: 10px !important;
  color: #252a33 !important; background: #fff !important;
  font-size: 13px !important; font-weight: 500; text-align: start !important;
  box-shadow: none !important; outline: 0;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon #discountCode:focus { border-color: #303741 !important; box-shadow: 0 0 0 3px #232b3510 !important; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-actions { display: flex !important; gap: 9px; flex-wrap: wrap; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-actions input {
  min-width: 106px !important; width: auto !important;
  min-height: 49px !important; height: 49px !important;
  padding: 0 16px !important; margin: 0 !important;
  border-radius: 10px !important; box-shadow: none !important;
  font-size: 12px !important; font-weight: 700 !important; cursor: pointer;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon #discountSubmit { color: #fff !important; border: 1px solid #242a31 !important; background: #242a31 !important; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon #discountSubmit:hover { background: #383f49 !important; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-payment-coupon-reset { color: #a7333b !important; border: 1px solid #f0dade !important; background: #fff6f6 !important; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-notice {
  margin: 0 0 14px; padding: 10px 14px;
  border: 1px solid #e9ecf0; border-radius: 10px; background: #f8fafb;
  color: #535e6c; line-height: 1.85; font-size: 12px;
}

/* Payment choices: restore full-width Bazaro radio cards and bank tiles. */
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .bb-payment-methods {
  display: grid !important; grid-template-columns: minmax(0,1fr) !important;
  gap: 12px !important; flex-wrap: initial !important; width: 100% !important;
  align-items: stretch !important; margin: 0 !important; padding: 0 !important;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder {
  display: block; float: none !important; position: relative; width: 100% !important;
  min-width: 0 !important; max-width: 100% !important;
  margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--bb-op-line) !important;
  border-radius: 12px !important; background: #fff !important;
  box-shadow: none !important;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder:has(> input:checked) {
  border-color: #d2313d !important; background: #fffafb !important;
  box-shadow: 0 0 0 1px #d2313d1c !important;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder > input[type="radio"] {
  position: absolute !important; width: 1px !important; height: 1px !important;
  opacity: 0 !important; margin: 0 !important; pointer-events: none;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder > label {
  position: relative; display: block !important; width: 100% !important;
  min-height: 76px; margin: 0 !important; padding: 18px 58px 18px 20px !important;
  color: #262b34 !important; background: transparent !important;
  text-align: start !important; line-height: 1.75; font-size: 13px;
  cursor: pointer; white-space: normal; overflow-wrap: anywhere;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder > label::before {
  content: ''; position: absolute; inset-inline-start: 20px; top: 25px;
  width: 19px; height: 19px; border: 2px solid #b6bdc6;
  border-radius: 50%; background: #fff;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder:has(> input:checked) > label::before { border: 6px solid #cb303b; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder > label > span:first-child,
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder > label > div > div > span:first-child {
  display: block; color: #242a32; font-weight: 700; font-size: 14px;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder > label .d-block {
  display: block; margin-top: 3px; color: #7e8792 !important; font-weight: 400; font-size: 11px;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .bb-payment-method--online .bb-payment-gateways {
  display: grid !important; grid-template-columns: repeat(auto-fit,minmax(116px,1fr));
  gap: 12px; width: 100%; margin: 0 !important; padding: 0 18px 18px !important;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .bb-payment-method--online:not(:has(> input:checked)) .bb-payment-gateways { display: none !important; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .select_PortBank { margin: 0 !important; min-width: 0; }
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .select_PortBank > label {
  min-width: 0; min-height: 86px; padding: 12px !important;
  border-radius: 10px; border: 1px solid #e6e9ef;
  background: #f9fafc; display: grid; place-items: center;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-choices .select_PortBank > input:checked + label { border-color: #c8313a; background: #fff; box-shadow: inset 0 0 0 1px #c8313a; }
.bb-bazaro-checkout--onepage[dir="ltr"] .bb-checkout-payment-choices .SelectTypePaymentOrder > label { padding-inline-start: 58px !important; padding-inline-end: 20px !important; }

/* The GRID ITEM (not its child card) must be sticky: otherwise the child's
   containing block has the same height as itself and it cannot stick. */
@media (min-width: 992px) {
  .bb-bazaro-checkout--onepage .bb-checkout-layout.row > .bb-checkout-summary-column {
    position: sticky !important; top: 112px !important; /* header (92px) + 20px gap */
    align-self: start; z-index: 3;
  }
  .bb-bazaro-checkout--onepage .bb-checkout-summary-column > .bb-payment-summary {
    position: static !important; top: auto !important;
    max-height: calc(100dvh - 128px); overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain; scrollbar-width: thin;
  }
}
@media (max-width: 991.98px) {
  .bb-bazaro-checkout--onepage .bb-checkout-layout.row > .bb-checkout-summary-column {
    position: static !important; top: auto !important;
  }
  .bb-bazaro-checkout--onepage .bb-checkout-summary-column > .bb-payment-summary { position: static !important; max-height: none !important; overflow: visible !important; }
}

/* The address modal is moved under <body> like checkout/chk1.php; reuse the
   existing shared Bazaro class and backdrop z-index rather than the old UI. */
#modalCart2.bb-onepage-address-modal.bb-checkout-address-modal { z-index: 20050 !important; }
#modalCart2.bb-onepage-address-modal[dir="ltr"] { direction: ltr !important; text-align: left !important; }
#modalCart2.bb-onepage-address-modal[dir="ltr"] .modal-header,
#modalCart2.bb-onepage-address-modal[dir="ltr"] .modal-footer { direction: ltr; }

@media (max-width: 767.98px) {
  .bb-bazaro-checkout--onepage .bb-onepage-options { grid-template-columns: 1fr; }
  .bb-bazaro-checkout--onepage .bb-onepage-days { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bb-bazaro-checkout--onepage .bb-checkout-card__head { padding-inline: 16px !important; }
  .bb-bazaro-checkout--onepage .bb-checkout-card__body { padding: 18px 16px !important; }
}
@media (max-width: 575.98px) {
  .bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .addGiftInFactor { grid-template-columns: 1fr !important; }
  .bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-actions { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-actions input { width: 100% !important; min-width: 0 !important; }
  .bb-bazaro-checkout--onepage .bb-checkout-payment-choices .bb-payment-gateways { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .bb-bazaro-checkout--onepage .bb-onepage-days { gap: 9px; }
  .bb-bazaro-checkout--onepage .bb-checkout-payment-choices .SelectTypePaymentOrder > label { padding-block: 16px !important; }
}
@media (max-width: 359.98px) {
  .bb-bazaro-checkout--onepage .bb-checkout-payment-coupon .bb-live-coupon-actions { grid-template-columns: 1fr; }
  .bb-bazaro-checkout--onepage .bb-onepage-days { grid-template-columns: 1fr; }
}

/* Checkout one-page: clean product/address/payment presentation (2026-11-10).
   Keep these rules strictly in the optional one-page mode. None changes the
   original checkout/1.html or checkout/2.html layout. */
.bb-bazaro-checkout--onepage {
  --bb-op-surface:#fff;
  --bb-op-surface-soft:#f8f9fb;
  --bb-op-accent:#df3038;
  --bb-op-text:#252b35;
  --bb-op-border:#e5e8ed;
}
.bb-bazaro-checkout--onepage .bb-checkout-payment-products .bb-live-order-accordion > .card {
  border:0!important; background:transparent!important; box-shadow:none!important;
}
.bb-bazaro-checkout--onepage .bb-live-order-accordion .card-header {
  background:#f8f9fb!important; border:1px solid var(--bb-op-border)!important;
  border-radius:12px!important; margin-bottom:10px;
}
.bb-bazaro-checkout--onepage .bb-live-order-accordion .card-header a {
  padding:16px 19px!important; min-width:0; color:var(--bb-op-text)!important;
}
.bb-bazaro-checkout--onepage .bb-live-order-accordion .card-header h5 {
  font-size:13px!important; font-weight:700!important; min-width:0; gap:12px;
}
.bb-bazaro-checkout--onepage .bb-live-order-accordion .card-body {
  min-width:0; padding:5px 0 18px!important;
}
.bb-bazaro-checkout--onepage .bb-live-order-accordion .card-body > .d-flex {
  display:grid!important; grid-template-columns:minmax(0,1fr); gap:11px;
  align-items:stretch!important;
}
.bb-bazaro-checkout--onepage .bb-live-order-accordion .item_shoppingCart.bb-op-cart-item {
  display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,155px)!important;
  gap:16px!important; align-items:center!important;
  width:100%!important; min-width:0!important; margin:0!important;
  padding:16px!important; border:1px solid var(--bb-op-border)!important;
  border-radius:14px!important; background:var(--bb-op-surface)!important;
  box-shadow:0 2px 9px rgba(22,32,47,.025)!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__main {
  min-width:0!important; display:grid!important;
  grid-template-columns:98px minmax(0,1fr); gap:15px;
  align-items:start!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__media {
  display:flex!important; flex-direction:column; align-items:center;
  min-width:0!important; width:98px!important; flex:none!important;
  position:static!important; margin:0!important; padding:0!important;
  box-sizing:border-box!important; align-self:start!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__media .img_itemShoppingCart {
  width:98px!important; height:100px!important; max-width:100%;
  border:1px solid #eff0f2!important; background:#fbfbfc!important;
  border-radius:11px!important; overflow:hidden;
  display:grid!important; place-items:center!important;
  margin:0!important; padding:8px!important; box-sizing:border-box!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__media .img_itemShoppingCart img {
  display:block!important; width:100%!important; height:100%!important;
  max-width:100%!important; max-height:100%!important; object-fit:contain!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__media .countTotalProductThisOrder {
  position:static!important; margin-top:8px; width:auto; min-width:30px; height:30px;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__info {
  min-width:0!important; padding:4px 0!important; margin:0!important;
  align-self:start; text-align:start!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__info .cart-txt-title,
.bb-bazaro-checkout--onepage .bb-op-cart-item__info .cart-txt-title a {
  display:block!important; color:var(--bb-op-text)!important;
  font-size:14px!important; font-weight:700!important;
  line-height:1.75!important; overflow-wrap:anywhere; margin-bottom:7px!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__info > .d-flex {
  gap:8px!important; flex-wrap:wrap; min-width:0;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__gift {
  position:static!important; display:inline-flex; align-items:center;
  padding:3px 9px!important; margin:0 0 7px!important;
  width:max-content; max-width:100%; border-radius:7px;
  color:#a32731!important; background:#fff0f1!important;
  font-size:11px!important; font-weight:700; line-height:1.6;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__info > div:not(.cart-txt-title) {
  font-size:12px!important; line-height:1.8!important;
  overflow-wrap:anywhere;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__price {
  min-width:0!important; width:auto!important;
  margin:0!important; padding:0!important;
  display:flex!important; flex-direction:column;
  align-items:flex-end!important; gap:5px;
  text-align:end!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__price > div { max-width:100%; overflow-wrap:anywhere; }
.bb-bazaro-checkout--onepage .bb-op-cart-item__price .cart-price,
.bb-bazaro-checkout--onepage .bb-op-cart-item__price .productTotalPrice {
  font-size:15px!important; color:var(--bb-op-text)!important;
  font-weight:800!important; overflow-wrap:anywhere;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__price .cart-price-discount-unit {
  font-size:11px; padding-inline-start:5px; white-space:normal;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item__price del { font-size:11px!important; }
.bb-bazaro-checkout--onepage .bb-op-cart-item .bb-onepage-qty {
  max-width:100%; width:98px!important; margin:8px 0 0!important;
  justify-content:space-between; padding:4px!important;
}
.bb-bazaro-checkout--onepage .bb-op-cart-item .bb-onepage-qty__button {
  min-width:27px!important; width:27px!important; height:27px!important;
}
.bb-bazaro-checkout--onepage[dir="ltr"] .bb-op-cart-item__price {
  align-items:flex-end!important; text-align:end!important;
}

/* AJAX address cards are rebuilt into accessible, non-nested controls by
   checkout-onepage.js. Unlike the legacy label-with-links layout, editing and
   deleting an address cannot accidentally select another address. */
.bb-bazaro-checkout--onepage .bb-onepage-addresses,
.bb-bazaro-checkout--onepage .bb-onepage-addresses > .col-xl-12 { min-width:0; width:100%; padding:0!important; }
.bb-bazaro-checkout--onepage .bb-onepage-addresses #userAddress {
  display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr));
  gap:13px!important; align-items:stretch; margin:0!important;
  width:100%; min-width:0;
}
.bb-bazaro-checkout--onepage .bb-onepage-addresses #userAddress > .adress-area {
  flex:none!important; width:auto!important; min-width:0!important;
  max-width:none!important; margin:0!important; padding:0!important;
}
.bb-bazaro-checkout--onepage .bb-op-address-card {
  position:relative; display:flex; flex-direction:column;
  min-width:0; width:100%; height:100%; min-height:180px;
  background:#fff; border:1px solid var(--bb-op-border);
  border-radius:14px; overflow:hidden;
  box-shadow:0 2px 14px rgba(15,25,39,.025);
  transition:border-color .15s,box-shadow .15s;
}
.bb-bazaro-checkout--onepage .bb-op-address-card.is-selected,
.bb-bazaro-checkout--onepage .bb-op-address-card:has(input[name="materialExampleRadios0"]:checked) {
  border-color:var(--bb-op-accent); background:#fffafa;
  box-shadow:inset 0 0 0 1px rgba(223,48,56,.24);
}
.bb-bazaro-checkout--onepage .bb-op-address-card.is-unavailable { opacity:.62; }
.bb-bazaro-checkout--onepage .bb-op-address-card > input[type="radio"] {
  position:absolute!important; width:1px!important; height:1px!important;
  opacity:0!important; pointer-events:none;
}
.bb-bazaro-checkout--onepage .bb-op-address__pick {
  display:flex; flex-direction:column; gap:9px; align-items:stretch;
  min-width:0; width:100%; flex:1;
  margin:0; padding:15px 17px; border:0; border-radius:0;
  text-align:start; color:var(--bb-op-text); background:transparent;
  font:inherit; cursor:pointer;
}
.bb-bazaro-checkout--onepage .bb-op-address__pick:focus-visible,
.bb-bazaro-checkout--onepage .bb-op-address-add:focus-visible,
.bb-bazaro-checkout--onepage .bb-op-address__actions a:focus-visible {
  outline:2px solid #d32f3a; outline-offset:-3px;
}
.bb-bazaro-checkout--onepage .bb-op-address__top {
  display:flex; justify-content:space-between; align-items:center; gap:10px;
  font-size:12px; font-weight:800;
}
.bb-bazaro-checkout--onepage .bb-op-address__mark {
  width:19px; height:19px; flex:none;
  border-radius:50%; border:2px solid #aeb6c1; background:#fff;
}
.bb-bazaro-checkout--onepage .is-selected .bb-op-address__mark {
  border:5px solid var(--bb-op-accent);
}
.bb-bazaro-checkout--onepage .bb-op-address__text {
  color:#414955; font-size:12px; font-weight:550;
  line-height:1.85; overflow-wrap:anywhere;
}
.bb-bazaro-checkout--onepage .bb-op-address__detail {
  display:flex; gap:8px; align-items:flex-start; color:#7d8591;
  font-size:11px; line-height:1.6; overflow-wrap:anywhere;
}
.bb-bazaro-checkout--onepage .bb-op-address__detail i { flex:none; width:14px; margin-top:3px; color:#8d96a3; }
.bb-bazaro-checkout--onepage .bb-op-address__actions {
  display:flex; align-items:center; justify-content:flex-start; gap:12px;
  padding:11px 16px; margin-top:auto;
  border-top:1px solid #eef0f3; background:#fafbfc;
}
.bb-bazaro-checkout--onepage .bb-op-address__actions a {
  display:inline-flex; align-items:center; gap:6px;
  color:#4b5563!important; text-decoration:none!important;
  font-size:11px!important; font-weight:650; cursor:pointer;
}
.bb-bazaro-checkout--onepage .bb-op-address__actions a:last-child { color:#b02c36!important; }
.bb-bazaro-checkout--onepage .bb-op-address-add {
  width:100%!important; height:100%!important; min-height:180px;
  margin:0!important; padding:20px 14px!important;
  border:1px dashed #c7ced8!important; border-radius:14px!important;
  background:#fbfcfd!important; box-shadow:none!important;
  display:flex!important; flex-direction:column;
  align-items:center; justify-content:center;
  text-align:center; text-decoration:none!important;
  color:#4e5866!important; gap:10px;
}
.bb-bazaro-checkout--onepage .bb-op-address-add__icon {
  display:grid; place-items:center;
  width:40px; height:40px; border-radius:12px;
  background:#fff0f1; color:#c52d38;
  font-size:24px; line-height:1;
}
.bb-bazaro-checkout--onepage .bb-op-address-add:hover {
  border-color:var(--bb-op-accent)!important; background:#fffafb!important;
}

/* Payment methods: a dedicated one-page markup hierarchy replaces the old
   MDB .form-check/.SelectTypePaymentOrder widgets, without changing the
   backend paymentType, GateWayCoding or PayPortalHide2 field contract. */
.bb-bazaro-checkout--onepage .bb-op-payment-options {
  display:grid!important; grid-template-columns:minmax(0,1fr);
  gap:12px; width:100%; min-width:0; padding:0; margin:0;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card {
  position:relative; display:block; min-width:0; width:100%;
  border:1px solid var(--bb-op-border); border-radius:14px;
  background:#fff; overflow:hidden;
  transition:border-color .15s,box-shadow .15s;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card.is-selected,
.bb-bazaro-checkout--onepage .bb-op-pay-card:has(> .bb-op-pay-card__radio:checked) {
  border-color:var(--bb-op-accent);
  box-shadow:inset 0 0 0 1px rgba(223,48,56,.2);
  background:#fffafa;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card__radio {
  position:absolute!important; inset:0 auto auto 0; width:1px!important;
  height:1px!important; opacity:0!important; pointer-events:none;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card__main {
  position:relative; display:flex; align-items:center;
  gap:14px; min-width:0; padding:18px 17px;
  margin:0!important; text-align:start; cursor:pointer;
  background:transparent; border-radius:0;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card__icon {
  display:grid; place-items:center; flex:none;
  width:45px; height:45px; font-size:17px;
  background:#f5f7f9; color:#414a58; border-radius:12px;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card.is-selected .bb-op-pay-card__icon { background:#fff0f1; color:#c42d38; }
.bb-bazaro-checkout--onepage .bb-op-pay-card__content {
  display:flex; flex-direction:column; gap:4px; min-width:0;
  flex:1 1 auto; overflow-wrap:anywhere;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card__content strong {
  color:var(--bb-op-text); font-size:14px; line-height:1.65; font-weight:800;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card__content small {
  color:#7e8792; font-size:12px; line-height:1.7;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card__indicator {
  width:20px; height:20px; flex:none; background:#fff;
  border:2px solid #b5bdc8; border-radius:50%;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card.is-selected .bb-op-pay-card__indicator { border:6px solid var(--bb-op-accent); }
.bb-bazaro-checkout--onepage .bb-op-pay-card__main:focus-visible,
.bb-bazaro-checkout--onepage .bb-op-pay-card:focus-within { outline:2px solid #d52e3a; outline-offset:2px; }
.bb-bazaro-checkout--onepage .bb-op-pay-card__notice { padding:0 17px 15px; }
.bb-bazaro-checkout--onepage .bb-op-pay-card__notice .alert { padding:11px; margin:0; border-radius:9px; font-size:12px; }
.bb-bazaro-checkout--onepage .bb-op-gateway-area {
  border-top:1px solid #eceef2; padding:15px 17px 18px;
  background:#fff;
}
.bb-bazaro-checkout--onepage .bb-op-pay-card--online:not(.is-selected) .bb-op-gateway-area {
  display:none!important;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-heading {
  color:#495462; font-size:12px; font-weight:750;
  margin-bottom:13px;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list {
  display:grid!important; grid-template-columns:repeat(auto-fit,minmax(135px,1fr));
  gap:11px; width:100%; min-width:0;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list > .select_PortBank {
  float:none!important; display:block!important; position:relative;
  min-width:0!important; width:100%!important;
  margin:0!important; padding:0!important;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list > .select_PortBank > input[type="radio"] {
  position:absolute!important; width:1px!important; height:1px!important;
  opacity:0!important; pointer-events:none;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list > .select_PortBank > label {
  display:flex!important; min-height:100px!important;
  align-items:center; justify-content:center;
  min-width:0; width:100%; height:100%;
  padding:12px!important; margin:0!important;
  border:1px solid #e4e7ed!important; border-radius:12px!important;
  background:#f9fafb!important; box-shadow:none!important;
  cursor:pointer;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list .select_PortBank:has(> input:checked) > label {
  border-color:var(--bb-op-accent)!important;
  background:#fffafa!important; box-shadow:inset 0 0 0 1px var(--bb-op-accent)!important;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list .img_select_bank {
  display:grid!important; place-items:center;
  width:100%; min-width:0; max-width:100%; background:transparent!important;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list .img_select_bank img {
  display:block; max-width:100%!important;
  width:auto!important; height:auto!important; max-height:57px!important;
  object-fit:contain;
}
.bb-bazaro-checkout--onepage .bb-op-gateway-list .img_select_bank.bb-op-gateway--fallback img {
  width:48px!important; height:48px!important; max-height:48px!important;
  opacity:.66;
}

/* Strong and consistent modal styling when Bootstrap moves the dialog outside
   the checkout root; all selectors explicitly require the one-page modal tag. */
#modalCart2.bb-onepage-address-modal.bb-checkout-address-modal .modal-dialog {
  max-width:860px!important; width:calc(100% - 30px)!important;
}
#modalCart2.bb-onepage-address-modal .modal-header {
  display:flex!important; align-items:center!important; justify-content:space-between!important;
  padding:20px 24px!important; border-bottom:1px solid #e7e9ed!important;
  background:#fff!important;
}
#modalCart2.bb-onepage-address-modal .modal-header h3 {
  margin:0!important; padding:0!important; border:0!important;
  color:#242b35!important; font-size:19px!important;
  font-weight:800!important; line-height:1.6!important;
  background:transparent!important;
}
#modalCart2.bb-onepage-address-modal .bb-op-modal-close {
  flex:none; width:34px; height:34px; padding:0;
  display:grid; place-items:center;
  border:1px solid #e3e7ed; border-radius:9px;
  color:#636f7e; background:#f7f8fa;
  font-size:21px; cursor:pointer;
}
#modalCart2.bb-onepage-address-modal .modal-body { padding:20px 24px!important; }
#modalCart2.bb-onepage-address-modal .modal-body > .row { margin:0 -8px!important; }
#modalCart2.bb-onepage-address-modal .modal-body > .row > [class*="col-"] {
  padding:0 8px!important; min-width:0;
}
#modalCart2.bb-onepage-address-modal .modal-footer {
  padding:16px 24px!important; border-top:1px solid #ebedf1!important;
  display:flex; align-items:center; justify-content:flex-end; gap:10px;
}
#modalCart2.bb-onepage-address-modal .modal-footer .btn {
  border-radius:10px!important; box-shadow:none!important;
  min-width:105px; min-height:43px; margin:0!important;
  padding:10px 20px!important; font-size:13px!important;
}
#modalCart2.bb-onepage-address-modal .modal-footer .btn-primary {
  background:#222b34!important; border-color:#222b34!important; color:#fff!important;
}
#modalCart2.bb-onepage-address-modal .modal-footer .btn-outline-primary {
  border:1px solid #d8dce3!important; color:#424b58!important; background:#fff!important;
}
#modalCart2.bb-onepage-address-modal #map { min-width:0; max-width:100%; border-radius:12px; overflow:hidden; }
#modalCart2.bb-onepage-address-modal .md-form label { font-size:12px!important; font-weight:700; line-height:1.6!important; }
#modalCart2.bb-onepage-address-modal .md-form input.form-control,
#modalCart2.bb-onepage-address-modal .select-wrapper input.select-dropdown {
  border:1px solid #dfe3e9!important; border-radius:10px!important;
  background:#fff!important; box-shadow:none!important;
  min-height:46px!important; font-size:13px!important;
}
@media(max-width:991.98px) {
  .bb-bazaro-checkout--onepage .bb-onepage-addresses #userAddress { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:767.98px) {
  .bb-bazaro-checkout--onepage .bb-live-order-accordion .item_shoppingCart.bb-op-cart-item {
    grid-template-columns:minmax(0,1fr)!important; gap:12px!important;
  }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__price {
    width:100%!important; align-items:flex-end!important;
    border-top:1px solid #eef0f3; padding-top:11px!important;
  }
  .bb-bazaro-checkout--onepage .bb-live-order-accordion .item_shoppingCart > .py-2.bb-op-cart-item__price {
    margin-inline-start:0!important;
  }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__main { grid-template-columns:94px minmax(0,1fr); }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__media { width:94px!important; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__media .img_itemShoppingCart { width:94px!important; height:94px!important; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item .bb-onepage-qty { width:94px!important; }
}
@media(max-width:575.98px) {
  .bb-bazaro-checkout--onepage .bb-live-order-accordion .item_shoppingCart.bb-op-cart-item { padding:12px!important; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__main { grid-template-columns:90px minmax(0,1fr); gap:11px; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__media { width:90px!important; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__media .img_itemShoppingCart { width:90px!important; height:90px!important; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item .bb-onepage-qty { width:90px!important; padding:3px!important; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item .bb-onepage-qty__button { min-width:22px!important; width:22px!important; height:27px!important; }
  .bb-bazaro-checkout--onepage .bb-op-cart-item__info .cart-txt-title a { font-size:12px!important; }
  .bb-bazaro-checkout--onepage .bb-op-gateway-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #modalCart2.bb-onepage-address-modal .modal-header { padding:16px!important; }
  #modalCart2.bb-onepage-address-modal .modal-body { padding:14px 16px!important; }
  #modalCart2.bb-onepage-address-modal .modal-footer { padding:14px 16px!important; }
}
@media(max-width:359.98px) {
  .bb-bazaro-checkout--onepage .bb-op-gateway-list { grid-template-columns:minmax(0,1fr); }
  .bb-bazaro-checkout--onepage .bb-op-pay-card__main { padding:14px 12px; gap:9px; }
  .bb-bazaro-checkout--onepage .bb-op-pay-card__icon { width:38px; height:38px; }
}

/* Guest checkout: inline recipient/address form, no account or address modal required. */
.bb-bazaro-checkout--onepage .bb-onepage-guest {
    padding: 20px;
    border: 1px solid #e1e8ec;
    border-radius: 16px;
    background: #fbfdfe;
    margin-bottom: 22px;
}
.bb-bazaro-checkout--onepage .bb-onepage-guest__heading { margin-bottom: 18px; }
.bb-bazaro-checkout--onepage .bb-onepage-guest__heading strong { display: block; font-size: 16px; color: #173a46; }
.bb-bazaro-checkout--onepage .bb-onepage-guest__heading p { margin: 6px 0 0; font-size: 13px; color: #667b83; line-height: 1.8; }
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid > label { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; }
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid > label > span { font-size: 13px; font-weight: 600; color: #314950; }
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid input,
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid select,
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid textarea {
    width: 100%; min-width: 0; box-sizing: border-box;
    border: 1px solid #d4dee3; border-radius: 10px; padding: 11px 13px;
    background: #fff; color: #233c44; font: inherit; font-size: 14px;
    outline: 0; transition: border-color .15s ease, box-shadow .15s ease;
}
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid textarea { resize: vertical; }
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid :is(input,select,textarea):focus { border-color: #008f95; box-shadow: 0 0 0 3px rgba(0,143,149,.1); }
.bb-bazaro-checkout--onepage .bb-onepage-guest__grid :is(input,select,textarea):disabled { background: #f1f5f6; }
.bb-bazaro-checkout--onepage .bb-onepage-guest__wide { grid-column: 1 / -1; }
@media (max-width: 620px) {
    .bb-bazaro-checkout--onepage .bb-onepage-guest { padding: 15px; }
    .bb-bazaro-checkout--onepage .bb-onepage-guest__grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
    .bb-bazaro-checkout--onepage .bb-onepage-guest__wide { grid-column: auto; }
}


/* Clear all cart items - scoped to the one-page checkout. */
.bb-bazaro-checkout--onepage .bb-onepage-cart-head-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-inline-start:auto}
.bb-bazaro-checkout--onepage .bb-onepage-cart-clear{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border:1px solid #f1c8cc!important;background:#fff7f8!important;color:#ab2a34!important;border-radius:9px;padding:8px 12px;font-size:12px;font-weight:700;line-height:1.5;cursor:pointer}
.bb-bazaro-checkout--onepage .bb-onepage-cart-clear:hover{background:#ffebed!important;border-color:#e4a3a9!important}
.bb-bazaro-checkout--onepage .bb-onepage-cart-clear:focus-visible{outline:2px solid #bf2630;outline-offset:2px}
.bb-bazaro-checkout--onepage .bb-onepage-cart-clear:disabled{opacity:.55;cursor:wait}
.bb-onepage-empty{display:grid;place-items:center;min-height:55vh;padding:36px 16px}
.bb-onepage-empty__card{width:100%;max-width:540px;padding:46px 24px;border-radius:18px;border:1px solid #e8e9ed;box-shadow:0 8px 28px rgba(25,34,49,.055);background:#fff;text-align:center}
.bb-onepage-empty__card>i{font-size:40px;color:#a3aab4;margin-bottom:16px}
.bb-onepage-empty__card h1{font-size:22px;font-weight:800;color:#242b35;margin:0 0 12px}
.bb-onepage-empty__card p{font-size:14px;color:#737c88;margin-bottom:22px}
.bb-onepage-empty__link{display:inline-block;border-radius:10px;padding:12px 22px;background:#cf242c;color:#fff!important;font-weight:700;text-decoration:none}
.bb-onepage-empty__link:hover{background:#a81e27}
@media(max-width:575px){.bb-bazaro-checkout--onepage .bb-onepage-cart-head-actions{width:100%;justify-content:space-between}.bb-bazaro-checkout--onepage .bb-onepage-cart-clear{padding:7px 10px}}

/* Reusable clear-cart modal and notify (classic cart + one-page checkout).
   The native dialog is appended to body, outside clipping/stacking contexts. */
.bb-cart-clear-dialog:not([open]) { display: none !important; }
.bb-cart-clear-dialog[open] {
    display: block; box-sizing: border-box; position: fixed;
    width: min(430px, calc(100vw - 32px)); max-width: calc(100vw - 32px);
    max-height: calc(100vh - 40px); margin: auto; padding: 0;
    overflow: auto; border: 1px solid #e8e9ed; border-radius: 18px;
    background: #fff; box-shadow: 0 28px 72px rgba(20, 24, 38, .24);
    color: #252a33; text-align: start; font: inherit;
}
.bb-cart-clear-dialog::backdrop { background: rgba(18, 24, 34, .60); backdrop-filter: blur(2px); }
.bb-cart-clear-dialog__content { position: relative; padding: 29px 28px 26px; text-align: center; }
.bb-cart-clear-dialog__close {
    position: absolute; inset-block-start: 14px; inset-inline-end: 16px;
    display: grid; place-items: center; width: 30px; height: 30px;
    padding: 0; border: 0; border-radius: 8px;
    background: #f5f6f7; color: #7b838d; cursor: pointer;
    font: inherit; font-size: 23px; line-height: 1;
}
.bb-cart-clear-dialog__close:hover { background: #ededf0; color: #343943; }
.bb-cart-clear-dialog__icon {
    display: grid; place-items: center; width: 58px; height: 58px;
    margin: 0 auto 17px; border-radius: 16px;
    background: #fff1f2; color: #d5313c; font-size: 24px;
}
.bb-cart-clear-dialog h2 {
    margin: 0 0 11px; color: #20242c;
    font: inherit; font-size: 19px; line-height: 1.45; font-weight: 800;
}
.bb-cart-clear-dialog p {
    margin: 0 0 24px; color: #717986;
    font-size: 13px; line-height: 2;
}
.bb-cart-clear-dialog__actions { display: flex; gap: 10px; }
.bb-cart-clear-dialog__actions button {
    flex: 1; min-width: 0; min-height: 43px; padding: 10px 12px;
    border-radius: 10px; font: inherit; font-size: 13px; font-weight: 700;
    cursor: pointer; transition: background .15s, border-color .15s;
}
.bb-cart-clear-dialog__remove { color: #fff; background: #cd2733; border: 1px solid #cd2733; }
.bb-cart-clear-dialog__remove:hover { background: #ab1f29; border-color: #ab1f29; }
.bb-cart-clear-dialog__cancel { color: #353e4a; background: #f5f6f8; border: 1px solid #e6e8ed; }
.bb-cart-clear-dialog__cancel:hover { background: #e9ebef; }
.bb-cart-clear-dialog__actions button:disabled { cursor: wait; opacity: .6; }
.bb-cart-clear-dialog button:focus-visible { outline: 2px solid #a6222b; outline-offset: 3px; }
.bb-cart-clear-toast {
    position: fixed; inset-block-start: 24px; inset-inline-end: 24px;
    z-index: 2147483000; box-sizing: border-box;
    width: max-content; max-width: min(370px, calc(100vw - 32px));
    padding: 12px 16px; border: 1px solid #3b414a;
    border-inline-start: 3px solid #d33c45; border-radius: 10px;
    background: #20242d; box-shadow: 0 14px 35px rgba(0,0,0,.20);
    color: #fff; font: inherit; font-size: 13px; line-height: 1.8;
}
.bb-cart-clear-toast--success { border-inline-start-color: #23b377; }
@media (max-width: 480px) {
    .bb-cart-clear-dialog__content { padding: 26px 19px 20px; }
    .bb-cart-clear-dialog__actions { flex-direction: column; }
    .bb-cart-clear-toast { inset-block-start: 12px; inset-inline-end: 16px; }
}
