/* ============================================================
   WS Quantity Tiles — product page (column layout)
   ============================================================ */

.wst-wrap {
  margin: 20px 0 8px;
}

.wst-tiles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wst-tile {
  position: relative;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 16px;
  padding: 12px 16px;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s;
  user-select: none;
}

.wst-tile:hover { border-color: #aaa; }
.wst-tile.is-active {
  border-color: #222;
  box-shadow: inset 0 0 0 1px #222;
}

.wst-tile__qty {
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: .3px;
  grid-column: 1;
  grid-row: 1;
}

.wst-tile__save {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: #c5203d;
  font-weight: 500;
  grid-column: 1;
  grid-row: 2;
}

.wst-tile__price {
  font-family: 'Jost', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #222;
  grid-column: 2;
  grid-row: 1;
}

.wst-tile__price span {
  font-size: 12px;
  font-weight: 400;
  color: #888;
  margin-left: 2px;
}

.wst-tile__total {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #888;
  grid-column: 2;
  grid-row: 2;
}

.wst-tile__badge {
  grid-column: 3;
  grid-row: 1 / 3;
  background: #c5203d;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: .3px;
  white-space: nowrap;
  align-self: center;
}

@media (max-width: 480px) {
  .wst-tile {
    grid-template-columns: 80px 1fr auto;
    padding: 10px 12px;
  }
  .wst-tile__price { font-size: 16px; }
}

/* ============================================================
   PM (Product Miniature) Quantity Tiles
   ============================================================ */

.pm-wst-form { margin-top: 10px; }

.pm-wst-tiers {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

/* Prosty flex: [QTY + BADGE] po lewej, [CENA] po prawej */
.pm-wst-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s;
  user-select: none;
}

.pm-wst-tile:hover { border-color: #aaa; }
.pm-wst-tile.is-active {
  border-color: #222;
  box-shadow: inset 0 0 0 1px #222;
}

.pm-wst-tile__left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.pm-wst-tile__qty {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  text-transform: uppercase;
  letter-spacing: .2px;
  white-space: nowrap;
}

.pm-wst-tile__badge {
  background: #c5203d;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  white-space: nowrap;
}

.pm-wst-tile__price {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
}

/* Total ukryty na miniaturce */
.pm-wst-tile__total { display: none; }

.pm-wst-atc {
  width: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #222;
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}

.pm-wst-atc:hover { background: #c5203d; }

@media (max-width: 576px) {
  .pm-wst-tile__badge {
    display: none;
  }
}

/* Disabled tile — brak stocku */
.pm-wst-tile.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  border-color: #e0e0e0 !important;
  box-shadow: none !important;
}

.pm-wst-atc:disabled,
.pm-wst-atc.is-disabled {
  background: #aaa;
  cursor: not-allowed;
}
.pm-wst-atc:disabled:hover,
.pm-wst-atc.is-disabled:hover {
  background: #aaa;
}

/* Disabled tile — product page */
.wst-tile.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  border-color: #e0e0e0 !important;
  box-shadow: none !important;
}

/* Disabled tile na stronie produktu */
.wst-tile.is-disabled {
  opacity: 0.38;
  cursor: not-allowed;
  border-color: #e0e0e0 !important;
  box-shadow: none !important;
}