/* TractionRide B2B Widget Styles (v1.3.1) */

/* =========================
   Floating button positions
   ========================= */
.trb2b-btn{
  position:fixed; z-index:2147482000;
  left:16px; right:auto; bottom:92px;              /* DESKTOP: left side */
  display:flex; align-items:center; gap:10px;
  color:#fff; border:none; cursor:pointer;
  padding:12px 14px; border-radius:999px;
  box-shadow:0 16px 40px rgba(0,0,0,.18);
  font-weight:950; letter-spacing:.2px;
  transform: translateZ(0);
  user-select:none;
}
.trb2b-btn .ic{
  width:34px; height:34px; border-radius:999px;
  background:rgba(255,255,255,.16);
  display:grid; place-items:center;
}
.trb2b-btn .txt{ display:block; font-size:13px; line-height:1.05; text-align:left; }

/* MOBILE default: icon-only + centered above your center search button */
@media (max-width: 720px){
  .trb2b-btn{
    left:50%; right:auto;
    bottom:150px; /* fallback if header slot not used */
    padding:12px;
    transform: translateX(-50%) translateZ(0);
  }
  .trb2b-btn .txt{ display:none; }
}

/* =========================
   Header slot placement (MOBILE ONLY)
   Put <div id="tr-b2b-slot"></div> in your mobile header row (red area).
   ========================= */
#tr-b2b-slot{ display:none; } /* hidden on desktop to avoid affecting layout */
@media (max-width: 720px){
  #tr-b2b-slot{
    display:flex;
    align-items:center;
    justify-content:center;
    flex: 1 1 auto;
    min-width: 120px;
  }
}

.trb2b-btn.trb2b-inline{
  position:static !important;
  left:auto !important; right:auto !important; bottom:auto !important;
  transform:none !important;
  padding:10px 12px;
  border-radius:999px;
  box-shadow:0 10px 26px rgba(0,0,0,.12);
}
.trb2b-btn.trb2b-inline .txt{ display:block !important; }
.trb2b-btn.trb2b-inline .ic{ width:30px; height:30px; }

/* =========================
   Modal + scrolling
   ========================= */
.trb2b-overlay{
  position:fixed; inset:0; z-index:2147483000;
  background:rgba(3,10,28,.56); backdrop-filter: blur(6px);
  display:none;
  overflow:auto;
  -webkit-overflow-scrolling: touch;
  align-items:center; justify-content:center;
  padding:16px;
}

.trb2b-modal{
  width:min(980px, 100%);
  background:#fff; border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(11,94,215,.12);
  box-shadow:0 24px 80px rgba(0,0,0,.22);
}

.trb2b-head{
  padding:16px 18px;
  display:flex; align-items:center; justify-content:space-between;
  background: linear-gradient(135deg, rgba(11,94,215,.12), rgba(3,145,255,.08));
  position:sticky; top:0; z-index:2;
}

.trb2b-title{ display:flex; gap:12px; align-items:center; }
.trb2b-badge{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center; color:#fff;
  box-shadow:0 10px 26px rgba(11,94,215,.28);
}
.trb2b-title h3{ margin:0; font-size:16px; font-weight:950; color:#0b2f66; }
.trb2b-title p{ margin:2px 0 0 0; font-size:12px; color:#5d6b7b; font-weight:800; }
.trb2b-x{
  border:none; background:transparent; cursor:pointer;
  font-size:22px; line-height:1; padding:8px; border-radius:12px;
  color:#0b2f66;
}
.trb2b-x:hover{ background:rgba(11,94,215,.08); }

.trb2b-body{ padding:16px 18px 18px 18px; }

.trb2b-grid{ display:grid; grid-template-columns:1.2fr .8fr; gap:14px; }
@media (max-width: 980px){ .trb2b-grid{ grid-template-columns:1fr; } }

.trb2b-card{ border:1px solid rgba(11,94,215,.12); border-radius:18px; padding:14px; background:#fff; }
.trb2b-card h4{ margin:0 0 8px 0; font-size:13px; font-weight:950; color:#0b2f66; }
.trb2b-note{ font-size:12px; color:#5d6b7b; font-weight:800; line-height:1.4; }

.trb2b-form{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; }
@media (max-width: 680px){ .trb2b-form{ grid-template-columns:1fr; } }

.trb2b-field label{ display:block; font-size:12px; font-weight:900; color:#0b2f66; margin:0 0 6px 2px; }
.trb2b-field input,.trb2b-field select,.trb2b-field textarea{
  width:100%; border:1px solid rgba(11,94,215,.20);
  border-radius:14px; padding:10px 12px; font-size:14px;
  outline:none; background:#fff; font-weight:800; color:#0b2f66;
}
.trb2b-field textarea{ min-height:90px; resize:vertical; }
.trb2b-span2{ grid-column: span 2; }
@media (max-width: 680px){ .trb2b-span2{ grid-column: span 1; } }

.trb2b-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; align-items:center; justify-content:space-between; }
.trb2b-primary{
  color:#fff; border:none; cursor:pointer;
  padding:12px 14px; border-radius:14px;
  font-weight:950; box-shadow:0 12px 30px rgba(11,94,215,.22);
}
.trb2b-primary:disabled{ opacity:.6; cursor:not-allowed; }

.trb2b-links{ display:flex; gap:10px; flex-wrap:wrap; }
.trb2b-link{
  display:inline-flex; align-items:center; gap:8px;
  padding:10px 12px; border-radius:14px;
  border:1px solid rgba(11,94,215,.20);
  background:#fff; cursor:pointer; font-weight:950; color:#0b2f66;
  text-decoration:none;
}
.trb2b-link:hover{ background:rgba(11,94,215,.06); }

.trb2b-ok{
  margin-top:10px; padding:10px 12px;
  border-radius:14px; background:#ecfeff; border:1px solid #a5f3fc;
  color:#0b2f66; font-weight:900; display:none;
}
.trb2b-err{
  margin-top:10px; padding:10px 12px;
  border-radius:14px; background:#fff1f2; border:1px solid #fecdd3;
  color:#7f1d1d; font-weight:900; display:none;
}

.trb2b-steps{ display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }
.trb2b-step{
  font-size:12px; font-weight:900; color:#0b2f66;
  padding:6px 10px; border-radius:999px;
  border:1px solid rgba(11,94,215,.16);
  background:#f6f9ff;
}

.trb2b-score{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:16px;
  border:1px solid rgba(11,94,215,.12); background:#f6f9ff;
  margin-top:12px;
}
.trb2b-score b{ font-size:14px; }
.trb2b-score small{ color:#64748b; font-weight:900; }

@media (max-width: 720px){
  .trb2b-overlay{ align-items:flex-start; padding:12px; }
  .trb2b-modal{ margin-top:10px; }
  .trb2b-body{
    max-height: calc(100vh - 110px);
    overflow:auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* ===== B2B button: ICON-ONLY in header (clean + no overlap) ===== */
@media (max-width: 720px){
  /* slot keeps a fixed small width */
  #tr-b2b-slot{
    margin: 0 6px;
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    max-width: 44px;
    justify-content: center;
  }

  /* make it look like a header icon button */
  .trb2b-btn.trb2b-inline{
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 12px;
    background: transparent !important;
    border: 1px solid rgba(11,94,215,.25) !important;
    box-shadow: none !important;
    justify-content: center;
  }

  .trb2b-btn.trb2b-inline .txt{ display:none !important; }

  .trb2b-btn.trb2b-inline .ic{
    width: 34px;
    height: 34px;
    background: #0085FF;  /* theme blue */
    border-radius: 10px;
  }
}
