/* Tallas en la ficha. El aviso de stock y las pastillas salen de este archivo
   en cualquier plantilla. Emmy trae las suyas dentro de .emmy-pdp-panel. */

form.variations_form[data-spos-sizes="1"] select.sistemapos-size-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
}

form.variations_form[data-spos-sizes="1"] p.stock,
form.variations_form[data-spos-sizes="1"] .woocommerce-variation-availability,
form.variations_form[data-spos-sizes="1"] .sistemapos-pdp-stock {
  display: none !important;
}

.sistemapos-size-stock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  color: #c0392b;
  font-size: 0.92rem;
  line-height: 1.3;
}

.sistemapos-size-stock[hidden] {
  display: none !important;
}

.sistemapos-size-stock__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

body.single-product .emmy-pdp-panel .sistemapos-size-stock {
  color: #f6d0cc;
}

.sistemapos-size-stock.is-ok {
  color: #3d3d3d;
}

body.single-product .emmy-pdp-panel .sistemapos-size-stock.is-ok {
  color: #e6e6e6;
}

body:not(:has(.emmy-pdp-panel)) .sistemapos-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.35rem 0 0.85rem;
}

body:not(:has(.emmy-pdp-panel)) .sistemapos-swatch {
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #d5d5d5;
  border-radius: 2px;
  background: #fff;
  color: #1a1a1a;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

body:not(:has(.emmy-pdp-panel)) .sistemapos-swatch.is-active {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
  background: #fff;
  color: #111;
}

body:not(:has(.emmy-pdp-panel)) .sistemapos-swatch:focus-visible {
  outline: 2px solid #111;
  outline-offset: 2px;
}

body:not(:has(.emmy-pdp-panel)) .sistemapos-swatch.is-oos:not(.is-active) {
  opacity: 0.55;
}

body.single-product .emmy-pdp-panel .sistemapos-swatch.is-oos:not(.is-active) {
  opacity: 0.55;
}

.sistemapos-colors {
  margin: 0.75rem 0 1rem;
}

.sistemapos-colors__label {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.3;
}

.sistemapos-colors__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sistemapos-color-swatch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0.2rem;
  border: 1px solid #d5d5d5;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
}

.sistemapos-color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sistemapos-color-swatch.is-active {
  border-color: #111;
  box-shadow: inset 0 0 0 1px #111;
}

body.single-product .emmy-pdp-panel .sistemapos-color-swatch {
  background: transparent;
  border-color: rgba(243, 237, 227, 0.35);
}

body.single-product .emmy-pdp-panel .sistemapos-color-swatch.is-active {
  border-color: var(--gold, #c9a227);
  box-shadow: inset 0 0 0 1px var(--gold, #c9a227);
}
