/* WC Size Pills (Light) v1.5.0 */

.woocommerce form.variations_form select.wcsp-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.woocommerce div.product form.cart [data-wcsp-hidden-wrapper="1"] {
  display: none !important;
}

.woocommerce div.product form.cart .wcsp-pills {
  --wcsp-pill-size: 52px;
  --wcsp-pill-gap: 10px;
  --wcsp-pill-font-size: 12px;
  --wcsp-pill-border: rgba(17, 17, 17, 0.22);
  --wcsp-pill-bg: #fff;
  --wcsp-pill-fg: #111;
  --wcsp-pill-active-bg: #111;
  --wcsp-pill-active-fg: #fff;

  display: flex;
  flex-wrap: wrap;
  gap: var(--wcsp-pill-gap);
  width: 100%;
  margin-top: 10px;
  padding: 2px 0 10px;
}

.woocommerce div.product form.cart .wcsp-pills[hidden] {
  display: none;
}

.woocommerce div.product form.cart .wcsp-pill-item {
  position: relative;
  flex: 0 0 auto;
}

.woocommerce div.product form.cart .wcsp-pill-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.woocommerce div.product form.cart .wcsp-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--wcsp-pill-size);
  height: var(--wcsp-pill-size);
  padding: 0;
  border: 1px solid var(--wcsp-pill-border);
  border-radius: 9999px;
  background: var(--wcsp-pill-bg);
  color: var(--wcsp-pill-fg);
  font: inherit;
  font-size: var(--wcsp-pill-font-size);
  line-height: 1;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: none;
  background-image: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.woocommerce div.product form.cart .wcsp-empty-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  border-radius: 9999px;
  background: rgba(17, 17, 17, 0.06);
  color: #111;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
}

.woocommerce div.product form.cart .wcsp-pill-input:checked + .wcsp-pill {
  background: var(--wcsp-pill-active-bg);
  color: var(--wcsp-pill-active-fg);
  border-color: var(--wcsp-pill-active-bg);
}

.woocommerce div.product form.cart .wcsp-pill-input:focus-visible + .wcsp-pill,
.woocommerce div.product form.cart .wcsp-pill:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
