/* === OSC Keyword Store — Scoped Styles (fixed, search removed, floating cart, unified toast) === */
.osc-wrap{
  --page:#ffffff; --panel:#fff; --border:#e5e7eb;
  --text:#0f172a; --muted:#475569;
  --accentA:#7c3aed; --accentB:#d946ef;
  --blue:#1e40af; --magenta:#d946ef; --green:#059669;
  --shadow-1:0 6px 18px rgba(2,6,23,.06);
  --item-h:54px; --row-h:44px;

  /* where toast sits, just under the floating cart button */
  --osc-toast-top: 110px;

  /* for layout-edit mode (grid row height) */
  --row-unit: 12px;

  color:var(--text);
  font-family:Poppins,system-ui,Segoe UI,Roboto,Arial,sans-serif;
  background:var(--page);
}

.osc-wrap *{ box-sizing:border-box; margin:0; padding:0; }

/* container inside the component */
.osc-wrap .wrap{ max-width:1200px; margin:28px auto; padding:0 16px; }
@media (max-width:480px){ .osc-wrap .wrap{ padding:0 8px; } }

/* section header */
.osc-wrap .section-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:#eef2ff; border:1px solid #dbe4ff; border-radius:14px;
  padding:14px 16px; margin:0 0 18px; box-shadow:var(--shadow-1); flex-wrap:wrap;
}
.osc-wrap .section-head h2{ margin:0; font-weight:900; color:var(--blue); font-size:clamp(22px,5vw,34px); }
.osc-wrap .section-right{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.osc-wrap .badge{ display:inline-flex; align-items:center; gap:6px; background:#ecfeff; border:1px solid #a5f3fc; color:#0369a1; border-radius:999px; padding:6px 10px; font-weight:800; font-size:12px; }
.osc-wrap .badge:before{ content:"🔥"; }

.osc-wrap .page-title{
  font-size:clamp(20px,5vw,28px); font-weight:900; color:var(--blue);
  text-transform:uppercase; margin:10px 0 8px; text-align:center;
}

/* topbar (search removed) */
.osc-wrap .topbar{ position:sticky; top:0; z-index:60; background:var(--page); border-bottom:1px solid var(--border); }
.osc-wrap .topbar-inner{
  max-width:1200px; margin:0 auto; padding:12px 16px;
  display:flex; gap:12px; align-items:center; justify-content:flex-end;
}

/* header cart */
.osc-wrap .cart-btn{
  display:inline-flex; align-items:center; gap:8px; background:#fff;
  border:1px solid var(--border); box-shadow:var(--shadow-1);
  padding:10px 14px; border-radius:12px; cursor:pointer;
  font-weight:600; transition:transform .14s; color:#0b1220;
}
.osc-wrap .cart-btn.bump{ transform:scale(1.05); }
.osc-wrap .cart-btn .count{
  background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff;
  border-radius:999px; padding:2px 8px; font-size:12px;
}

/* hero / custom keyword */
.osc-wrap .ck-btn{
  display:inline-flex; align-items:center; gap:10px; background:#ffffff;
  border:2px solid #e9d5ff; border-radius:12px; padding:10px 14px;
  font-weight:800; font-size:14px; box-shadow:var(--shadow-1); cursor:pointer; color:#6b21a8;
}
.osc-wrap .ck-btn .sub{
  font-weight:700; font-size:12px; color:#8b5cf6; background:#f5f3ff;
  border:1px solid #ede9fe; border-radius:999px; padding:2px 8px;
}

.osc-wrap .custom-head{
  display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  border-radius:16px; padding:16px;
  background:linear-gradient(135deg, rgba(124,58,237,.08), rgba(217,70,239,.08));
  border:1px solid #e9d5ff; box-shadow:var(--shadow-1); margin:10px 0 16px;
}
.osc-wrap .custom-head .title{ display:flex; align-items:center; gap:10px; }
.osc-wrap .custom-head .title .icon{
  width:36px; height:36px; display:inline-grid; place-items:center; border-radius:10px;
  background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff; font-weight:900;
}
.osc-wrap .custom-head h2{ margin:0; font-weight:900; color:#4c1d95; font-size:clamp(20px,5vw,28px); }
.osc-wrap .custom-head .note{ color:#6b21a8; font-weight:700; font-size:13px; }
.osc-wrap .custom-head .cta{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.osc-wrap .custom-head .cta .mini{
  font-weight:800; font-size:12px; color:#0369a1; background:#ecfeff;
  border:1px solid #a5f3fc; border-radius:999px; padding:4px 8px;
}

/* bundles */
.osc-wrap .bundles{ display:grid; grid-template-columns:repeat(2,1fr); column-gap:14px; row-gap:6px; margin:6px 0 16px; }
@media (max-width:768px){ .osc-wrap .bundles{ grid-template-columns:1fr; } }

.osc-wrap .bline{
  position:relative; display:flex; align-items:center; gap:10px;
  height:var(--item-h); min-height:var(--item-h);
  border:1px solid #00000017; border-radius:12px; background:#dcebf54a;
  padding:0 8px; overflow:hidden;
}
.osc-wrap .bline .price{ color:var(--green); font-weight:800; font-size:clamp(17px,4.2vw,19px); white-space:nowrap; }
.osc-wrap .bline .name{ color:var(--magenta); font-weight:700; font-size:clamp(17px,4.1vw,19px); flex:1; min-width:120px; }
.osc-wrap .bline .b-split{
  position:absolute; inset:0; display:grid; grid-template-columns:1fr 1fr;
  opacity:0; transform:translateY(2px) scale(.985); pointer-events:none; transition:.16s ease;
  border-radius:12px; overflow:hidden; filter:drop-shadow(0 8px 16px rgba(2,6,23,.10));
}
.osc-wrap .bline:hover .b-split{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.osc-wrap .bline:hover .price, .osc-wrap .bline:hover .name{ opacity:0; }
.osc-wrap .b-split .half{ border:0; font-weight:900; cursor:pointer; font-size:13px; padding:8px 12px; border-radius:10px; line-height:1; }
.osc-wrap .b-split .left{ background:#ffffff; border:1px solid var(--border); border-right:0; color:#0b1220; }
.osc-wrap .b-split .right{ background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff; border:1px solid transparent; }
@media (max-width:768px){
  .osc-wrap .bline .b-split{ opacity:0; }
  .osc-wrap .bline.show .b-split{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
}

/* singles grid (semantic base) — NOTE: final authoritative layout is at the end */
.osc-wrap .subgrid{ display:grid; grid-template-columns:repeat(var(--cols,3),minmax(0,1fr)); gap:10px; margin-top:10px; margin-bottom:16px; }
@media(max-width:992px){ .osc-wrap .subgrid{ grid-template-columns:repeat(var(--cols-md,2),minmax(0,1fr)); } }
@media(max-width:640px){ .osc-wrap .subgrid{ grid-template-columns:repeat(var(--cols-sm,1),minmax(0,1fr)); } }

.osc-wrap .subcard{
  background:#fff; border:1px solid var(--border); border-radius:12px; padding:10px; box-shadow:var(--shadow-1);
  grid-column: span var(--span,1); order: var(--order,0);
}
.osc-wrap .subcard h3{
  margin:0 0 8px; color:#1e40af; font-size:18px; font-weight:700;
  display:flex; justify-content:space-between; align-items:center;
}
.osc-wrap .subcard .each{
  background:#ffe4e6; border:1px solid #fecdd3; color:#b91c1c; font-weight:800;
  border-radius:999px; padding:1px 8px; font-size:16px;
}

.osc-wrap .rows{ display:flex; flex-direction:column; gap:2px; }
.osc-wrap .row{
  position:relative; display:flex; align-items:center;
  height:var(--row-h); min-height:var(--row-h);
  border:1px solid transparent; border-radius:10px; background:transparent;
  padding:0 8px; overflow:hidden;
}
.osc-wrap .r-title{ font-weight:600; font-size:14px; transition:.12s; }
.osc-wrap .r-actions{
  position:absolute; inset:0; display:grid; grid-template-columns:1fr 1fr;
  opacity:0; transform:translateY(2px) scale(.985); pointer-events:none; transition:.14s ease;
  border-radius:10px; overflow:hidden; filter:drop-shadow(0 8px 16px rgba(2,6,23,.10));
}
.osc-wrap .row:hover .r-actions{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.osc-wrap .row:hover .r-title{ opacity:0; }
.osc-wrap .row.show .r-actions{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.osc-wrap .row.show .r-title{ opacity:0; }
.osc-wrap .rbtn{ font-size:13px; font-weight:900; border:0; cursor:pointer; padding:8px 12px; border-radius:10px; line-height:1; }
.osc-wrap .rbtn.add{ background:#ffffff; border:1px solid var(--border); color:#0b1220; }
.osc-wrap .rbtn.buy{ background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff; }

/* ================= CART DRAWER ================= */
.osc-wrap .cart-panel{ position:fixed; inset:0; display:none; z-index:80; }
.osc-wrap .cart-panel.open{ display:block; }
.osc-wrap .cart-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.15); }
.osc-wrap .cart-drawer{
  position:absolute; top:0; right:0; height:100%; width:min(92vw,380px);
  background:var(--panel); border-left:1px solid var(--border);
  box-shadow:0 16px 38px rgba(2,6,23,.22); display:flex; flex-direction:column;
  transform:translateX(100%); transition:transform .18s ease-out;
}
.osc-wrap .cart-panel.open .cart-drawer{ transform:translateX(0); }
.osc-wrap .cart-header{
  background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff;
  padding:14px 16px; display:flex; align-items:center; justify-content:space-between; font-weight:600;
}
.osc-wrap .cart-header .close{ background:rgba(255,255,255,.2); border:0; color:#fff; border-radius:8px; padding:6px 10px; cursor:pointer; }
.osc-wrap .cart-items{ flex:1; overflow:auto; padding:12px; }
.osc-wrap .cart-empty{
  padding:18px; border:1px dashed var(--border); border-radius:12px; text-align:center; color:#475569; background:#fff; display:none;
}
.osc-wrap .cart-item{
  display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center;
  border:1px solid var(--border); border-radius:12px; padding:10px 12px; background:#fff; margin-bottom:8px;
}
.osc-wrap .cart-item .name{ font-weight:700; color:var(--text); }
.osc-wrap .cart-item .price{ font-weight:900; color:#059669; }
.osc-wrap .cart-item .meta{
  grid-column:1/-1; font-size:12px; color:#475569; background:#f8fafc;
  border:1px dashed #e5e7eb; border-radius:10px; padding:6px 8px; margin-top:4px;
}

/* ====== READ-ONLY CART QUANTITY + PER-ITEM CLEAR BUTTON ====== */
.osc-wrap .qty button,
.osc-wrap .remove{ display:none !important; }

.osc-wrap .qty .qv{
  min-width:28px; text-align:center; font-weight:800; color:#0b1220;
  padding:4px 10px; border:1px solid var(--border); border-radius:8px; background:#f8fafc;
}
.osc-wrap .qty .qv::before{ content:"Qty: "; font-weight:900; margin-right:.25rem; }

.osc-wrap .rmx{
  background:#f3f4f6;
  border:1px solid var(--border);
  color:#0b1220;
  border-radius:10px;
  padding:6px 10px;
  font-weight:900;
  font-size:12px;
  line-height:1;
  cursor:pointer;
}
.osc-wrap .rmx:hover{ background:#e5e7eb; }
.osc-wrap .rmx:active{ transform:translateY(1px); }

.osc-wrap .qty{ display:flex; align-items:center; gap:8px; }

.osc-wrap .cart-foot{ border-top:1px solid var(--border); padding:12px 16px; display:flex; justify-content:space-between; align-items:center; font-weight:500; color:#0b1220; }
.osc-wrap .cart-actions{ display:flex; gap:8px; padding:0 16px 16px; }
.osc-wrap .cart-clear{ background:#f3f4f6; border:1px solid var(--border); border-radius:10px; padding:10px 12px; font-weight:800; cursor:pointer; color:#0b1220; }
.osc-wrap .cart-checkout{ border:0; border-radius:10px; padding:10px 16px; font-weight:800; cursor:pointer; background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff; }

/* ======================= TOASTS ======================= */
.osc-wrap .toast{
  position:fixed; top:var(--osc-toast-top); right:18px; left:auto; bottom:auto;
  z-index:99960; display:none;
  max-width:340px; background:#fff; color:#111;
  padding:12px 16px; border-radius:12px; font-weight:800;
  border:1px solid var(--border);
  box-shadow:0 10px 24px rgba(17,24,39,.14);
}
.osc-wrap .toast.show{ display:block; animation:slidein .18s ease-out; }

/* Aurora search toast */
.osc-al-toast{
  position:fixed; top:var(--osc-toast-top); right:18px; left:auto; bottom:auto;
  z-index:99960;
  max-width:340px; background:#fff; color:#111;
  padding:12px 16px; border-radius:12px; font-weight:800;
  border:1px solid var(--border);
  box-shadow:0 10px 24px rgba(17,24,39,.14);
  opacity:0; transform:translateY(-8px);
  pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}
.osc-al-toast.show{ opacity:1; transform:translateY(0); pointer-events:auto; }

@keyframes slidein{ from{opacity:0; transform:translateY(-8px);} to{opacity:1; transform:translateY(0);} }

/* Floating cart button (outside shortcode, top-right of page) */
#cartToggle{
  position:fixed !important;
  top:18px;
  right:18px;
  z-index:100000;
  box-shadow:0 6px 18px rgba(2,6,23,.12);
}

/* Avoid overlap with WP admin bar when logged in */
body.admin-bar #cartToggle{ top:calc(18px + 32px); }
body.admin-bar .osc-wrap .toast,
body.admin-bar .osc-al-toast{ top:calc(var(--osc-toast-top) + 32px) !important; }

/* request drawer */
.osc-wrap .req-fab{
  position:fixed; right:20px !important; left:auto !important; bottom:20px;
  z-index:70;
  display:inline-flex; align-items:center; gap:8px;
  background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff;
  border:0; border-radius:14px;
  padding:10px 12px;
  font-size:14px;
  font-weight:900;
  max-width:320px;
  box-shadow:0 10px 22px rgba(124,58,237,.35); cursor:pointer;
}
.osc-wrap .req-fab small{ opacity:.9; font-weight:800; }

.osc-wrap .req-panel{ position:fixed; inset:0; display:none; z-index:75; }
.osc-wrap .req-panel.open{ display:block; }
.osc-wrap .req-backdrop{ position:absolute; inset:0; background:rgba(2,6,23,.35); }
.osc-wrap .req-drawer{
  position:absolute; top:0; right:0; height:100%; width:min(92vw,460px);
  background:#fff; border-left:1px solid var(--border); box-shadow:0 16px 38px rgba(2,6,23,.22);
  transform:translateX(100%); transition:transform .2s ease-out; display:flex; flex-direction:column;
}
.osc-wrap .req-panel.open .req-drawer{ transform:translateX(0); }
.osc-wrap .req-head{ background:#f8faff; border-bottom:1px solid var(--border); padding:14px 16px; display:flex; justify-content:space-between; align-items:center; }
.osc-wrap .req-head h3{ margin:0; color:#1e40af; font-weight:600; }
.osc-wrap .req-close{ border:0; background:#eef2ff; border:1px solid #dbe4ff; border-radius:10px; padding:6px 10px; cursor:pointer; font-weight:800; color:#0b1220; }
.osc-wrap .req-body{ padding:14px 16px; overflow:auto; display:grid; gap:12px; }
.osc-wrap .req-sub{ font-weight:600; color:#334155; }
.osc-wrap .kw-rows{ display:flex; flex-direction:column; gap:8px; }
.osc-wrap .kw-row input{ flex:1; border:1px solid var(--border); border-radius:10px; padding:10px 12px; font:inherit; color:#0b1220; }
.osc-wrap .kw-del{ border:0; background:#fee2e2; border:1px solid #fecaca; color:#b91b1b; border-radius:10px; padding:6px 10px; cursor:pointer; font-weight:900; }
.osc-wrap .add-row{ border:1px dashed var(--border); background:#f8fafc; border-radius:10px; padding:8px 12px; cursor:pointer; font-weight:700; width:max-content; color:#0b1220; }
.osc-wrap .req-input{ border:1px solid var(--border); border-radius:12px; padding:10px 12px; background:#fff; font:inherit; width:100%; color:#0b1220; }
.osc-wrap .req-meta{ display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.osc-wrap .req-price{ font-weight:900; color:#059669; }
.osc-wrap .req-count{ font-weight:800; color:#64748b; }
.osc-wrap .req-error{ color:#b91c1c; font-weight:800; font-size:12px; }
.osc-wrap .req-foot{ display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--border); padding:12px 16px; }
.osc-wrap .req-send{ border:0; border-radius:12px; padding:10px 16px; font-weight:900; cursor:pointer; background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff; }
.osc-wrap .req-send:disabled{ opacity:.5; cursor:not-allowed; }
.osc-wrap .req-delivery{ font-size:12px; color:#475569; }

/* ===== HIDE EMAIL FIELD (Custom Keyword Drawer) ===== */
/* Hide the input itself */
#mailInput { display:none !important; }
/* Hide the "Your Email" line that immediately precedes the input */
.osc-wrap .req-body .req-sub:has(+ #mailInput) { display:none !important; }
/* Hide any direct wrapper that contains the #mailInput (if present) */
.osc-wrap .req-body > *:has(#mailInput) { display:none !important; }

/* Optional: highlight invalid required WhatsApp field */
#waInput:required:invalid{
  border-color:#ef4444 !important;
  box-shadow:0 0 0 2px rgba(239,68,68,.10);
}

/* buyer modal */
.osc-wrap .oscx-modal{ position:fixed; inset:0; background:rgba(2,6,23,.45); display:none; align-items:center; justify-content:center; z-index:100000; }
.osc-wrap .oscx-modal.open{ display:flex; }
.osc-wrap .oscx-card{
  background:#fff; min-width:320px; max-width:92vw; border-radius:16px; border:1px solid #e8e8f6;
  padding:16px 16px 14px; box-shadow:0 24px 48px rgba(17,24,39,.2); font-family:Poppins, Arial, sans-serif; color:#0b1220;
}
.osc-wrap .oscx-card h3{ margin:0 0 8px; font-size:18px; font-weight:900; color:#111; }
.osc-wrap .oscx-card p{ margin:0 0 8px; color:#64748b; font-size:13px; font-weight:600; }
.osc-wrap .oscx-row{ margin:10px 0; }
.osc-wrap .oscx-label{ font-weight:800; font-size:12px; color:#334155; display:block; margin-bottom:6px; }
.osc-wrap .oscx-input{ width:100%; border:1px solid #e5e7eb; border-radius:10px; padding:10px 12px; font:inherit; color:#0b1220; }
.osc-wrap .oscx-actions{ display:flex; gap:8px; justify-content:flex-end; margin-top:10px; }
.osc-wrap .oscx-btn{ border:1px solid #e5e7eb; background:#fff; border-radius:10px; padding:9px 12px; font-weight:800; cursor:pointer; color:#0b1220; }
.osc-wrap .oscx-btn.cta{ background:linear-gradient(135deg,var(--accentA),var(--accentB)); color:#fff; border:0; }

/* === Mobile polish & perf (additive) === */
@media (max-width:600px){
  .osc-wrap .wrap{ max-width:100%; padding:0 12px; margin:18px auto; }
  .osc-wrap .topbar-inner{ padding:10px 12px; gap:8px; }

  .osc-wrap .section-head{ padding:12px; border-radius:12px; margin-bottom:12px; }
  .osc-wrap .section-head h2{ font-size:clamp(18px,5vw,22px); }
  .osc-wrap .custom-head{ padding:14px; border-radius:14px; }
  .osc-wrap .custom-head h2{ font-size:clamp(18px,5vw,22px); }
  .osc-wrap .custom-head .note{ font-size:12px; }

  .osc-wrap .bundles{ grid-template-columns:1fr; gap:8px; margin:8px 0 14px; }
  .osc-wrap .subgrid{ grid-template-columns:repeat(var(--cols-sm,1),minmax(0,1fr)); gap:10px; }

  .osc-wrap{ --item-h:52px; --row-h:42px; }
  .osc-wrap .bline{ padding:0 10px; }
  .osc-wrap .bline .price, .osc-wrap .bline .name{ font-size:16px; }

  .osc-wrap .r-title{ font-size:14px; }
  .osc-wrap .rbtn{ padding:9px 10px; font-size:13px; border-radius:10px; }

  .osc-wrap .subcard{ padding:10px; border-radius:12px; }
  .osc-wrap .subcard h3{ font-size:16px; }
  .osc-wrap .subcard .each{ font-size:14px; }

  .osc-wrap .badge{ font-size:11px; padding:5px 8px; max-width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

  .osc-wrap{ padding-bottom:88px; }
  .osc-wrap .req-fab{
    bottom:calc(14px + env(safe-area-inset-bottom));
    right:14px !important; left:auto !important;
    padding:9px 11px;
    font-size:13px;
    border-radius:12px;
    max-width:260px;
  }
  .osc-wrap .req-fab small{ display:block; font-size:12px; }

  .osc-wrap .cart-drawer{ width:min(94vw,360px); }
  .osc-wrap .req-drawer{ width:min(94vw,420px); }
  .osc-wrap .cart-foot, .osc-wrap .req-foot{ padding-bottom:calc(12px + env(safe-area-inset-bottom)); }

  .osc-wrap{ --shadow-1:0 4px 10px rgba(2,6,23,.06); }
  .osc-wrap .section-head, .osc-wrap .custom-head, .osc-wrap .subcard, .osc-wrap .ck-btn{ box-shadow:var(--shadow-1); }
  .osc-wrap .bline .name, .osc-wrap .r-title{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

  .osc-wrap .toast,
  .osc-al-toast{
    right:14px !important;
    top:calc(var(--osc-toast-top) - 10px) !important;
    max-width:calc(100vw - 28px);
  }
}
@media (max-width:380px){
  .osc-wrap .cart-btn span:first-child{ display:none; }
}

/* Performance hints */
.osc-wrap .cart-drawer, .osc-wrap .req-drawer{ will-change:transform; }

/* ==================== KILL STORE SEARCH OVERLAY (use Aurora only) ==================== */
#searchResults,
.osc-search-results { display: none !important; }
body.osc-searching .site-main,
body.osc-searching #primary,
body.osc-searching .inside-article,
body.osc-searching #catalogWrap {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* (Optional) ensure Aurora dropdown sits above page chrome) */
.osc-al-pop { z-index: 99999 !important; }

/* Desktop-only tweak: make the purple FAB a bit larger on PCs */
@media (min-width: 601px){
  .osc-wrap .req-fab{
    padding:12px 16px;
    font-size:15px;
    max-width:360px;
    border-radius:14px;
  }
}

/* === FINAL AUTHORITATIVE SUBGRID LAYOUT (3 / 2 / 1) === */
body .osc-wrap .subgrid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:10px;
  margin-top:10px;
  margin-bottom:16px;
}
@media (max-width:992px){
  body .osc-wrap .subgrid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }
}
@media (max-width:640px){
  body .osc-wrap .subgrid{
    grid-template-columns:1fr !important;
  }
}
body .osc-wrap .subcard{
  display:block !important;
  break-inside:auto !important;
  -webkit-column-break-inside:auto !important;
  page-break-inside:auto !important;
  grid-column:span var(--span,1);
}

/* ===================== Admin "brick" edit mode ===================== */
.osc-wrap.layout-edit .subgrid{
  display:grid !important;
  columns: initial;
  grid-template-columns: repeat(3, minmax(0,1fr));
  grid-auto-rows: var(--row-unit);
  grid-auto-flow: dense;
  gap: 14px;
}
@media (max-width:992px){
  .osc-wrap.layout-edit .subgrid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width:640px){
  .osc-wrap.layout-edit .subgrid{ grid-template-columns: 1fr; }
}

.osc-wrap.layout-edit .subcard{
  position:relative;
  display:block !important;
  margin:0;
  break-inside: auto;
  -webkit-column-break-inside: auto;
  page-break-inside: auto;
  grid-row: span var(--rows,16);
  overflow:auto;
  resize: vertical;
  min-height: calc(var(--row-unit) * 10);
  cursor: move;
  user-select: none;
}

/* subtle resize affordance */
.osc-wrap.layout-edit .subcard::after{
  content:"";
  position:absolute; right:8px; bottom:8px;
  width:14px; height:14px;
  border-right:2px solid #cbd5e1; border-bottom:2px solid #cbd5e1;
  opacity:.7; pointer-events:none;
}

/* ===== Request Drawer — compact, presentable, mobile-friendly ===== */
.osc-wrap .req-drawer{
  width:min(92vw,420px);
  font-size:14px;
  border-left:1px solid var(--border);
  background:#fff;
}
.osc-wrap .req-head{
  padding:12px 16px;
  background:#f8faff;
  border-bottom:1px solid var(--border);
}
.osc-wrap .req-head h3{
  margin:0;
  font-weight:800;
  font-size:16px;
  color:#1e293b;
}
.osc-wrap .req-close{
  padding:6px 10px;
  font-size:12px;
  border-radius:10px;
}

/* content area spacing */
.osc-wrap .req-body{
  padding:12px 16px;
  display:grid;
  gap:12px;
}
.osc-wrap .req-sub{
  margin-top:4px;
  font-weight:800;
  font-size:12px;
  color:#334155;
  text-transform:uppercase;
  letter-spacing:.03em;
}

/* fields */
.osc-wrap .req-input,
.osc-wrap .kw-row input{
  width:100%;
  height:42px;
  padding:9px 12px;
  border:1px solid var(--border);
  border-radius:10px;
  background:#fff;
  font:inherit;
  color:#0b1220;
}
.osc-wrap .req-file input[type="file"]{ width:100%; }
.osc-wrap .kw-rows{ gap:10px; }
.osc-wrap .kw-row{ display:flex; gap:8px; }
.osc-wrap .kw-del{ padding:6px 10px; }

/* meta line (total + count + error) */
.osc-wrap .req-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.osc-wrap .req-price{ font-size:16px; }
.osc-wrap .req-count{ font-size:12px; }
.osc-wrap .req-error{ font-size:12px; }

/* delivery note smaller */
.osc-wrap .req-delivery{
  font-size:12px;
  color:#64748b;
}

/* sticky footer so CTA is always visible */
.osc-wrap .req-foot{
  position:sticky;
  bottom:0;
  z-index:1;
  background:#fff;
  border-top:1px solid var(--border);
  padding:12px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.osc-wrap .req-send{
  padding:10px 14px;
  font-size:14px;
  border-radius:12px;
}

/* ===== Mobile polish ===== */
@media (max-width:600px){
  .osc-wrap .req-drawer{
    width:calc(100vw - 56px);
    max-width:360px;
  }
  .osc-wrap .req-head{ padding:10px 12px; }
  .osc-wrap .req-body{ padding:12px; gap:10px; }
  .osc-wrap .req-input,
  .osc-wrap .kw-row input{ height:40px; font-size:14px; }
  .osc-wrap .kw-row{ gap:6px; }
  .osc-wrap .req-foot{
    padding:10px 12px;
    flex-direction:column;
    align-items:stretch;
    text-align:center;
  }
  .osc-wrap .req-send{
    width:100%;
    padding:12px !important;
    font-size:15px;
  }
}

/* Extra-small phones */
@media (max-width:380px){
  .osc-wrap .req-drawer{
    width:calc(100vw - 48px);
    max-width:340px;
  }
  .osc-wrap .req-head h3{ font-size:15px; }
  .osc-wrap .req-input,
  .osc-wrap .kw-row input{ height:38px; font-size:13px; }
}
