/* =========================================================
   FTI Game Plan Builder — fti-gpb.css (Complete)
   ========================================================= */

.fti-gpb-wrap { margin: 18px 0; }
.fti-card {
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}

/* Grid */
.fti-gpb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 980px){
  .fti-gpb-grid { grid-template-columns: 1fr; }
}

/* Topbar */
.fti-gpb-topbar {
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  margin-bottom:14px;
}
.fti-gpb-brand { display:flex; gap:10px; align-items:center; }
.fti-gpb-logo {
  width:34px; height:34px; border-radius:12px;
  display:grid; place-items:center;
  font-weight:800; background:#111; color:#fff;
}
.fti-gpb-title { font-weight:800; font-size:18px; }
.fti-gpb-subtitle { opacity:.7; font-size:12px; }

/* Buttons */
.fti-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  cursor:pointer;
  background:#111;
  color:#fff;
  font-weight:700;
}
.fti-btn[disabled]{ opacity:.55; cursor:not-allowed; }
.fti-btn-secondary {
  background:#f2f2f2;
  color:#111;
  border:1px solid rgba(0,0,0,.10);
}
.fti-btn-ghost {
  background:transparent;
  color:#111;
  border:1px solid rgba(0,0,0,.10);
}

/* Steps */
.fti-gpb-steps { display:flex; gap:8px; flex-wrap:wrap; }
.fti-step {
  padding: 8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fafafa;
  font-size:12px;
  user-select:none;
}
.fti-step.is-active { background:#111; color:#fff; border-color:#111; }
.fti-step.is-done { opacity:.7; }

/* Progress bar */
.fti-gpb-progress {
  height: 8px;
  background:#f2f2f2;
  border-radius:999px;
  overflow:hidden;
  margin-top:10px;
}
.fti-gpb-bar { height:100%; width:0%; background:#111; }

/* Panels */
.fti-gpb-panel { margin-top: 14px; }
.fti-section-title { font-size:16px; font-weight:800; margin-bottom:10px; }

/* Forms */
.fti-gpb-wrap label { display:block; font-weight:700; font-size:12px; margin-bottom:6px; }

/* IMPORTANT: keep this for normal inputs/selects */
.fti-gpb-wrap input,
.fti-gpb-wrap select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  outline: none;
}
.fti-gpb-wrap input:focus,
.fti-gpb-wrap select:focus { border-color: rgba(0,0,0,.30); }

/* ✅ FIX: do NOT apply width/padding styles to checkboxes */
.fti-gpb-wrap input[type="checkbox"]{
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.fti-row {
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom:12px;
}
@media (max-width: 520px){
  .fti-row { grid-template-columns:1fr; }
}

.fti-help { font-size:12px; opacity:.70; margin-top:6px; }
.fti-hintbox {
  border:1px solid rgba(0,0,0,.10);
  background:#fafafa;
  border-radius:14px;
  padding:12px;
  margin-bottom:12px;
  font-size:13px;
}
.fti-hintbox strong { font-weight:800; }

/* Chips */
.fti-chiprow { display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 6px; }
.fti-chip {
  border:1px solid rgba(0,0,0,.12);
  background:#fafafa;
  padding:10px 12px;
  border-radius:999px;
  cursor:pointer;
  user-select:none;
}
.fti-chip.is-active { background:#111; color:#fff; border-color:#111; }

/* Wizard nav */
.fti-gpb-nav {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top: 10px;
}
.fti-gpb-nav-right { display:flex; gap:10px; align-items:center; }

/* Status */
.fti-gpb-status {
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  font-size:13px;
}

/* Preview boxes */
.fti-box {
  border:1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background:#fafafa;
}
.fti-box-head {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
}
.fti-pill {
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
  white-space:nowrap;
}
.fti-pill.is-primary { border-color:#111; }
.fti-pill.is-secondary { border-color:#666; }
.fti-pill.is-backup { border-color:#999; }
.fti-pill.is-avoid { border-color:#b00020; color:#b00020; }

.fti-why { font-size:12px; opacity:.80; margin-top:6px; line-height:1.35; }

.fti-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:10px; }

/* Preview header */
.fti-gpb-preview-title { font-weight:800; font-size:16px; margin-bottom:8px; }
.fti-tag { font-size:12px; opacity:.80; }
.fti-dot { display:inline-block; width:8px; height:8px; border-radius:999px; background:#111; margin-right:8px; }

/* Collapse preview until computed */
.fti-gpb-preview.is-collapsed .fti-gpb-preview-body,
.fti-gpb-preview.is-collapsed .fti-gpb-preview-head {
  display: none;
}
.fti-gpb-preview.is-collapsed {
  padding: 18px;
  min-height: 180px;
  display: flex;
  align-items: center;
}
.fti-gpb-preview-collapsed { width: 100%; }
.fti-gpb-preview-collapsed .fti-gpb-collapsed-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.fti-gpb-preview-collapsed .fti-gpb-collapsed-sub {
  opacity: 0.85;
  margin-bottom: 12px;
  line-height: 1.35;
}
.fti-gpb-preview-collapsed .fti-gpb-collapsed-bullets {
  margin: 0 0 0 18px;
  opacity: 0.9;
}
.fti-gpb-preview-collapsed .fti-gpb-collapsed-bullets li { margin: 6px 0; }

/* Modal */
.fti-modal-wrap {
  position:fixed; inset:0;
  background:rgba(0,0,0,.5);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:9999;
}
.fti-modal { width:min(560px, 100%); border-radius: 18px; background:#fff; overflow:hidden; }
.fti-modal-head, .fti-modal-foot {
  padding:14px 16px;
  border-bottom:1px solid rgba(0,0,0,.10);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.fti-modal-foot {
  border-top:1px solid rgba(0,0,0,.10);
  border-bottom:0;
  justify-content:flex-end;
  gap:10px;
}
.fti-modal-body { padding:16px; }
.fti-xbtn {
  border:1px solid rgba(0,0,0,.12);
  background:#fafafa;
  border-radius: 12px;
  width:34px; height:34px;
  cursor:pointer;
}


/* =========================================================
   Gear Checklist — FINAL STRUCTURE (label + external link)
   ========================================================= */

.fti-ckrow{
  /*display: grid;*/
  display: flex;


  /*align-items: start;*/
  align-items: center;
  /*
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  row-gap: 4px;  
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  background: #fff;
  margin: 10px 0;
*/
  gap: 1rem; /* optional spacing between items */
  flex-wrap: nowrap;

}


.fti-gear-link {
  margin: 0;
}


/* Checkbox column */
.xfti-ckrow input[type="checkbox"]{
  grid-column: 1;
  grid-row: 1;
  margin-top: 3px;
}
.fti-ck input[type="checkbox"] {
  margin: 0;
  /*
  display: inline-block;
  vertical-align: middle;
  width: auto;
  flex-shrink: 0;
  */
}

/* Label text */
.fti-ck{
  /*

  display: block;
  cursor: pointer;
  text-align: left;

  display: flex;
*/
  grid-column: 5;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.fti-ck strong{
  display: block;
  font-weight: 700;
}

/* Amazon link under text */
.fti-ckrow .fti-gear-link{
  grid-column: 2;
  grid-row: 2;

  margin-top: 2px;
  font-size: 13px;
}

.fti-gear-link a{
  color: #0a58ca;
  text-decoration: underline;
}

.fti-gear-link a:hover{
  text-decoration: none;
}
.fti-gear-a{
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: #0a58ca;
  text-decoration: underline;
}

.fti-gear-a:hover{
  text-decoration: none;
}


.fti-bullet {
  width: 1px;        /* smaller = more bullet-like */
  height: 1px;       /* force square shape */
  object-fit: contain;
  flex-shrink: 0;     /* prevents wrapping issues */
  vertical-align: middle;
}


