/* LYA v32: compact Period Underwear size labels and cart quantity controls. */
.category-lingerie-variants fieldset,
.lingerie-variants fieldset {
  gap: 8px !important;
}
.category-lingerie-variants label,
.lingerie-variants label {
  min-width: max-content;
  padding: 3px 2px;
}
.drawer-item {
  grid-template-columns: 58px minmax(0, 1fr) auto auto auto !important;
}
.drawer-item-quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 30px;
  color: #660000;
  border: 1px solid #660000;
  border-radius: 999px;
  padding: 2px 4px;
  white-space: nowrap;
}
.drawer-item-quantity > span {
  margin: 0 3px 0 2px;
  color: #660000;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.drawer-item-quantity > button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  padding: 0;
  color: #fff;
  background: #660000;
  border: 1px solid #660000;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.drawer-item-quantity > button:disabled {
  cursor: not-allowed;
  opacity: .35;
}
.drawer-item-quantity > b {
  min-width: 16px;
  padding: 0 2px;
  color: #660000;
  text-align: center;
  font-size: 12px;
}
@media (max-width: 850px) {
  .drawer-item {
    grid-template-columns: 58px minmax(0, 1fr) auto auto !important;
  }
  .drawer-item-quantity { grid-column: 2 / 4; justify-self: start; margin-top: 4px; }
}
@media (max-width: 520px) {
  .drawer-item {
    grid-template-columns: 52px minmax(0, 1fr) auto !important;
    gap: 9px;
  }
  .drawer-item-quantity { grid-column: 2; grid-row: 2; }
  .drawer-item-remove { grid-column: 2; grid-row: 3; }
  .drawer-item > b { grid-column: 3; grid-row: 1; }
}
