/**
 * Koszyk - blok wsparcia Fundacji La vie la vie.
 * Kolor fundacji: #e586a4. Pozostałe tokeny (linie, tekst, fonty)
 * jak w ne-cart.css, żeby blok wyglądał jak reszta koszyka.
 */

.ne-lvlv {
  --lvlv: #e586a4;
  --lvlv-ink: #b5466c;
  --lvlv-soft: #fdf1f5;
  --lvlv-line: #f6d3df;

  position: relative;
  margin-bottom: 20px;
  border: 1px solid var(--lvlv-line);
  border-radius: 0;
  background: #fff;
  overflow: hidden;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
}

/* Motywy inne niż "ne" (np. Jevelin) - blok w .cart-collaterals nad podsumowaniem. */
.ne-lvlv--generic {
  box-sizing: border-box;
  margin-top: 30px;
  margin-bottom: 0;
}

.ne-lvlv--generic *,
.ne-lvlv--generic *::before,
.ne-lvlv--generic *::after {
  box-sizing: border-box;
}

.ne-lvlv--generic .ne-lvlv__title {
  text-transform: none;
}

/* Motywy (np. Jevelin) nadają inputom własną ramkę, tło, padding i
   pogrubioną kursywę - zerujemy to, ramkę rysuje tylko .ne-lvlv__input. */
.ne-lvlv .ne-lvlv__input input[type="text"],
.ne-lvlv .ne-lvlv__input input[type="text"]:focus {
  height: auto;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
  line-height: normal;
  font-style: normal;
  font-weight: 400;
}

.ne-lvlv .ne-lvlv__input input[type="text"]::placeholder {
  font-style: normal;
  font-weight: 400;
}

.ne-lvlv.is-active {
  border-color: var(--lvlv);
  box-shadow: 0 0 0 1px var(--lvlv);
}

.ne-lvlv.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ── Nagłówek ─────────────────────────────────────────── */
.ne-lvlv__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--lvlv-soft);
  border-bottom: 1px solid var(--lvlv-line);
}

.ne-lvlv__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--lvlv);
  color: #fff;
}

.ne-lvlv__icon svg {
  width: 18px;
  height: 18px;
}

.ne-lvlv__eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lvlv-ink);
  margin-bottom: 2px;
}

.ne-lvlv__title {
  font-family: "Montserrat", sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink, #0a0a0a);
}

.ne-lvlv__em {
  color: var(--lvlv-ink);
}

/* ── Treść ────────────────────────────────────────────── */
.ne-lvlv__body {
  padding: 20px 24px 22px;
}

.ne-lvlv__desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2, #3a3a3a);
}

.ne-lvlv__amounts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.ne-lvlv__chip {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  height: 44px;
  padding: 0 8px;
  border: 1.5px solid var(--lvlv-line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink, #0a0a0a);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 41px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.ne-lvlv__chip small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.7;
}

.ne-lvlv__chip:hover {
  border-color: var(--lvlv);
  color: var(--lvlv-ink);
}

.ne-lvlv__chip.is-on {
  background: var(--lvlv);
  border-color: var(--lvlv);
  color: #fff;
}

.ne-lvlv__chip:focus-visible,
.ne-lvlv__btn:focus-visible,
.ne-lvlv__remove:focus-visible {
  outline: 2px solid var(--lvlv-ink);
  outline-offset: 2px;
}

/* ── Inna kwota ───────────────────────────────────────── */
.ne-lvlv__custom {
  display: flex;
  gap: 8px;
}

.ne-lvlv__input {
  flex: 1;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--lvlv-line);
  border-radius: 999px;
  background: #fff;
  cursor: text;
  min-width: 0;
}

.ne-lvlv__input:focus-within {
  border-color: var(--lvlv);
}

.ne-lvlv__input input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink, #0a0a0a);
  outline: none;
  box-shadow: none;
}

.ne-lvlv__input input::placeholder {
  color: var(--ink-3, #7a7a7a);
}

.ne-lvlv__cur {
  margin-left: 8px;
  font-size: 12px;
  color: var(--ink-3, #7a7a7a);
}

.ne-lvlv__btn {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--lvlv);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
}

.ne-lvlv__btn:hover {
  background: var(--lvlv-ink);
}

/* ── Komunikaty ───────────────────────────────────────── */
.ne-lvlv__msg {
  margin: 0;
  font-size: 12px;
  color: #7a1e1e;
}

.ne-lvlv.has-error .ne-lvlv__msg {
  margin-top: 8px;
}

.ne-lvlv.has-error .ne-lvlv__input {
  border-color: #c96161;
}

.ne-lvlv__thanks {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 0;
  background: var(--lvlv-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--lvlv-ink);
}

.ne-lvlv__thanks .woocommerce-Price-amount {
  font-weight: 700;
}

.ne-lvlv__remove {
  flex-shrink: 0;
  border: 0;
  padding: 0;
  background: none;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #3a3a3a);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ne-lvlv__remove:hover {
  color: var(--lvlv-ink);
}

/* Wiersz opłaty w podsumowaniu koszyka - akcent w kolorze fundacji. */
.ne-sum-row.ne-lvlv-fee .ne-sum-row__lbl::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: #e586a4;
  vertical-align: middle;
}

@media (max-width: 480px) {
  .ne-lvlv__head,
  .ne-lvlv__body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ne-lvlv__amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}
