/* --- Wrapper --- */
.wcfbt{
  margin-top: 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  background: #fff;
}
.wcfbt__head{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
}
.wcfbt__title{
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.wcfbt__info{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.25);
  background: #fff;
  color: rgba(0,0,0,.75);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

/* --- Desktop layout --- */
.wcfbt__desktop{ display: block; }
.wcfbt__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 14px;
  flex-wrap: nowrap;
}
.wcfbt__item{ width: 210px; }
.wcfbt__cardlink{
  display: grid;
  justify-items: center;
  gap: 8px;
  text-decoration: none;
}
.wcfbt__img img{ width: 70px; height: auto; }
.wcfbt__name{
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  color: rgba(0,0,0,.85);
}
.wcfbt__total {
    display: inline-flex;
    flex-flow: column-reverse;
    width: 100%;
    text-align: center;
}
.wcfbt__sign{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--fs-color-secondary);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  flex-shrink: 0;
}
.wcfbt__sign--eq{ background: var(--fs-color-secondary); }

.wcfbt__cta{
  display: grid;
  gap: 10px;
  align-items: center;
  justify-items: end;
  min-width: 260px;
}
.wcfbt__totalNow{
  font-size: 18px;
  font-weight: 900;
  color: #d22;
  text-align: right;
}
.wcfbt__totalMeta{
  display:flex;
  gap: 10px;
  align-items:center;
  justify-content:flex-end;
  margin-top: 4px;
}
.wcfbt__old{
  opacity:.55;
  text-decoration: line-through;
  font-weight: 600;
}
.wcfbt__save{
    display:none;
  font-weight: 800;
  color: #0a7a3d;
}

.wcfbt__btn {
    border: 0;
    border-radius: 6px;
    padding: 5px 18px;
    background: linear-gradient(90deg, #B65A09, var(--fs-color-secondary));
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}
.wcfbt__btn--full{
  width: 100%;
  justify-content: center;
}
.wcfbt__btn[disabled]{ opacity:.65; cursor:not-allowed; }

/* --- Mobile layout --- */
.wcfbt__mobile{ display:none; }
@media (max-width: 860px){
    .wcfbt__totalNow {text-align:center;}
  .wcfbt__desktop{ display:none; }
  .wcfbt__mobile{ display:block; }
  .wcfbt__stack{ padding: 14px 12px; }
  .wcfbt__mitem{
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }
  .wcfbt__mcardlink{
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    align-items: center;
    text-decoration: none;
  }
  .wcfbt__mimg img{ width: 56px; height: auto; }
  .wcfbt__mname{
    font-size: 13px;
    line-height: 1.25;
    color: rgba(0,0,0,.88);
  }
  .wcfbt__msign {
        width: 34px;
        height: 34px;
        border-radius: 999px;
        background: var(--fs-color-secondary);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 22px;
        font-weight: 800;
        margin: auto;
        margin-top: -16px;
    }
  .wcfbt__msign--eq{ background:var(--fs-color-secondary); }

  .wcfbt__mfooter{
    display:grid;
    gap: 10px;
    padding-top: 8px;
  }
  .wcfbt__mtotal{
    text-align:center;
  }
  .wcfbt__mtotal .wcfbt__totalNow{
    font-size: 22px;
  }
  .wcfbt__totalMeta{
    justify-content:center;
  }
}

/* --- Modal --- */
.wcfbt-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}
.wcfbt-modal.is-open{ display:block; }
.wcfbt-modal__overlay{
  position:absolute; inset:0;
  background: rgba(0,0,0,.45);
}
.wcfbt-modal__panel{
  position:absolute;
  left: 12px; right: 12px; bottom: 12px;
  background:#fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.12);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
  overflow:hidden;
}
@media (min-width: 861px){
  .wcfbt-modal__panel{
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%,-50%);
    width: min(520px, calc(100% - 24px));
  }
}
.wcfbt-modal__top{
  display:flex;
  justify-content: space-between;
  align-items:center;
  padding: 12px 14px;
  background: rgba(0,0,0,.02);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.wcfbt-modal__title{ font-weight: 900; }
.wcfbt-modal__close{
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  background:#fff;
  cursor:pointer;
  font-size: 20px;
  line-height: 1;
}
.wcfbt-modal__content{ padding: 12px 14px 14px 14px; }
.wcfbt-modal__list{
  margin: 0;
  padding: 0 0 0 16px;
}

/* Lock scroll */
.wcfbt-lock{ overflow:hidden; }
