.wc-lvs-wrapper { margin-top: 8px; }
.wc-lvs-attribute-group { position: relative; overflow: visible; margin-bottom: 8px; }
.wc-lvs-attribute-label { font-size: 12px; margin-bottom: 4px; display: block; opacity: 0.85; }

/* Kill any inherited/container border ASAP (prevents "flash border" on load) */
.wc-lvs-wrapper,
.wc-lvs-shortcode-widget .wc-lvs-wrapper,
.wc-lvs-shortcode-widget .elementor-shortcode .wc-lvs-wrapper,
.wc-lvs-shortcode-widget .elementor-widget-container .wc-lvs-wrapper {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.wc-lvs-wrapper form.wc-lvs-form {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.wc-lvs-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  position: relative;
  overflow: visible;
}

.wc-lvs-swatch {
  appearance: none;
  -webkit-appearance: none;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 8px;
  min-height: 28px;

  cursor: pointer;
  box-sizing: border-box;

  /* SETTINGS (force like your old inline CSS did) */
  background-color: var(--wc-lvs-swatch-bg, #fff) !important;
  color: var(--wc-lvs-swatch-text, #000) !important;
  border: 1px solid var(--wc-lvs-swatch-border, #ddd) !important;
  border-radius: var(--wc-lvs-swatch-radius, 4px) !important;
  /* font-size: var(--wc-lvs-swatch-font-size, 13px) !important; */
  font-size: 16px !important;

  line-height: 1.2;
  text-transform: uppercase;

  outline: none !important;
  box-shadow: none !important;
}

.wc-lvs-swatch.is-selected {
  background-color: var(--wc-lvs-swatch-bg-selected, #000) !important;
  color: var(--wc-lvs-swatch-text-selected, #fff) !important;
  font-weight: 600;
}

/* Remove the “black border” that comes from focus styles in many themes */
.wc-lvs-swatch:focus,
.wc-lvs-swatch:focus-visible,
.wc-lvs-add-to-cart:focus,
.wc-lvs-add-to-cart:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.wc-lvs-desc {
  margin-top: 10px;
  /* padding: 10px 12px; 
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(0,0,0,0.03); */
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(0,0,0,0.75);
}

.wc-lvs-desc.is-empty {
  display: none;
}

.wc-lvs-desc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wc-lvs-desc-list li {
  position: relative;
  padding-left: 14px;
  margin: 4px 0;
}

.wc-lvs-desc-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  opacity: 0.8;
}


/* Add to cart button */
.wc-lvs-add-to-cart {
  appearance: none;
  -webkit-appearance: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 6px 12px;
  cursor: pointer;

  width: var(--wc-lvs-btn-width, 100%) !important;

  background-color: #9C0D38 !important;
  color: var(--wc-lvs-btn-text, #fff) !important;

  border-style: var(--wc-lvs-btn-border-style, solid) !important;
  border-width: var(--wc-lvs-btn-border-width, 0) !important;
  border-color: var(--wc-lvs-btn-border-color, #000) !important;

  border-radius: 32px !important;

  font-size: 24px !important;
  font-family: "Bebas Neue", Sans-serif !important;
  font-weight: 400 !important;

  box-shadow: none !important;
  margin-top: auto;
}

.wc-lvs-add-to-cart:hover {
  background-color: var(--wc-lvs-btn-bg-hover, #333) !important;
  color: var(--wc-lvs-btn-text-hover, #fff) !important;

  border-style: var(--wc-lvs-btn-border-style-hover, solid) !important;
  border-width: var(--wc-lvs-btn-border-width-hover, 0) !important;
  border-color: var(--wc-lvs-btn-border-color-hover, #333) !important;
}

.wc-lvs-add-to-cart:disabled,
.wc-lvs-add-to-cart[disabled] {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  filter: grayscale(100%) !important;
}

/* Out of stock label */
.wc-lvs-out-of-stock { margin-top: 8px; opacity: 0.85; }

/* Elementor loop layout helpers */
.wc-lvs-flex-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.wc-lvs-shortcode-widget,
.wc-lvs-shortcode-widget > .elementor-shortcode,
.wc-lvs-shortcode-widget > .elementor-shortcode > .wc-lvs-wrapper,
.wc-lvs-shortcode-widget > .elementor-shortcode > .wc-lvs-wrapper > form {
	height: 100%;
	margin-top: initial;
}

@media(max-width: 768px){
	.wc-lvs-shortcode-widget,
	.wc-lvs-shortcode-widget > .elementor-shortcode,
	.wc-lvs-shortcode-widget > .elementor-shortcode > .wc-lvs-wrapper,
	.wc-lvs-shortcode-widget > .elementor-shortcode > .wc-lvs-wrapper > form {
		height: auto;
	}
}

.wc-lvs-shortcode-widget > .elementor-shortcode > .wc-lvs-wrapper {
	border: none !important;
}

.wc-lvs-shortcode-widget > .elementor-shortcode > .wc-lvs-wrapper > form {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.elementor-loop-item:has(.wc-lvs-wrapper) .of-add-to-cart,
.product:has(.wc-lvs-wrapper) .of-add-to-cart {
  display: none !important;
}

.wc-lvs-wrapper button,
.wc-lvs-wrapper a {
  outline: none !important;
  box-shadow: none !important;
}

/* Prevent border flash: target Elementor containers WITHOUT needing JS-added classes
.elementor-widget-shortcode .elementor-widget-container,
.elementor-widget-shortcode .elementor-shortcode,
.elementor-widget-shortcode .elementor-shortcode > .wc-lvs-wrapper,
.elementor-widget-shortcode .elementor-shortcode > .wc-lvs-wrapper > form {
  border: 0 !important;
  border-width: 0 !important;
  border-style: none !important;
  outline: 0 !important;
  box-shadow: none !important;
} */

@media (max-width: 480px) {
  .wc-lvs-swatches { gap: 3px; }
  .wc-lvs-swatch { padding: 3px 6px; font-size: 12px !important; }
}
