/* Wybór rozmiaru z wyszukiwarką (karta produktu). Etykieta nad polem, zwykły select ukryty. */
body .product-variants .pr-size-item {
  max-width: 360px;
}
body .product-variants .pr-size-item .control-label {
  position: static;
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .01em;
  color: #111;
  pointer-events: auto;
}
body .product-variants .pr-size-item select[data-pr-size] {
  display: none !important;
}

.pr-size {
  position: relative;
}
.pr-size__toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #111;
  text-align: left;
  background: #fff;
  border: 1px solid #222;
  border-radius: 2px;
  cursor: pointer;
  transition: box-shadow .15s ease;
}
.pr-size__toggle:hover {
  box-shadow: inset 0 0 0 1px #222;
}
.pr-size__toggle:focus-visible {
  outline: 2px solid #E8C592;
  outline-offset: 2px;
}
.pr-size__icon,
.pr-size__chevron,
.pr-size__search-icon {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pr-size__icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}
.pr-size__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pr-size__chevron {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
  transition: transform .2s ease;
}
.pr-size.is-open .pr-size__chevron {
  transform: rotate(180deg);
}

.pr-size__panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 14px 34px rgba(17, 17, 17, .14);
}
.pr-size__panel[hidden] {
  display: none;
}
.pr-size__search {
  position: relative;
  display: block;
  margin: 0 0 6px;
}
.pr-size__search-icon {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  color: #555;
  transform: translateY(-50%);
  pointer-events: none;
}
.pr-size__input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 40px;
  font: inherit;
  font-size: 16px; /* 16 px: iPhone nie powiększa strony przy pisaniu */
  color: #111;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  -webkit-appearance: none;
  appearance: none;
}
.pr-size__input:focus {
  border-color: #111;
  outline: none;
}
/* motyw stylizuje każde ul/li w wariantach (kafelki koloru) – tu ma być zwykła lista */
body .product-variants .pr-size .pr-size__list {
  display: block;
  width: 100%;
  float: none;
}
body .product-variants .pr-size .pr-size__option {
  width: auto;
  float: none;
  margin: 0;
}
.pr-size__list {
  max-height: 264px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  outline: none;
}
.pr-size__option {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 12px 10px;
  font-size: 15px;
  line-height: 1.3;
  color: #111;
  border-radius: 2px;
  cursor: pointer;
}
.pr-size__option[hidden] {
  display: none;
}
.pr-size__option.is-active {
  background: #f7f1e6;
}
.pr-size__option.is-selected {
  font-weight: 600;
}
.pr-size__option.is-selected::after {
  content: "";
  width: 6px;
  height: 11px;
  margin: 0 4px 0 auto;
  border: solid #111;
  border-width: 0 1.6px 1.6px 0;
  transform: translateY(-2px) rotate(45deg);
  align-self: center;
}
.pr-size__price {
  font-weight: 400;
  color: #555;
}
.pr-size__empty {
  margin: 8px 10px 4px;
  font-size: 14px;
  color: #777;
}

/* ---------- panel wysuwany z prawej (jak koszyk) ---------- */
.pr-size__head {
  display: none;
}
.pr-size-mask {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.pr-size-mask.is-active {
  opacity: .45;
  visibility: visible;
}
/* przewijanie blokuje skrypt (body: position fixed z zapamiętaną pozycją) – overflow na <html> przewijał stronę na górę */
html.pr-size-lock {
  overscroll-behavior: none;
}
.pr-size__panel.pr-size__panel--drawer {
  position: fixed;
  z-index: 10051;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  display: flex;
  flex-direction: column;
  width: 420px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: -8px 0 30px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .3s ease;
}
.pr-size__panel.pr-size__panel--drawer[hidden] {
  display: none;
}
.pr-size__panel--drawer.is-in {
  transform: none;
}
.pr-size__panel--drawer .pr-size__head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px 24px;
  border-bottom: 1px solid #ebebeb;
}
.pr-size__title {
  font-family: "Conv_BeVietnamPro-Regular", sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #111;
}
.pr-size__close {
  flex: none;
  width: 38px;
  height: 38px;
  padding: 0;
  font-family: Arial, sans-serif;
  font-size: 26px;
  line-height: 38px;
  color: #111;
  text-align: center;
  background: #ececec;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}
.pr-size__close:focus-visible {
  outline: 2px solid #E8C592;
  outline-offset: 2px;
}
.pr-size__panel--drawer .pr-size__search {
  flex: none;
  margin: 16px 24px 6px;
}
.pr-size__panel--drawer .pr-size__list {
  flex: 1;
  display: block;
  width: auto;
  max-height: none;
  padding: 0 14px 24px;
  -webkit-overflow-scrolling: touch;
}
.pr-size__panel--drawer .pr-size__option {
  width: auto;
  float: none;
  margin: 0;
  padding: 15px 10px;
  font-size: 16px;
  border-bottom: 1px solid #f2f2f2;
  border-radius: 0;
}
.pr-size__panel--drawer .pr-size__empty {
  margin: 10px 24px;
}
