/* ==========================================================================
   Wholesale Quick Order — styles
   Namespaced with .wqo- to avoid theme collisions.
   Selectors anchored to #wqo-app / #wqo-app-scope where needed for specificity
   against theme stylesheets (e.g. WoodMart) that may load after this file.
   ========================================================================== */

#wqo-app, #wqo-app *, .wqo-bottom-bar-wrap, .wqo-bottom-bar-wrap *,
.wqo-mini-cart-drawer, .wqo-mini-cart-drawer *, .wqo-mini-cart-overlay,
.wqo-toast {
  box-sizing: border-box !important;
}

#wqo-app {
  --wqo-black: #121212;
  --wqo-red: #ab2328;
  --wqo-red-dark: #8f1c20;
  --wqo-white: #FFFFFF;
  --wqo-offwhite: #F7F7F8;
  --wqo-border: #E5E5E8;
  --wqo-muted: #898A90;
  --wqo-green: #1C8A4B;

  font-family: inherit;
  color: var(--wqo-black);
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 0 6rem;
  text-align: left;
  line-height: normal;
}

#wqo-app ul, #wqo-app li { list-style: none !important; margin: 0; padding: 0; }
#wqo-app img { max-width: 100%; height: auto; }

/* ── LOGIN NOTICE ── */
.wqo-login-notice {
  background: #fff;
  border: 1px solid #E5E5E8;
  border-left: 4px solid #ab2328;
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  max-width: 600px;
  margin: 2rem auto;
}
.wqo-login-notice p { margin-bottom: 1rem; color: #555; }
.wqo-login-btn {
  display: inline-block;
  background: #ab2328;
  color: #fff !important;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.wqo-login-btn:hover { background: #8f1c20; }

/* ── FORM HEADER (dark band) + PACK GUIDE ── */
/* The whole form is one bordered card; header, controls, and list are
   sections of it rather than separate stacked blocks. */
#wqo-app.wqo-wrap {
  background: var(--wqo-white);
  border: 1px solid var(--wqo-border);
  border-radius: 12px;
  padding: 0 !important;
  margin-top: 0 !important;
}
#wqo-app .wqo-header {
  display: flex;
  justify-content: center;
  background: #141414;
  border-radius: 12px 12px 0 0;
  padding: 14px 20px;
  /* Overlap the card's 1px border on top/sides so the dark band sits
     perfectly flush with no white seam or gap. */
  margin: -1px -1px 0 !important;
}
#wqo-app .wqo-unit-guide {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  max-width: 100%;
}
#wqo-app .wqo-guide-item {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
  min-width: 0;
}
#wqo-app .wqo-guide-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.85);
}
#wqo-app .wqo-guide-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
#wqo-app .wqo-guide-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--wqo-guide-color, #ffffff);
  line-height: 1.3;
}
#wqo-app .wqo-guide-text strong {
  font-weight: 600;
  color: var(--wqo-guide-color, #ffffff);
}
#wqo-app .wqo-guide-text span {
  font-weight: 500;
  color: var(--wqo-guide-color, #ffffff);
  opacity: 0.68;
}
#wqo-app .wqo-guide-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  #wqo-app .wqo-header { padding: 14px 16px; }
  #wqo-app .wqo-controls-row { padding: 12px 12px 0; }
  #wqo-app .wqo-results-bar { padding: 0 12px; }
  #wqo-app .wqo-top-controls { padding: 0 12px; }
  #wqo-app .wqo-unit-guide {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
  }
  #wqo-app .wqo-guide-divider {
    width: 100%;
    height: 1px;
  }
  #wqo-app .wqo-guide-item { white-space: normal; }
  #wqo-app .wqo-guide-icon { width: 30px; height: 30px; }
  #wqo-app .wqo-guide-icon svg { width: 14px; height: 14px; }
}

/* ── PRODUCT SEARCH ── */
#wqo-app .wqo-controls-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
  padding: 14px 16px 0;
  margin-bottom: 0.75rem;
}
/* DOM order is search-first (mobile stacking); on desktop the grid
   places the toggle in column 1 and search in column 2. */
#wqo-app .wqo-controls-row .wqo-search-wrap { grid-column: 2; grid-row: 1; }
#wqo-app .wqo-controls-row .wqo-unit-toggle { grid-column: 1; grid-row: 1; }

#wqo-app .wqo-search-wrap {
  position: relative;
  display: flex !important;
  align-items: center;
  width: 100%;
  min-width: 0;
}
#wqo-app .wqo-search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wqo-muted);
  display: inline-flex;
  pointer-events: none;
}
#wqo-app .wqo-search-icon svg { display: block; width: 15px; height: 15px; }
#wqo-app .wqo-search-input {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 1rem 0 2.35rem !important;
  background: var(--wqo-white) !important;
  border: 1px solid var(--wqo-border) !important;
  border-radius: 999px !important;
  color: var(--wqo-black) !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  box-shadow: none !important;
  outline: none !important;
}
#wqo-app .wqo-search-input::placeholder { color: var(--wqo-muted) !important; opacity: 0.9; }
#wqo-app .wqo-search-input:focus {
  border-color: var(--wqo-red) !important;
  box-shadow: 0 0 0 3px rgba(171,35,40,0.08) !important;
}

/* ── TOP CONTROLS ── */
#wqo-app .wqo-top-controls {
  padding: 0 16px;
  display: flex !important;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#wqo-app .wqo-ctrl-btn {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem !important;
  background: var(--wqo-white) !important;
  border: 1.5px solid var(--wqo-border) !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--wqo-black) !important;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
  user-select: none;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
  min-height: 0 !important;
}
#wqo-app .wqo-ctrl-btn:hover { border-color: var(--wqo-red) !important; background: var(--wqo-white) !important; color: var(--wqo-black) !important; }
#wqo-app .wqo-ctrl-btn.wqo-active-filter { border-color: var(--wqo-black) !important; background: var(--wqo-black) !important; color: var(--wqo-white) !important; }
#wqo-app .wqo-chevron { font-size: 0.6rem; opacity: 0.5; transition: transform 0.15s; }
#wqo-app .wqo-ctrl-btn.wqo-open .wqo-chevron { transform: rotate(180deg); }

#wqo-app .wqo-ctrl-badge {
  background: var(--wqo-red) !important;
  color: white !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  border-radius: 100px !important;
  padding: 1px 5px !important;
}

/* ── CATEGORY TOGGLE (segmented, no All — empty selection = show everything) ── */
#wqo-app .wqo-unit-toggle {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#wqo-app .wqo-unit-opt {
  appearance: none;
  background: var(--wqo-white) !important;
  border: 1px solid var(--wqo-border) !important;
  border-radius: 999px !important;
  padding: 0.48rem 1rem !important;
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--wqo-black) !important;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  line-height: normal !important;
  box-shadow: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  min-height: 0 !important;
  height: auto !important;
  width: auto !important;
}
#wqo-app .wqo-unit-opt:hover { border-color: var(--wqo-black) !important; background: var(--wqo-white) !important; color: var(--wqo-black) !important; }
#wqo-app .wqo-unit-opt:focus-visible { outline: 2px solid var(--wqo-black) !important; outline-offset: 1px; }
#wqo-app .wqo-unit-opt.wqo-active {
  background: var(--wqo-black) !important;
  border-color: var(--wqo-black) !important;
  color: var(--wqo-white) !important;
}
#wqo-app .wqo-unit-opt.wqo-active:hover { background: var(--wqo-black) !important; border-color: var(--wqo-black) !important; color: var(--wqo-white) !important; }
#wqo-app .wqo-opt-icon { display: inline-flex; flex-shrink: 0; }
#wqo-app .wqo-opt-icon svg { width: 15px; height: 15px; display: block; }

/* Mobile + tablet: the controls row stacks — search first (DOM order),
   toggle below as a full-width 2×2 grid. Optional dropdowns split 50/50. */
@media (max-width: 1024px) {
  #wqo-app .wqo-controls-row {
    grid-template-columns: 1fr;
  }
  #wqo-app .wqo-controls-row .wqo-search-wrap { grid-column: 1; grid-row: 1; }
  #wqo-app .wqo-controls-row .wqo-unit-toggle { grid-column: 1; grid-row: 2; }

  #wqo-app .wqo-top-controls {
    gap: 0.5rem;
  }
  #wqo-app .wqo-dropdown-wrap {
    flex: 1 1 calc(50% - 0.25rem);
    display: block !important;
    min-width: 0;
  }
  #wqo-app .wqo-dropdown-wrap .wqo-ctrl-btn {
    width: 100% !important;
    justify-content: space-between;
  }
  #wqo-app .wqo-unit-toggle {
    width: 100%;
    flex-wrap: wrap;
  }
  #wqo-app .wqo-unit-opt {
    flex: 1 1 calc(50% - 4px);
    text-align: center;
    white-space: nowrap;
  }
}

/* ── DROPDOWNS ── */
#wqo-app .wqo-dropdown-wrap { position: relative; display: inline-block; }

#wqo-app .wqo-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  background: var(--wqo-white) !important;
  border: 1.5px solid var(--wqo-border) !important;
  border-radius: 10px !important;
  padding: 0.5rem !important;
  min-width: 210px !important;
  max-height: 320px;
  overflow-y: auto;
  z-index: 9999 !important;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12) !important;
  display: none;
  flex-direction: column;
  gap: 1px;
}
#wqo-app .wqo-dropdown.wqo-open { display: flex !important; }

#wqo-app .wqo-dropdown-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 7px !important;
  font-size: 0.8rem !important;
  font-weight: 500 !important;
  color: var(--wqo-black) !important;
  cursor: pointer;
  transition: background 0.1s;
  background: transparent !important;
}
#wqo-app .wqo-dropdown-item:hover { background: var(--wqo-offwhite) !important; }
#wqo-app .wqo-dropdown-item.selected { background: var(--wqo-black) !important; color: var(--wqo-white) !important; }
#wqo-app .wqo-count { font-size: 0.68rem; color: var(--wqo-muted); }
#wqo-app .wqo-dropdown-item.selected .wqo-count { color: rgba(255,255,255,0.5); }

/* ── RESULTS BAR ── */
#wqo-app .wqo-results-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding: 0 16px;
}
#wqo-app .wqo-results-count { font-size: 0.78rem !important; color: var(--wqo-muted) !important; font-weight: 500 !important; }
#wqo-app .wqo-clear-filters {
  font-size: 0.75rem !important;
  color: var(--wqo-red) !important;
  background: none !important;
  border: none !important;
  cursor: pointer;
  font-weight: 600 !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  line-height: normal !important;
}
#wqo-app .wqo-clear-filters:hover { text-decoration: underline; }

/* ── PRODUCT LIST ── */
#wqo-app .wqo-product-list {
  background: var(--wqo-white) !important;
  border: none !important;
  border-top: 1px solid var(--wqo-border) !important;
  border-radius: 0 0 11px 11px !important;
  overflow: hidden;
}

#wqo-app .wqo-cat-divider {
  display: flex !important;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.125rem !important;
  background: var(--wqo-offwhite) !important;
  font-weight: 700 !important;
  font-size: 0.76rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em;
  color: var(--wqo-black) !important;
  border-top: 1px solid var(--wqo-border) !important;
  border-bottom: 1px solid var(--wqo-border) !important;
}
#wqo-app .wqo-cat-divider::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 1rem;
  background: var(--wqo-black) !important;
  border-radius: 2px;
  flex-shrink: 0;
}
#wqo-app .wqo-cat-divider-name { flex: 1; }
#wqo-app .wqo-cat-divider-count {
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0;
  color: var(--wqo-black) !important;
  background: var(--wqo-white) !important;
  border: 1px solid var(--wqo-border) !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  white-space: nowrap;
}

#wqo-app .wqo-product-item {
  display: grid !important;
  grid-template-columns: 22px 56px 1fr auto !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.125rem !important;
  border-bottom: 1px solid var(--wqo-border) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  transition: background 0.1s;
  cursor: pointer;
}
#wqo-app .wqo-item-actions { cursor: default; }
#wqo-app .wqo-product-item:last-child { border-bottom: none !important; }
#wqo-app .wqo-product-item:hover { background: #fafafa !important; }
#wqo-app .wqo-product-item.wqo-checked { background: #fdf4f5 !important; }

#wqo-app .wqo-item-check {
  width: 19px !important;
  height: 19px !important;
  border: 2px solid var(--wqo-border) !important;
  border-radius: 5px !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
  background: var(--wqo-white) !important;
  font-size: 0.65rem;
  color: white;
}
#wqo-app .wqo-item-check.wqo-checked { background: var(--wqo-red) !important; border-color: var(--wqo-red) !important; }

#wqo-app .wqo-item-img {
  width: 56px !important;
  height: 56px !important;
  border-radius: 8px !important;
  background: var(--wqo-offwhite) !important;
  border: 1px solid var(--wqo-border) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
#wqo-app .wqo-item-img img { width: 100% !important; height: 100% !important; object-fit: contain !important; padding: 4px !important; background: var(--wqo-white) !important; margin: 0 !important; border: none !important; border-radius: 0 !important; }

#wqo-app .wqo-item-info { min-width: 0; }

#wqo-app .wqo-item-name {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--wqo-black) !important;
  line-height: 1.35 !important;
  word-break: break-word;
  margin: 0 !important;
}

#wqo-app .wqo-item-price { font-size: 0.95rem !important; font-weight: 700 !important; color: var(--wqo-price-color, var(--wqo-black)) !important; margin-top: 5px !important; display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; }
#wqo-app .wqo-ex-vat {
  font-size: 0.62rem !important;
  font-weight: 500 !important;
  color: var(--wqo-muted) !important;
  letter-spacing: 0.02em;
  line-height: 1 !important;
  white-space: nowrap;
}
#wqo-app .wqo-item-price-unit {
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em;
  padding: 2px 7px !important;
  border-radius: 5px !important;
  line-height: 1.4 !important;
  background: var(--wqo-offwhite) !important;
  color: var(--wqo-muted) !important;
}
#wqo-app .wqo-unit-box,
#wqo-app .wqo-unit-carton {
  background: var(--wqo-offwhite) !important;
  color: #555555 !important;
  border: 1px solid var(--wqo-border) !important;
}

#wqo-app .wqo-out-of-stock {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wqo-red);
  margin-top: 4px;
}

#wqo-app .wqo-item-actions {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

#wqo-app .wqo-qty-stepper {
  display: flex !important;
  align-items: center;
  border: 1.5px solid var(--wqo-border) !important;
  border-radius: 8px !important;
  overflow: hidden;
  background: var(--wqo-white) !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
}

#wqo-app .wqo-qty-btn {
  width: 32px !important;
  height: 38px !important;
  border: none !important;
  background: transparent !important;
  font-size: 1.05rem !important;
  color: var(--wqo-muted) !important;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.1s;
  flex-shrink: 0;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-transform: none !important;
  min-width: 0 !important;
}
#wqo-app .wqo-qty-btn:hover { background: var(--wqo-offwhite) !important; color: var(--wqo-black) !important; }
#wqo-app .wqo-qty-btn:disabled { opacity: 0.4; cursor: not-allowed; }

#wqo-app .wqo-qty-input {
  width: 40px !important;
  height: 38px !important;
  border: none !important;
  border-left: 1px solid var(--wqo-border) !important;
  border-right: 1px solid var(--wqo-border) !important;
  border-radius: 0 !important;
  text-align: center !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--wqo-black) !important;
  background: var(--wqo-white) !important;
  outline: none !important;
  box-shadow: none !important;
  -moz-appearance: textfield;
  padding: 0 !important;
  margin: 0 !important;
}
#wqo-app .wqo-qty-input::-webkit-inner-spin-button,
#wqo-app .wqo-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
#wqo-app .wqo-qty-input:focus { background: #fdf4f5 !important; border-color: var(--wqo-border) !important; }

#wqo-app .wqo-btn-add-row {
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 1.1rem !important;
  background: var(--wqo-red) !important;
  color: var(--wqo-white) !important;
  border: 1px solid var(--wqo-red) !important;
  border-radius: 8px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  min-width: 72px;
  box-shadow: none !important;
  width: auto !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box !important;
}
#wqo-app .wqo-btn-add-row:hover { background: var(--wqo-red-dark) !important; border-color: var(--wqo-red-dark) !important; color: var(--wqo-white) !important; }
#wqo-app .wqo-btn-add-row.wqo-added { background: var(--wqo-green) !important; color: white !important; }
#wqo-app .wqo-btn-add-row:disabled { opacity: 0.5; cursor: not-allowed; background: var(--wqo-muted) !important; }

#wqo-app .wqo-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--wqo-muted) !important;
  font-size: 0.875rem !important;
  background: var(--wqo-white) !important;
  border-radius: 12px !important;
  border: 1px solid var(--wqo-border) !important;
}

/* ── FLOATING BOTTOM BAR ── */
.wqo-bottom-bar-wrap {
  position: fixed !important;
  bottom: 0 !important; left: 0 !important; right: 0 !important;
  display: flex !important;
  justify-content: center;
  padding: 0.875rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  pointer-events: none;
  z-index: 99999 !important;
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
  margin: 0 !important;
}
.wqo-bottom-bar-wrap.wqo-visible { transform: translateY(0); pointer-events: all; }

.wqo-bottom-bar {
  background: #121212 !important;
  border-radius: 12px !important;
  padding: 0.875rem 1.125rem !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.35) !important;
}

.wqo-bar-info { display: flex !important; flex-direction: column; gap: 1px; }
.wqo-bar-count { font-size: 0.7rem !important; color: rgba(255,255,255,0.55) !important; font-weight: 600 !important; text-transform: uppercase !important; letter-spacing: 0.06em; margin: 0 !important; }
.wqo-bar-total { font-size: 1.15rem !important; font-weight: 800 !important; color: white !important; margin: 0 !important; }

.wqo-bar-actions { display: flex !important; gap: 0.5rem; align-items: center; }

.wqo-btn-add-selected {
  display: flex !important;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem !important;
  background: rgba(255,255,255,0.1) !important;
  color: white !important;
  border: 1.5px solid rgba(255,255,255,0.2) !important;
  border-radius: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  box-shadow: none !important;
  text-transform: none !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
}
.wqo-btn-add-selected:hover { background: rgba(255,255,255,0.18) !important; color: white !important; }
.wqo-btn-add-selected:disabled { opacity: 0.5; cursor: not-allowed; }

.wqo-btn-checkout {
  padding: 0.6rem 1.2rem !important;
  background: #ab2328 !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
  box-shadow: none !important;
  text-transform: none !important;
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
}
.wqo-btn-checkout:hover { background: #8f1c20 !important; color: white !important; }

/* ── TOAST ── */
.wqo-toast {
  position: fixed !important;
  top: 20px !important; left: 50% !important;
  transform: translateX(-50%) translateY(-8px);
  background: #121212 !important;
  color: white !important;
  padding: 0.5rem 1.125rem !important;
  border-radius: 100px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  z-index: 999999 !important;
  opacity: 0;
  transition: all 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25) !important;
  margin: 0 !important;
}
.wqo-toast.wqo-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── MINI CART DRAWER ── */
.wqo-mini-cart-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(0,0,0,0.45) !important;
  z-index: 99998 !important;
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wqo-mini-cart-overlay.wqo-open { display: block; opacity: 1; }

.wqo-mini-cart-drawer {
  position: fixed !important;
  top: 0 !important; right: 0 !important;
  bottom: 0 !important;
  width: 100%;
  max-width: 380px;
  background: white !important;
  z-index: 99999 !important;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  display: flex !important;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.15) !important;
  margin: 0 !important;
}
.wqo-mini-cart-drawer.wqo-open { transform: translateX(0); }

.wqo-mini-cart-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.25rem !important;
  border-bottom: 1px solid #E5E5E8 !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
}
.wqo-mini-cart-close {
  background: none !important;
  border: none !important;
  font-size: 1.1rem !important;
  cursor: pointer;
  color: #898A90 !important;
  line-height: 1 !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.wqo-mini-cart-close:hover { color: #121212 !important; }

.wqo-mini-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.wqo-mini-cart-body .woocommerce-mini-cart__buttons a {
  display: block;
  text-align: center;
  margin-top: 0.5rem;
  padding: 0.7rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ── MOBILE ── */
@media (max-width: 600px) {
  /* Two-row grid: top row = check + image + info; the actions wrap to a
     second row that spans from the image column to the right edge, so the
     stepper and Add button sit together on one full-width baseline. */
  #wqo-app .wqo-product-item {
    grid-template-columns: 20px 52px 1fr !important;
    grid-template-areas:
      "check image info"
      "actions actions actions" !important;
    row-gap: 0.65rem !important;
    column-gap: 0.65rem !important;
    padding: 0.85rem 0.95rem !important;
    align-items: center;
  }
  #wqo-app .wqo-item-check { grid-area: check; }
  #wqo-app .wqo-item-img { grid-area: image; width: 52px !important; height: 52px !important; }
  #wqo-app .wqo-item-info { grid-area: info; }
  #wqo-app .wqo-item-name { font-size: 0.86rem !important; }

  #wqo-app .wqo-item-actions {
    grid-area: actions;
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
  }
  #wqo-app .wqo-qty-stepper {
    width: 104px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 104px !important;
  }
  #wqo-app .wqo-btn-add-row {
    width: 82px !important;
    min-width: 82px !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    flex: 0 0 82px !important;
    padding: 0 10px !important;
    line-height: 1 !important;
    font-size: 0.72rem !important;
  }
  #wqo-app .wqo-qty-btn { height: 36px !important; width: 32px !important; font-size: 1rem !important; }
  #wqo-app .wqo-qty-input { height: 36px !important; width: 38px !important; }

  #wqo-app .wqo-bottom-bar { flex-direction: column; gap: 0.625rem; }
  #wqo-app .wqo-bar-actions { width: 100%; }
  #wqo-app .wqo-btn-add-selected, #wqo-app .wqo-btn-checkout { flex: 1; justify-content: center; }
  .wqo-mini-cart-drawer { max-width: 100%; }
}
