.fbs-widget{
  border:1px solid #e5e5e5;
  padding:12px;
  margin:12px 0;
  background:#fff;
}
.fbs-title{
  font-weight:700;
  letter-spacing:.04em;
  margin-bottom:10px;
}
.fbs-tiers{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.fbs-tier{
  display:block;
  border:1px solid #ddd;
  padding:10px;
  cursor:pointer;
}
.fbs-tier.is-selected{
  border-color:#111;
}
.fbs-tier input[type="radio"]{
  margin-right:8px;
}
.fbs-tier-pick{
  display:inline-flex;
  align-items:center;
}
.fbs-tier-main{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.fbs-tier-label{
  font-weight:600;
}
.fbs-badge{
  display:inline-block;
  padding:2px 7px;
  border-radius:999px;
  background:#d92d20;
  color:#fff;
  font-size:10px;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1.4;
}
.fbs-tier-sub{
  opacity:.7;
  font-size:12px;
}
.fbs-tier-chosen-preview{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.fbs-tier-picked-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding:4px 0;
}
.fbs-tier-picked-name-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  width:100%;
  min-width:0;
}
.fbs-tier-picked-remove{
  width:20px;
  min-width:20px;
  height:20px;
  padding:0;
  border:1px solid #ddd;
  border-radius:999px;
  background:#fff;
  line-height:18px;
  text-align:center;
  cursor:pointer;
}
.fbs-tier-picked-item.is-current{
  font-weight:600;
}
.fbs-tier-picked-img img{
  width:26px;
  height:26px;
  object-fit:cover;
  border-radius:4px;
  display:block;
}
.fbs-tier-picked-name{
  font-size:12px;
  line-height:1.2;
  min-width:0;
}
.fbs-tier-picked-text{
  min-width:0;
}
.fbs-tier-picked-attrs{
  font-size:11px;
  opacity:.75;
  line-height:1.2;
  margin-top:2px;
}
.fbs-tier-chip{
  display:inline-block;
  font-size:12px;
  line-height:1;
  padding:5px 8px;
  border:1px solid #ddd;
  border-radius:999px;
  background:#fafafa;
}
.fbs-tier-chip.is-current{
  border-color:#111;
  background:#f2f2f2;
}
.fbs-sel-remove{
  min-width:32px;
  width:32px;
  height:32px;
  padding:0;
  font-size:18px;
  line-height:30px;
  text-align:center;
}
.fbs-tier-price{
  display:flex;
  gap:10px;
  align-items:baseline;
  justify-content:flex-end;
}
.fbs-price-original{
  text-decoration:line-through;
  opacity:.6;
  font-size:13px;
}
.fbs-tier-save{
  font-size:12px;
  opacity:.8;
  text-align:right;
}
.fbs-addon{
  margin-top:12px;
  border-top:1px dashed #ddd;
  padding-top:10px;
}
.fbs-addon-row{
  display:flex;
  gap:10px;
  align-items:flex-start;
  cursor:pointer;
}
.fbs-addon-title{
  font-weight:600;
}
.fbs-addon-meta{
  display:flex;
  flex-direction:column;
  gap:4px;
  font-size:13px;
  opacity:.9;
}
.fbs-addon-original{
  text-decoration:line-through;
  opacity:.65;
  margin-left:8px;
}
.fbs-addon-price{
  font-weight:600;
  margin-left:8px;
}
.fbs-addon-price-html{
  margin-left:8px;
}
.fbs-addon-price-html ins{
  text-decoration:none;
  font-weight:600;
  background:transparent;
}
.fbs-addon-price-html del{
  opacity:.65;
}
.fbs-addon-save{
  margin-left:8px;
  opacity:.85;
}
.fbs-hint{
  margin-top:10px;
  font-size:12px;
  opacity:.7;
}
.fbs-selected-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}
.fbs-sel-item{
  border:1px solid #e8e8e8;
  border-radius:8px;
  padding:8px 10px;
  display:grid;
  grid-template-columns:44px minmax(0, 1fr) auto;
  align-items:center;
  gap:10px;
}
.fbs-sel-item.is-current{
  border-color:#cfcfcf;
  background:#fafafa;
}
.fbs-sel-img img{
  width:44px;
  height:44px;
  object-fit:cover;
  border-radius:6px;
  display:block;
}
.fbs-sel-info{
  min-width:0;
}
.fbs-sel-name{
  font-weight:600;
}
.fbs-sel-attrs{
  margin-top:2px;
  font-size:12px;
  opacity:.8;
}
.fbs-sel-price{
  margin-top:2px;
  font-size:13px;
}
.fbs-sel-fixed{
  font-size:12px;
  padding:4px 8px;
  border:1px solid #d8d8d8;
  border-radius:999px;
  background:#fff;
}
.fbs-locked-qty{
  display:inline-block;
  padding:2px 6px;
  border:1px solid #ddd;
  border-radius:4px;
}

/* Product picker modal */
.fbs-modal{
  position:fixed;
  inset:0;
  z-index:9999;
}
.fbs-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.45);
}
.fbs-modal-dialog{
  position:relative;
  z-index:1;
  width:min(900px, calc(100vw - 32px));
  max-height:calc(100vh - 32px);
  margin:16px auto;
  background:#fff;
  border-radius:10px;
  box-shadow:0 14px 40px rgba(0,0,0,.25);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.fbs-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid #ececec;
}
.fbs-modal-title{
  font-weight:700;
}
.fbs-modal-close{
  border:0;
  background:transparent;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}
.fbs-modal-toolbar{
  padding:12px 14px;
  border-bottom:1px solid #ececec;
}
.fbs-search{
  width:100%;
}
.fbs-modal-body{
  padding:12px 14px;
  overflow:auto;
}
.fbs-products{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.fbs-prod{
  border:1px solid #e8e8e8;
  border-radius:8px;
  padding:10px;
  display:grid;
  grid-template-columns:64px minmax(0, 1fr) auto;
  gap:10px;
  align-items:center;
}
.fbs-prod-img img{
  width:64px;
  height:64px;
  object-fit:cover;
  display:block;
  border-radius:6px;
}
.fbs-prod-actions{
  margin-top:0;
}
.fbs-prod-info{
  min-width:0;
}
.fbs-prod-name{
  font-weight:600;
}
.fbs-prod-price{
  margin-top:2px;
  font-size:13px;
}
.fbs-prod-variant{
  margin-top:6px;
}
@media (max-width: 640px){
  .fbs-prod{
    grid-template-columns:48px minmax(0, 1fr);
  }
  .fbs-prod-img img{
    width:48px;
    height:48px;
  }
  .fbs-prod-actions{
    grid-column:1 / -1;
    justify-self:start;
  }
}
.fbs-modal-foot{
  margin-top:12px;
  display:flex;
  align-items:center;
  gap:10px;
}
body.fbs-modal-open{
  overflow:hidden;
}
select.fbs-variation-select {
    width: 25%;
}
.fbs-tier-actions button.button.fbs-open-picker {
    cursor: pointer;
    color: #252525;
    font-size: 10px;
    line-height: 1.2;
    padding: 3px 7px !important;
    border-radius: 6px;
    background-color: #F4DCD8;
  min-height: 30px;
}
.fbs-selected {
    display: none;
}
span.fbs-chosen-count {
    display: none;
}
span.fbs-chosen-count {
    display: none;
}
button.button.fbs-open-picker:hover {
    background-color: #F3DCD8 !important;
    color: #252525 !important;
}
.fbs-tier-sub {
    opacity: .7;
    font-size: 12px;
    color: #9a0000;
}
button.button.fbs-prod-choose {
    background-color: #F3DCD8 !important;
    color: #252525;
}
button#fbs_load_more {
  background-color: #F3DCD8 !important;
  color: #252525;
}