.wbf {
  font-family: inherit;
  color: #1d2423;
  background: #f7ece5;
  border: 1.5px solid #ecd2c1;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 16px;
  text-align: left;
  line-height: 1.35;
}
.wbf * { box-sizing: border-box; }
.wbf .wbf__msg,
.wbf .wbf__note { margin: 0 !important; padding: 0; }

.wbf__eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.wbf__tag {
  background: #000;
  color: #fff;
  padding: 3px 7px;
  border-radius: 3px;
  letter-spacing: .14em;
  white-space: nowrap;
}
.wbf__msg { font-size: 17px; font-weight: 700; line-height: 1.25; }
.wbf__note { font-size: 13px; }
.wbf__note a { color: inherit; font-weight: 700; text-decoration: underline; }

/* progress bar */
.wbf__bar { height: 12px; border-radius: 12px; background: #fff; overflow: hidden; }
.wbf__bar span { display: block; height: 100%; border-radius: 12px; background: #000; transition: width .5s ease; }
.wbf__scale { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; white-space: nowrap; }
.wbf.is-done .wbf__bar span { background: #2f7d4f; }
.wbf.is-done .wbf__msg { color: #2f7d4f; }

/* karty dárků */
.wbf__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wbf__g {
  display: flex;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 8px;
  min-width: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}
.wbf__g img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; flex: none; background: #f7ece5; }
.wbf__g b { display: block; font-size: 13px; line-height: 1.2; }
.wbf__g small { display: block; font-size: 11px; font-weight: 600; opacity: .75; }
button.wbf__g { cursor: pointer; }
button.wbf__g:hover { border-color: #5E7775; }
.wbf__g.is-on { border-color: #2f7d4f; background: #f2faf5; }
.wbf__g .wbf__chk { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d5dad9; flex: none; }
.wbf__g.is-on .wbf__chk { background: #2f7d4f; border-color: #2f7d4f; box-shadow: inset 0 0 0 3px #fff; }

/* ---------- umístění ---------- */
.wbf--mini { margin: 16px 0; }
/* .cart-inner je ve šabloně flex (sloupec) s order – blok jde pod produkty, před rekapitulaci.
   Pozor: flex-basis musí být auto, 100 % by ve sloupci znamenalo výšku a blok by se roztáhl. */
.wbf--cart,
.wbf-reco { width: 100%; flex: 0 0 auto; max-width: 100%; align-self: stretch; }
.wbf--cart { margin: 8px 0 20px; order: 2; }
.wbf-co { margin: 0 0 20px; }
.wbf-co.is-warn { background: #fff4e6; border-color: #f3c48f; }
.wbf-co.is-warn .wbf__msg { color: #b4570b; }

/* ---------- doporučené produkty v košíku ---------- */
.wbf-reco { margin: 0 0 24px; order: 3; }
.wbf-reco h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.wbf-reco__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wbf-reco__i {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: 12px;
  row-gap: 4px;
  background: #fff;
  border: 1px solid #e3e6e5;
  border-radius: 8px;
  padding: 12px;
  min-width: 0;
}
.wbf-reco__i img { grid-row: 1 / 5; width: 88px !important; height: 88px !important; max-width: 88px; object-fit: cover; border-radius: 6px; background: #f7ece5; }
.wbf-reco__n { font-weight: 700; font-size: 14px; line-height: 1.2; color: inherit; text-decoration: none; }
.wbf-reco__p { font-weight: 700; }
.wbf-reco__h { font-size: 11px; font-weight: 700; color: #2f7d4f; }
.wbf-reco__i .btn { margin-top: 6px; justify-self: start; padding: 8px 14px; font-size: 11px; }

/* ---------- nativní prvky Shoptetu (jen během akce) ---------- */
body.wbf-on [data-testid="giftMotivation"] { display: none !important; } /* nahrazeno blokem .wbf */
body.wbf-on .free-gift-row { background: #eef6f1 !important; }
body.wbf-on .free-gift-row .free-gift-price { color: #2f7d4f; font-weight: 800; }
body.wbf-on .order-summary-item.gift-items { background: #eef6f1; border-radius: 6px; padding: 4px 6px; }
body.wbf-on .order-summary-item.gift-items .cart-item-price { color: #2f7d4f; font-weight: 800; }

/* ---------- responzivita ---------- */
@media (max-width: 900px) {
  .wbf-reco__grid { grid-template-columns: 1fr; }
}
/* úzké sloupce dárků na mobilu: menší obrázek, bez kolečka (výběr ukazuje zelený rámeček) */
.wbf__g > span:not(.wbf__chk) { min-width: 0; }
@media (max-width: 480px) {
  .wbf__g { gap: 8px; padding: 6px; }
  .wbf__g img { width: 40px; height: 40px; }
  .wbf__g b { overflow-wrap: anywhere; }
  .wbf__g .wbf__chk { display: none; }
}
@media (max-width: 340px) {
  .wbf__pair { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .wbf__bar span { transition: none; }
}