/*
 * Panel gratisów — siedzi w kolumnie z produktami, nad tabelą koszyka, więc jest
 * węższy i niższy niż sam koszyk. Wartości z motywu Labs212: $primary #815b46,
 * $black #404040, nazwy produktów #252525, szary #999999, przyciski bez zaokrągleń.
 */

.labs212-gifts {
  border: 1px solid rgba(129, 91, 70, 0.45);
  background: #fdfbfa;
  padding: 14px 16px;
  margin: 0 0 18px;
  font-family: "Krub", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #404040;
}

.labs212-gifts.is-open {
  border-color: #815b46;
}

/* Nagłówek: tytuł i jeden znacznik stanu po prawej. */
.labs212-gifts__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.labs212-gifts__title {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  color: #404040;
  margin: 0;
}

.labs212-gifts__chip {
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  color: #815b46;
  background: #f2e9e4;
  padding: 3px 8px;
  white-space: nowrap;
}

/* Progi jako odcinki — widać, ile jest progów, co dają i na którym się stoi. */
.labs212-gifts__steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.labs212-gifts__step {
  border-top: 3px solid #e4dcd7;
  padding-top: 5px;
  font-size: 11px;
  line-height: 15px;
  color: #999999;
}

.labs212-gifts__step b {
  display: block;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: #404040;
}

.labs212-gifts__step.is-done {
  border-top-color: #815b46;
}

.labs212-gifts__step.is-done b {
  color: #815b46;
}

.labs212-gifts__step.is-done b::before {
  content: "✓ ";
}

.labs212-gifts__step.is-next {
  border-top-color: #c9b3a7;
}

.labs212-gifts__step.is-next b {
  color: #404040;
}

.labs212-gifts__lead {
  font-size: 12px;
  line-height: 18px;
  color: #666666;
  margin: 8px 0 0;
}

/* Lista gratisów: wiersz zamiast kafla — w kolumnie koszyka kafle są za duże. */
.labs212-gifts__list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  border-top: 1px solid rgba(64, 64, 64, 0.12);
}

.labs212-gifts__tile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  margin: 0;
  border-bottom: 1px solid rgba(64, 64, 64, 0.12);
}

.labs212-gifts__tile::before {
  content: none; /* motyw lubi dokładać punktory do li */
}

.labs212-gifts__tile.is-locked {
  opacity: 0.6;
}

.labs212-gifts__thumb {
  width: 44px;
  height: 44px;
  background: #f5f2f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.labs212-gifts__thumb img {
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.labs212-gifts__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.labs212-gifts__name {
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  color: #252525;
  margin: 0;
}

.labs212-gifts__flag {
  font-size: 11px;
  line-height: 15px;
  font-weight: 600;
  color: #815b46;
}

.labs212-gifts__flag::before {
  content: "✓";
  margin-right: 4px;
}

.labs212-gifts__from {
  font-size: 11px;
  line-height: 15px;
  color: #999999;
}

.labs212-gifts__variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.labs212-gifts__pill {
  font-family: inherit;
  font-size: 11px;
  line-height: 15px;
  padding: 4px 10px;
  border: 1px solid rgba(64, 64, 64, 0.3);
  background: #ffffff;
  color: #404040;
  border-radius: 0;
  cursor: pointer;
}

.labs212-gifts__pill.is-active {
  border-color: #815b46;
  background: #815b46;
  color: #ffffff;
  font-weight: 600;
}

.labs212-gifts__pill[disabled] {
  cursor: default;
  opacity: 0.6;
}

.labs212-gifts__prices {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.labs212-gifts__price {
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
}

.labs212-gifts__regular {
  font-size: 11px;
  line-height: 15px;
  color: #999999;
  text-decoration: line-through;
}

.labs212-gifts__btn {
  font-family: inherit;
  font-size: 12px;
  line-height: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid #815b46;
  background: #815b46;
  color: #ffffff;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.labs212-gifts__btn:hover:not([disabled]) {
  background: transparent;
  color: #815b46;
}

.labs212-gifts__btn--out {
  background: transparent;
  color: #815b46;
  border-color: rgba(129, 91, 70, 0.4);
}

.labs212-gifts__btn--out:hover:not([disabled]) {
  background: #815b46;
  border-color: #815b46;
  color: #ffffff;
}

.labs212-gifts__btn[disabled] {
  background: transparent;
  border-color: #d8d8d8;
  color: #999999;
  cursor: default;
}

.labs212-gifts__note {
  font-size: 11px;
  line-height: 16px;
  color: #999999;
  margin: 10px 0 0;
}

.labs212-gifts__message {
  font-size: 12px;
  line-height: 18px;
  color: #b81c23;
  font-weight: 600;
  margin-top: 8px;
}

.labs212-gifts__message:empty {
  display: none;
}

.labs212-gifts.is-busy {
  opacity: 0.6;
  pointer-events: none;
}

/* Wąska kolumna i telefon: cena pod nazwą, przycisk po prawej. */
@media (max-width: 600px) {
  .labs212-gifts {
    padding: 12px 14px;
  }

  .labs212-gifts__steps {
    gap: 4px;
  }

  .labs212-gifts__step {
    font-size: 10px;
    line-height: 14px;
  }

  .labs212-gifts__tile {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "thumb name button"
      "thumb price button";
    column-gap: 10px;
    row-gap: 2px;
  }

  .labs212-gifts__thumb {
    grid-area: thumb;
    width: 40px;
    height: 40px;
  }

  .labs212-gifts__body {
    grid-area: name;
  }

  .labs212-gifts__prices {
    grid-area: price;
  }

  .labs212-gifts__btn {
    grid-area: button;
    min-height: 40px;
  }
}
