/* ============================================================
   WS Quantity Tiles — Snusowo Mint Edition
   ============================================================ */

.wst-wrap {
  margin: 14px 0 12px;
}

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

.wst-tile {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 16px;
  padding: 12px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  user-select: none;
}

.wst-tile:hover {
  border-color: #1de9b6;
  background: #f6fffe;
}

.wst-tile.is-active {
  border-color: #10c995;
  background: #edfcf7;
  box-shadow: inset 0 0 0 1px #10c995;
}

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

.wst-tile__save {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  color: #079969;
  font-weight: 700;
  grid-column: 1;
  grid-row: 2;
  line-height: 1.25;
}

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

.wst-tile__price span {
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  margin-left: 3px;
}

.wst-tile__total {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #667085;
  grid-column: 2;
  grid-row: 2;
}

.wst-tile__badge {
  grid-column: 3;
  grid-row: 1 / 3;
  background: var(--snusowo-accent, #1de9b6);
  color: #050505;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 5px 11px;
  border-radius: 8px;
  letter-spacing: .2px;
  white-space: nowrap;
  align-self: center;
  box-shadow: 0 2px 6px rgba(29, 233, 182, 0.25);
}

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

/* ============================================================
   PM (Product Miniature) Quantity Tiles — Homepage & Listings
   ============================================================ */

.pm-wst-form {
  margin-top: 8px;
  width: 100%;
}

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

.pm-wst-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border: 1.5px solid #e4e7ec;
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
  user-select: none;
}

.pm-wst-tile:hover {
  border-color: #1de9b6;
  background: #f6fffe;
}

.pm-wst-tile.is-active {
  border-color: #10c995;
  background: #edfcf7;
  box-shadow: inset 0 0 0 1px #10c995;
}

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

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

.pm-wst-tile__badge {
  background: var(--snusowo-accent, #1de9b6);
  color: #050505;
  font-family: 'Inter', sans-serif;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1.2;
}

.pm-wst-tile__price {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.pm-wst-tile__regular {
  font-size: 11px;
  font-weight: 500;
  color: #98a2b3;
  text-decoration: line-through;
}

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

.pm-wst-atc {
  width: 100%;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--snusowo-accent, #1de9b6);
  color: #050505;
  font-family: 'Inter', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  border: 1px solid var(--snusowo-accent, #1de9b6);
  cursor: pointer;
  transition: background-color .15s ease, transform .12s ease;
}

.pm-wst-atc:hover {
  background: #14cfa0;
  border-color: #14cfa0;
  color: #050505;
}

@media (max-width: 420px) {
  .pm-wst-tile {
    padding: 6px 8px;
  }
  .pm-wst-tile__qty {
    font-size: 11px;
  }
  .pm-wst-tile__badge {
    font-size: 9.5px;
    padding: 1px 4px;
  }
  .pm-wst-tile__price {
    font-size: 12px;
  }
}

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

.pm-wst-atc:disabled,
.pm-wst-atc.is-disabled {
  background: #d0d5dd;
  border-color: #d0d5dd;
  color: #667085;
  cursor: not-allowed;
}
