/* ═══════════════════════════════════════
   LaserArt Dekoracje – koszyk.css
   Style widoku koszyka / podsumowania zamówienia
═══════════════════════════════════════ */

/* ═══ LAYOUT KOSZYKA ═══ */
.uklad-koszyk {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}
.kolumna-glowna { display: flex; flex-direction: column; gap: 20px; }
.kolumna-boczna { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 90px; }

/* ═══ SEKCJA ═══ */
.sekcja-koszyk {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh);
}
.naglowek-sekcji {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.naglowek-sekcji i { color: var(--green); flex-shrink: 0; font-size: 15px; }
.naglowek-sekcji h2 {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

/* ═══ KOSZYK PUSTY ═══ */
.koszyk-pusty {
  padding: 48px 22px;
  text-align: center;
  color: var(--soft);
}
.koszyk-pusty i {
  font-size: 48px;
  color: var(--border);
  display: block;
  margin-bottom: 16px;
}
.koszyk-pusty h4 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}
.koszyk-pusty p { font-size: 14px; margin-bottom: 20px; }
.btn-wroc-sklep {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 24px;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  font-weight: 700;
  transition: background .18s;
}
.btn-wroc-sklep:hover { background: var(--green-l); color: var(--white); }

/* ═══ TABELA PRODUKTÓW ═══ */
.tabela-produktow { width: 100%; border-collapse: collapse; }
.tabela-produktow th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--soft);
  padding: 12px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.tabela-produktow th:not(:first-child) { text-align: center; }
.tabela-produktow th:last-child { text-align: right; }
.tabela-produktow td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.tabela-produktow tr:last-child td { border-bottom: none; }
.tabela-produktow td:not(:first-child) { text-align: center; }
.tabela-produktow td:last-child { text-align: right; }

.komorka-produkt { display: flex; align-items: center; gap: 14px; }
.nr-pozycji {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg2); border: 1px solid var(--border);
  font-size: 11px; font-weight: 700; color: var(--soft);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.miniatura-produktu {
  width: 62px; height: 56px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; flex-shrink: 0;
}
.miniatura-produktu img {
  max-width: 100%; max-height: 100%; object-fit: contain;
}
.info-produktu .nazwa {
  font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 3px;
}
.info-produktu .atrybuty-podglad {
  font-size: 11.5px; color: var(--soft); margin-bottom: 4px; line-height: 1.5;
}
.info-produktu .atrybut-pozycja {
  display: inline-block; margin-right: 8px;
}
.info-produktu .atrybut-pozycja .atrybut-nazwa { font-weight: 600; }
.price-modifier { color: var(--soft); font-size: 10px; }

.cena-jednostkowa { font-size: 13px; color: var(--soft); }

/* ═══ KONTROLKA ILOŚCI ═══ */
.kontrolka-ilosci {
  display: inline-flex; align-items: center; gap: 0;
  border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden;
}
.btn-ilosc {
  width: 30px; height: 30px; border: none; background: var(--bg2);
  cursor: pointer; font-size: 15px; color: var(--text); font-weight: 700;
  transition: background .15s; display: flex; align-items: center; justify-content: center;
}
.btn-ilosc:hover { background: var(--border); }
.wartosc-ilosci {
  width: 44px; height: 30px; border: none;
  border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
  text-align: center; font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700;
  color: var(--text); background: var(--white);
  -moz-appearance: textfield;
}
.wartosc-ilosci::-webkit-outer-spin-button,
.wartosc-ilosci::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cena-laczna {
  font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 600; color: var(--green);
}

/* ═══ AKCJE WIERSZA ═══ */
.akcje-wiersza { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.btn-akcja {
  width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--border);
  background: transparent; cursor: pointer; display: flex; align-items: center;
  justify-content: center; color: var(--soft); transition: all .18s;
}
.btn-akcja:hover { border-color: var(--green); color: var(--green); background: rgba(74,103,65,.06); }
.btn-akcja.usun:hover { border-color: #b84040; color: #b84040; background: rgba(184,64,64,.06); }
.btn-akcja i { font-size: 12px; }

/* ═══ WIERSZ SUMY TABELI ═══ */
.wiersz-suma-tabeli td {
  padding: 14px 22px;
  border-top: 2px solid var(--border) !important;
  border-bottom: none !important;
  background: var(--bg2);
}
.etykieta-suma-tabeli {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft);
}
.wartosc-suma-tabeli {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 600; color: var(--green);
}

/* ═══ ALERTY DARMOWEJ DOSTAWY ═══ */
.alert-dostawa {
  margin: 14px 22px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-dostawa i { flex-shrink: 0; margin-top: 2px; }
.alert-dostawa.sukces { background: rgba(74,103,65,.1); color: var(--green); border: 1px solid rgba(74,103,65,.2); }
.alert-dostawa.info { background: rgba(184,147,90,.1); color: var(--gold); border: 1px solid rgba(184,147,90,.25); }
.alert-powrot-podsumowanie {
  margin: 0 0 18px;
}

/* ═══ OPCJE DOSTAWY ═══ */
.lista-dostawy { display: flex; flex-direction: column; gap: 0; }
.opcja-dostawy {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 22px; cursor: pointer; transition: background .15s;
  border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.opcja-dostawy:last-child { border-bottom: none; }
.opcja-dostawy:hover { background: var(--bg2); }
.opcja-dostawy.aktywna { background: rgba(74,103,65,.06); }
.radio-dostawy {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0; position: relative;
  transition: border-color .15s;
}
.opcja-dostawy.aktywna .radio-dostawy { border-color: var(--green); }
.opcja-dostawy.aktywna .radio-dostawy::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.ikona-dostawy {
  width: 42px; height: 38px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
  color: var(--soft);
}
.ikona-dostawy img { width: 28px; height: 28px; object-fit: contain; }
.info-dostawy { flex: 1; min-width: 0; }
.info-dostawy .nazwa { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.info-dostawy .opis { font-size: 11.5px; color: var(--soft); line-height: 1.5; }
.info-dostawy .promo-dostawa {
  font-size: 11px; color: #b84040; font-weight: 700; margin-top: 4px; display: block;
}
.info-dostawy .darmowa-dostawa-info {
  font-size: 11px; color: var(--green); font-weight: 600; margin-top: 3px; display: block;
}
.cena-dostawy {
  font-size: 14px; font-weight: 700; color: var(--text); flex-shrink: 0;
}
.cena-dostawy.darmowa { color: var(--green); }
.cena-dostawy .oryginalna-cena {
  display: block; font-size: 10px; color: var(--soft); font-weight: 400;
  text-decoration: line-through;
}

/* Sekcja paczkomatu */
.paczkomat-selection {
  display: none; width: 100%; margin-top: 12px;
  padding: 14px; background: var(--bg2); border-radius: 10px;
  border: 1px solid var(--border);
}
.paczkomat-selection.show { display: block; }
.paczkomat-selection.is-invalid {
  border-color: #b84040;
  box-shadow: 0 0 0 3px rgba(184,64,64,.08);
}
.paczkomat-header {
  font-size: 12px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; display: flex; align-items: center; gap: 6px;
}
/* Wyszukiwarka paczkomatu */
.paczkomat-search-wrapper {
  position: relative; display: flex; align-items: center;
}
.paczkomat-search-input {
  width: 100%; padding: 8px 36px 8px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Lato', sans-serif; font-size: 13px; color: var(--text);
  background: var(--white); outline: none; transition: border-color .2s;
}
.paczkomat-search-input:focus { border-color: var(--green); }
.paczkomat-search-input.is-invalid {
  border-color: #b84040;
  box-shadow: 0 0 0 3px rgba(184,64,64,.08);
}
.paczkomat-search-input.is-invalid:focus {
  border-color: #b84040;
}
.paczkomat-search-spinner {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--green); font-size: 13px; pointer-events: none;
}
.paczkomat-wyniki {
  border: 1.5px solid var(--border); border-radius: 8px; background: var(--white);
  max-height: 280px; overflow-y: auto; margin-top: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 10; position: relative;
}
.wyniki-naglowek {
  padding: 7px 14px; font-size: 11px; font-weight: 700; color: var(--green);
  background: rgba(74,103,65,.06); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 6px; letter-spacing: .3px;
}
.wynik-paczkomat {
  padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--border);
  transition: background .15s, border-left-color .15s;
  display: flex; align-items: center; gap: 10px;
  border-left: 3px solid transparent;
}
.wynik-paczkomat:last-child { border-bottom: none; }
.wynik-paczkomat:hover {
  background: rgba(74,103,65,.07);
  border-left-color: var(--green);
}
.wynik-lewa {
  flex-shrink: 0;
}
.wynik-ikona {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(74,103,65,.1); color: var(--green); font-size: 14px;
}
.wynik-prawa {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px;
}
.wynik-naglowek-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.wynik-kod {
  font-size: 12.5px; font-weight: 800; color: var(--text);
  background: rgba(74,103,65,.12); color: var(--green);
  padding: 1px 7px; border-radius: 5px; letter-spacing: .5px;
}
.wynik-dystans {
  font-size: 10.5px; font-weight: 600; color: var(--soft);
  display: flex; align-items: center; gap: 3px;
}
.wynik-adres {
  font-size: 12px; color: var(--text); display: flex; align-items: center; gap: 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wynik-adres i { color: var(--green); font-size: 10px; flex-shrink: 0; }
.wynik-miasto {
  font-size: 11px; color: var(--soft);
}
.wynik-strzalka {
  flex-shrink: 0; color: var(--border); font-size: 11px; transition: color .15s;
}
.wynik-paczkomat:hover .wynik-strzalka { color: var(--green); }
.paczkomat-label {
  font-size: 11px; color: var(--soft); margin-top: 5px; margin-bottom: 8px; display: block;
}
.selected-paczkomat { display: none; margin-top: 10px; }
.selected-paczkomat.show { display: block; }
.paczkomat-success {
  background: rgba(74,103,65,.08); border: 1px solid rgba(74,103,65,.2);
  border-radius: 8px; padding: 10px 14px;
}
.paczkomat-success h6 {
  font-size: 12px; color: var(--green); margin-bottom: 4px; font-weight: 700;
}
.paczkomat-success p { font-size: 12px; color: var(--text); margin: 0; line-height: 1.5; }
.paczkomat-message { margin-top: 8px; font-size: 12px; padding: 8px 12px; border-radius: 7px; }
.paczkomat-message.alert-success { background: rgba(74,103,65,.1); color: var(--green); }
.paczkomat-message.alert-danger { background: rgba(184,64,64,.1); color: #b84040; }

.wiersz-suma-dostawa {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 14px 22px; border-top: 1px solid var(--border); background: var(--bg2);
}
.etykieta-razem { font-size: 12px; color: var(--soft); }
.wartosc-razem {
  font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 600; color: var(--text);
}

/* ═══ PŁATNOŚCI ═══ */
.lista-platnosci { display: flex; flex-direction: column; gap: 0; }
.opcja-platnosci {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 22px; cursor: pointer; transition: background .15s;
  border-bottom: 1px solid var(--border);
}
.opcja-platnosci:last-child { border-bottom: none; }
.opcja-platnosci:hover { background: var(--bg2); }
.opcja-platnosci.aktywna { background: rgba(74,103,65,.06); }
.ikona-platnosci {
  width: 42px; height: 38px; border-radius: 10px;
  background: var(--bg2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--soft); flex-shrink: 0;
}
.ikona-platnosci img { width: 28px; height: 28px; object-fit: contain; }
.info-platnosci { flex: 1; min-width: 0; }
.info-platnosci .nazwa { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.info-platnosci .opis { font-size: 11.5px; color: var(--soft); line-height: 1.5; margin-bottom: 6px; }
.info-platnosci .instrukcje { font-size: 11px; color: var(--soft); font-style: italic; }
.znacznik-aktywny {
  width: 20px; height: 20px; border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
.znacznik-aktywny i { font-size: 10px; color: white; }
.znacznik-nieaktywny {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border); flex-shrink: 0; margin-top: 2px;
}

/* ═══ PASEK KORZYŚCI ═══ */
.pasek-korzysci {
  display: flex; align-items: center; gap: 20px;
  padding: 14px 22px; flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.korzysc {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--soft); flex: 1; min-width: 160px;
}
.korzysc i { color: var(--green); flex-shrink: 0; }

/* ═══ PODSUMOWANIE BOCZNE ═══ */
.box-podsumowania {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden; box-shadow: var(--sh);
}
.naglowek-podsumowania {
  padding: 14px 20px; background: var(--green);
  font-family: 'Lato', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--white);
}
.wiersze-podsumowania { padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.wiersz-p {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--soft);
}
.wiersz-p.razem {
  font-size: 15px; font-weight: 700; color: var(--text);
  padding-top: 8px; border-top: 1px solid var(--border);
  margin-top: 2px;
}
.wiersz-p.razem span:last-child {
  font-family: 'Playfair Display', serif; font-size: 20px; color: var(--green);
}
.btn-zloz {
  display: block; width: 100%; background: var(--green); color: var(--white);
  border: none; border-radius: 0 0 16px 16px; padding: 16px;
  font-family: 'Lato', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .06em; cursor: pointer; transition: background .18s;
  text-align: center;
}
.btn-zloz:hover { background: var(--green-l); }

/* ═══ BOX KOD RABATOWY ═══ */
.box-kod {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  box-shadow: var(--sh);
}
.box-kod p { font-size: 12px; font-weight: 700; color: var(--soft); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
.wiersz-kod { display: flex; gap: 8px; }
.wiersz-kod input {
  flex: 1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px;
  font-family: 'Lato', sans-serif; font-size: 13px; color: var(--text); background: var(--bg);
  outline: none; transition: border-color .2s;
}
.wiersz-kod input:focus { border-color: var(--green); }
.wiersz-kod button {
  padding: 9px 14px; background: var(--green-dark); color: var(--white);
  border: none; border-radius: 8px; font-family: 'Lato', sans-serif; font-size: 12px;
  font-weight: 700; cursor: pointer; white-space: nowrap; transition: background .18s;
}
.wiersz-kod button:hover { background: var(--green); }

/* ═══ MODAL EDYCJI OPCJI ═══ */
.koszyk-modal-opcje .modal-dialog {
  width: min(680px, calc(100vw - 24px));
  max-width: 680px;
  margin: 6vh auto;
}

.koszyk-modal-opcje .modal-content {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdfa 0%, #f8f3eb 100%);
  box-shadow: 0 28px 80px rgba(34, 27, 18, .24);
  overflow: hidden;
}

.koszyk-modal-opcje .modal-close-opcje {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(74,103,65,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all .18s;
}

.koszyk-modal-opcje .modal-close-opcje:hover {
  color: var(--green);
  border-color: rgba(74,103,65,.24);
  background: #fff;
}

.attribute-editor-container {
  padding: 20px;
}

.attribute-editor-header {
  padding-right: 44px;
  margin-bottom: 16px;
}

.attribute-editor-eyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

.attribute-editor-title {
  margin: 0 0 6px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.1;
  color: var(--text);
}

.attribute-editor-subtitle {
  margin: 0;
  max-width: 460px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--soft);
}

.attribute-editor-body {
  max-height: min(56vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}


.attribute-editor-form {
  display: block;
}

.attribute-editor-fields-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(255,255,255,0.92);
  border-radius: 12px;
  padding: 10px 8px;
}

.attribute-editor-field {
  padding: 7px 10px 7px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  margin-bottom: 0;
}

.attribute-editor-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.attribute-editor-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(184,64,64,.1);
  color: #b84040;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.attribute-editor-select,
.attribute-editor-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.attribute-editor-select:focus,
.attribute-editor-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(74,103,65,.08);
}

.attribute-editor-options {
  display: grid;
  gap: 8px;
}

.attribute-editor-choice {
  position: relative;
}

.attribute-editor-choice-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.attribute-editor-choice-label {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: all .18s;
}

.attribute-editor-choice-input:checked + .attribute-editor-choice-label {
  border-color: rgba(74,103,65,.32);
  background: rgba(74,103,65,.07);
  box-shadow: 0 10px 24px rgba(74,103,65,.08);
}

.attribute-editor-choice-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.attribute-editor-choice-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.attribute-editor-choice-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  margin-top: 1px;
  position: relative;
}

.attribute-editor-choice-input:checked + .attribute-editor-choice-label .attribute-editor-choice-mark {
  border-color: var(--green);
}

.attribute-editor-choice-input:checked + .attribute-editor-choice-label .attribute-editor-choice-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  transform: translate(-50%, -50%);
}

.attribute-editor-state {
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  color: var(--soft);
}

.attribute-editor-state p {
  margin: 0;
  line-height: 1.6;
}

.attribute-editor-state-error {
  color: #8c3e32;
}

.attribute-editor-spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(74,103,65,.15);
  border-top-color: var(--green);
  animation: koszykSpin .8s linear infinite;
}

@keyframes koszykSpin {
  to { transform: rotate(360deg); }
}

.attribute-editor-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(74,103,65,.1);
}

.attribute-editor-btn {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .18s;
}

.attribute-editor-btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--soft);
}

.attribute-editor-btn-secondary:hover {
  color: var(--text);
  border-color: rgba(74,103,65,.18);
  background: rgba(255,255,255,.72);
}

.attribute-editor-btn-primary {
  background: var(--green);
  color: var(--white);
}

.attribute-editor-btn-primary:hover {
  background: var(--green-l);
}

.attribute-editor-btn[disabled] {
  opacity: .7;
  cursor: wait;
}

/* ═══ CENA ZAKTUALIZOWANA ═══ */
.price-updated { animation: flash-green .5s ease; }
@keyframes flash-green {
  0% { color: var(--green); }
  50% { color: var(--green-l); transform: scale(1.04); }
  100% { color: var(--green); }
}

/* ═══ RESPONSIVE ═══ */
@media(max-width: 900px) {
  .uklad-koszyk { grid-template-columns: 1fr; }
  .kolumna-boczna { position: static; }
  .tabela-produktow th:nth-child(2),
  .tabela-produktow td:nth-child(2) { display: none; }
  .koszyk-modal-opcje .modal-dialog {
    width: calc(100vw - 16px);
    margin: 4vh auto;
  }
}
@media(max-width: 600px) {
  .tabela-produktow th:nth-child(3),
  .tabela-produktow td:nth-child(3) { display: none; }
  .naglowek-sekcji { padding: 14px 16px; }
  .tabela-produktow th, .tabela-produktow td { padding: 12px 14px; }
  .opcja-dostawy, .opcja-platnosci { padding: 14px 16px; }
  .pasek-korzysci { padding: 12px 16px; gap: 12px; }
  .wiersz-suma-dostawa { padding: 12px 16px; }
  .wiersz-suma-tabeli td { padding: 12px 14px; }
  .wiersze-podsumowania { padding: 14px 16px; }
  .attribute-editor-container { padding: 18px 14px 14px; }
  .attribute-editor-header { padding-right: 44px; }
  .attribute-editor-title { font-size: 21px; }
  .attribute-editor-footer { flex-direction: column-reverse; }
  .attribute-editor-btn { width: 100%; }
}
