/* =====================================================================
   Stan płyty (plakietki), „Pudełko uszkodzone”, wersja językowa.
   31.10.2026 – wg wizualizacji (wersja z widoczną ramką pudełka).
   ===================================================================== */

/* --- liczba płyt obok nośnika: „2 × Blu-ray” --- */
.rw-woluminy {
  display: inline-block;
  font-size: 13px;
  color: #6b7c82;
  border: 1px solid #e3e7e9;
  border-radius: 10px;
  padding: 2px 8px;
  margin: 0 0 6px;
  vertical-align: middle;
}

/* --- etykieta „Stan płyty” / „Wersja językowa” --- */
.rw-stan__etykieta,
.rw-stany-fs > legend,
.rw-stany-fs > legend .fieldset-legend {
  display: block;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #2f444b;
  margin: 0 0 6px !important;
  padding: 0 !important;
  border: 0 !important;
  text-transform: none;
}
.rw-stany-fs {
  border: 0;
  padding: 0;
  margin: 0 0 4px !important;
  min-width: 0;
}
.rw-stany-fs .fieldset-legend.js-form-required::after,
.rw-stany-fs .form-required::after {
  display: none;
}

/* --- plakietki: wybór stanu (Cart Flyout, przyciski radio) --- */
.rw-stany-fs .form-radios,
.rw-stany--jeden {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 6px;
}
.rw-stany-fs .form-item {
  position: relative;
  margin: 0 !important;
  padding: 0;
  min-height: 0;
}
/* kółko radia niewidoczne, leży na plakietce i łapie kliknięcie */
.rw-stany-fs input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  float: none;
}
.rw-pig,
.rw-stany-fs input[type="radio"] + label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 2px solid #c5cdd0;
  border-radius: 22px;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: #6b7c82;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.rw-stany-fs input[type="radio"] + label > * {
  margin: 0;
}
.rw-stany-fs input[type="radio"]:hover + label {
  border-color: #405962;
  color: #2f444b;
}
/* wybrany stan: wypełniona, z ✓ */
.rw-stany-fs input[type="radio"]:checked + label {
  background: #405962;
  border-color: #405962;
  color: #fff;
  font-weight: 700;
}
.rw-stany-fs input[type="radio"]:checked + label::before,
.rw-pig--jeden::before {
  content: "✓";
  font-size: 15px;
}
.rw-stany-fs input[type="radio"]:focus-visible + label {
  outline: 2px solid #405962;
  outline-offset: 2px;
}
/* jeden egzemplarz: sama informacja (jak w bookway) – obrys, bez wypełnienia */
.rw-pig--jeden {
  border-color: #405962;
  color: #2f444b;
  font-weight: 700;
  cursor: default;
}
.rw-znak-uszk {
  color: #e0a526;
}
.rw-stany-fs input[type="radio"]:checked + label .rw-znak-uszk {
  color: #ffd59a;
}
.rw-stan--jeden {
  margin-bottom: 8px;
}

/* --- opis płyty i uszkodzone pudełko (tylko gdy uszkodzone) --- */
.rw-stan__opis {
  font-size: 14px;
  color: #6b7c82;
  margin: 2px 0 8px;
}
.rw-stan__pudlo {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #2f444b;
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 10px;
}
.rw-stan__pudlo svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #e0a526;
}
/* --- wersja językowa (strona filmu) --- */
.rw-jezyki {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
}
.rw-jezyk {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #e3e7e9;
  border-radius: 8px;
  padding: 8px 14px 8px 10px;
  background: #fff;
}
.rw-jezyk svg {
  width: 26px;
  height: 26px;
  color: #3b6e9c;
  flex: 0 0 auto;
}
.rw-jezyk__rodzaj {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6b7c82;
  line-height: 1;
}
.rw-jezyk__nazwa {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: #1f2933;
}
.rw-flaga {
  display: inline-block;
  width: 18px;
  height: 12px;
  vertical-align: -1px;
  margin-right: 5px;
  border: 1px solid #ddd;
  background: linear-gradient(#fff 50%, #dc143c 50%);
}

/* --- lista / kafelki katalogu --- */
.rw-kat-stany {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 0;
}
.rw-pig--mala {
  font-size: 11px;
  padding: 2px 8px;
  border-width: 1px;
  border-color: #405962;
  color: #2f444b;
  cursor: default;
  gap: 4px;
}
.rw-pig--mala::before {
  content: "✓";
}
.rw-chip {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  padding: 3px 9px;
  background: #eef3f7;
  color: #3b6e9c;
}
.rw-od {
  font-weight: 400;
  font-size: .85em;
}
.commerce-product--catalog:hover .rw-pig--mala {
  border-color: #fff;
  color: #fff;
  background: transparent;
}
.commerce-product--catalog:hover .rw-chip {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

@media (max-width: 575px) {
  .rw-pig,
  .rw-stany-fs input[type="radio"] + label {
    font-size: 13px;
    padding: 5px 11px;
  }
}

/* --- 01.11.2026: poprawki wyglądu --- */
/* opis stanu POD plakietką, nie obok (formularz koszyka jest wierszem flex) */
.rw-stany-fs,
.rw-stan__info {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
.rw-stan__info:empty {
  display: none;
}
.rw-stan__info .rw-stan__opis,
.rw-stan--jeden .rw-stan__opis {
  font-size: 15px;
  line-height: 1.5;
  color: #5f6b72;
  margin: 2px 0 14px;
}

/* katalog: stan w jednym wierszu z nośnikiem, zwykłym tekstem */
.rw-kat-lewa {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rw-kat-stan {
  font-size: 13px;
  font-weight: 600;
  color: #6b7c82;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rw-kat-stan::before {
  content: "·";
  margin-right: 8px;
  color: #c5cdd0;
}
.commerce-product--catalog:hover .rw-kat-stan,
.commerce-product--catalog:hover .rw-kat-stan::before {
  color: rgba(255, 255, 255, .8);
}

/* katalog: okładka na środku kafelka */
.commerce-product--catalog .rw-okladka img {
  margin-left: auto;
  margin-right: auto;
}
