.t4lfs-free-shipping-card {
  margin: 0 0 18px;
  padding: 16px 18px;
  border: 1px solid #ececec;
  border-radius: 12px;
  background: #fff;
}

.t4lfs-free-shipping-card__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

/* Pasek i drugorzędne CTA są jednym wierszem. Główne różowe CTA checkoutu
   pozostaje wizualnie najważniejszą akcją na stronie. */
.t4lfs-free-shipping-card__progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.t4lfs-free-shipping-card__track {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #f0f0f0;
}

.t4lfs-free-shipping-card__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #ff4da6;
  transition: width .25s ease;
}

.t4lfs-free-shipping-card.is-reached .t4lfs-free-shipping-card__bar {
  width: 100% !important;
}

.t4lfs-free-shipping-card__button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 76px !important;
  min-height: 34px !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid #ff4da6 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #e60073 !important;
  font: inherit !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease !important;
}

.t4lfs-free-shipping-card__button:hover,
.t4lfs-free-shipping-card__button:focus-visible {
  border-color: #e60073 !important;
  background: #fff2f8 !important;
  color: #c90065 !important;
}

.t4lfs-free-shipping-card__button:focus-visible {
  outline: 3px solid rgba(255, 77, 166, .22) !important;
  outline-offset: 2px !important;
}

.t4lfs-free-shipping-card__button:active {
  transform: translateY(1px);
}

@media (max-width: 575px) {
  .t4lfs-free-shipping-card {
    padding: 14px 14px;
  }

  .t4lfs-free-shipping-card__progress-row {
    gap: 8px;
  }

  .t4lfs-free-shipping-card__button {
    min-width: 70px !important;
    min-height: 32px !important;
    padding: 5px 10px !important;
    font-size: 12px !important;
  }
}

.t4lfs-reco-modal[hidden] {
  display: none !important;
}

.t4lfs-reco-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  isolation: isolate;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.t4lfs-reco-modal.is-open {
  display: flex;
}

.t4lfs-reco-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, .55);
}

.t4lfs-reco-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  overflow: auto;
  padding: 26px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
}

.t4lfs-reco-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #222;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.t4lfs-reco-modal__head {
  padding-right: 42px;
}

.t4lfs-reco-modal__head h3 {
  margin: 0 0 6px;
  font-size: 26px;
}

.t4lfs-reco-modal__head p {
  margin: 0 0 20px;
  color: #5d6470;
}

.t4lfs-reco-modal__loading,
.t4lfs-reco-modal__empty {
  padding: 30px 0;
  text-align: center;
}

.t4lfs-reco-modal__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.t4lfs-reco-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
}

.t4lfs-reco-card__image-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 9px;
  background: #f7f7f7;
}

.t4lfs-reco-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.t4lfs-reco-card__name {
  display: -webkit-box;
  margin: 10px 0 8px;
  overflow: hidden;
  color: #171a20;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.t4lfs-reco-card__price {
  margin-top: auto;
  font-size: 16px;
  font-weight: 800;
}

.t4lfs-reco-card__add {
  margin-top: 10px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: #ff4da6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.t4lfs-reco-card__add:hover {
  background: #e60073;
}

.t4lfs-reco-card__add[disabled] {
  opacity: .55;
  cursor: wait;
}

.t4lfs-reco-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #eee;
}

.t4lfs-reco-modal__secondary,
.t4lfs-reco-modal__continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.t4lfs-reco-modal__secondary {
  border: 1px solid #d6d9df;
  background: #fff;
  color: #222;
}

.t4lfs-reco-modal__continue {
  border: 1px solid #ff4da6;
  background: #ff4da6;
  color: #fff;
}

body.t4lfs-modal-open {
  overflow: hidden;
}

@media (max-width: 991px) {
  .t4lfs-reco-modal__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575px) {
  .t4lfs-reco-modal { padding: 10px; }
  .t4lfs-reco-modal__dialog { padding: 20px 14px; border-radius: 14px; }
  .t4lfs-reco-modal__products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .t4lfs-reco-modal__footer { flex-direction: column-reverse; }
  .t4lfs-reco-modal__secondary, .t4lfs-reco-modal__continue { width: 100%; }
}


/* Tryb „Wybrane kategorie” */
.t4lfs-reco-modal__products.is-grouped {
  display: block;
}

.t4lfs-reco-group + .t4lfs-reco-group {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #eeeeee;
}

.t4lfs-reco-group__title {
  margin: 0 0 12px;
  color: #171a20;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.t4lfs-reco-group__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 575px) {
  .t4lfs-reco-group + .t4lfs-reco-group {
    margin-top: 18px;
    padding-top: 16px;
  }
  .t4lfs-reco-group__title {
    font-size: 16px;
  }
  .t4lfs-reco-group__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
}
