.rcfg-hidden {
  display: none !important;
}

/* =========================
   Preview
========================= */
.rcfg_preview_shell {
  width: 100%;
  max-width: 720px;
}

.rcfg_preview_box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 24px;
  box-sizing: border-box;
}

.rcfg_layer_image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* =========================
   Controls Shell
========================= */
.rcfg_controls_shell {
  display: block;
  width: 100%;
  max-width: 100%;
}

#product-bg-color .rcfg_controls_shell {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 24px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* =========================
   Control Groups
========================= */
.rcfg_control_group {
  display: block;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0;
  margin: 0;
}

.rcfg_control_group:last-child {
  border-bottom: 0;
}

.rcfg_control_toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  cursor: pointer;
  box-sizing: border-box;
  background: transparent;
}

.rcfg_control_toggle:hover {
  opacity: 0.96;
}

.rcfg_control_toggle:focus {
  outline: none;
}

.rcfg_control_group.is-open .rcfg_control_toggle {
  padding-bottom: 14px;
}

.rcfg_control_toggle_left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.rcfg_control_title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
  color: #111111;
  flex: 0 0 auto;
}

.rcfg_control_icon {
  flex: 0 0 auto;
  width: 24px;
  text-align: right;
  font-size: 28px;
  line-height: 1;
  color: #111111;
  margin-left: 20px;
  font-weight: 700;
}

.rcfg_control_panel {
  display: none;
  width: 100%;
  padding: 0 0 16px 0;
  margin: 0;
}

.rcfg_control_group.is-open .rcfg_control_panel {
  display: block;
}

/* =========================
   Selected Name
========================= */
.rcfg_selected_name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: #111111 !important;
  white-space: nowrap;
  overflow: visible;
  flex-shrink: 0;
}

.rcfg_selected_name::before {
  content: "";
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 14px;
  border-radius: 50%;
  background: var(--rcfg-selected-color, #667a2a);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  flex: 0 0 14px;
}

/* remove unnecessary after marker */
.rcfg_selected_name::after {
  content: none;
}

/* =========================
   Swatches
========================= */
.rcfg_swatches_row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.rcfg_swatch_btn,
button.rcfg_swatch_btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  margin: 0;
  border-radius: 50% !important;
  aspect-ratio: 1 / 1 !important;
  display: inline-block !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-clip: padding-box !important;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.rcfg_swatch_btn:hover,
button.rcfg_swatch_btn:hover {
  transform: scale(1.06);
}

.rcfg_swatch_btn.is-active,
button.rcfg_swatch_btn.is-active {
  border-color: #ef5b2a !important;
  box-shadow: 0 0 0 4px rgba(239, 91, 42, 0.16),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  border-radius: 50% !important;
}

button.rcfg_swatch_btn::before,
button.rcfg_swatch_btn::after {
  border-radius: 50% !important;
}

/* =========================
   Hidden Inputs
========================= */
.rcfg_hidden_inputs_wrap,
.rcfg_form_hidden_fields {
  display: none !important;
}

/* =========================
   Dynamic Outer Section
========================= */
#product-bg-color {
  --rcfg-section-text: #ffffff;
  --rcfg-muted-text: rgba(255, 255, 255, 0.82);
  transition: background-color 0.3s ease, color 0.3s ease;
}

#product-bg-color,
#product-bg-color .e-con-inner,
#product-bg-color .elementor-widget-container {
  color: var(--rcfg-section-text);
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

/* Dynamic product text contrast. This is scoped to the single-product color section only. */
#product-bg-color h1,
#product-bg-color h2,
#product-bg-color h3,
#product-bg-color h4,
#product-bg-color h5,
#product-bg-color h6,
#product-bg-color .product_title,
#product-bg-color .product_title a,
#product-bg-color .jet-woo-builder .product_title,
#product-bg-color .jet-woo-builder .product_title a,
#product-bg-color .price,
#product-bg-color .price *,
#product-bg-color .jet-woo-product-price,
#product-bg-color .jet-woo-product-price *,
#product-bg-color .woocommerce-Price-amount,
#product-bg-color .woocommerce-Price-currencySymbol,
#product-bg-color .elementor-element-6f933a4 .jet-listing-dynamic-field__content,
#product-bg-color .elementor-element-a699eab .jet-listing-dynamic-field__content,
#product-bg-color .elementor-element-934749b .jet-listing-dynamic-field__content {
  color: var(--rcfg-section-text) !important;
  transition: color 0.3s ease;
}

#product-bg-color .woocommerce-product-details__short-description,
#product-bg-color .woocommerce-product-details__short-description *,
#product-bg-color .elementor-element-ecf98f9 .jet-listing-dynamic-field__content,
#product-bg-color .elementor-element-ecf98f9 .jet-listing-dynamic-field__content *,
#product-bg-color .jet-listing-dynamic-field__content p {
  color: var(--rcfg-muted-text) !important;
  transition: color 0.3s ease;
}

/* =========================
   White Card Inner Text
========================= */
#product-bg-color .rcfg_controls_shell,
#product-bg-color .rcfg_controls_shell * {
  color: #111111 !important;
}

#product-bg-color .rcfg_controls_shell .rcfg_control_title,
#product-bg-color .rcfg_controls_shell .rcfg_selected_name,
#product-bg-color .rcfg_controls_shell .rcfg_control_icon {
  color: #111111 !important;
}

/* =========================
   Quantity / Add to Cart
========================= */
#product-bg-color .single_add_to_cart_button,
#product-bg-color input.qty,
#product-bg-color .qty,
#product-bg-color .quantity input,
#product-bg-color .qib-button,
#product-bg-color .qty-button {
  transition: none !important;
}

#product-bg-color .qib-button,
#product-bg-color .qty-button,
#product-bg-color .minus,
#product-bg-color .plus {
  color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#product-bg-color .quantity input.qty,
#product-bg-color .quantity .qty,
#product-bg-color input.qty {
  color: #111111 !important;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

#product-bg-color .single_add_to_cart_button {
  background: #000000 !important;
  color: #ffffff !important;
  border: 0 !important;
}

/* =========================
   Mobile
========================= */
@media (max-width: 767px) {
  #product-bg-color .rcfg_controls_shell {
    padding: 18px 16px;
    border-radius: 18px;
  }

  .rcfg_preview_box {
    border-radius: 18px;
    padding: 16px;
  }

  .rcfg_control_toggle {
    padding: 16px 0;
  }

  .rcfg_control_title {
    font-size: 16px;
  }

  .rcfg_selected_name {
    font-size: 14px;
    gap: 6px;
  }

  .rcfg_selected_name::before {
    width: 12px;
    height: 12px;
    min-width: 12px;
    min-height: 12px;
    flex: 0 0 12px;
  }

  .rcfg_control_icon {
    font-size: 24px;
  }

  .rcfg_swatches_row {
    gap: 10px;
  }

  .rcfg_swatch_btn,
  button.rcfg_swatch_btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }
}


/* RCFG quantity contrast lock - dark/light product backgrounds */
#product-bg-color form.cart .qib-button-wrapper > button.minus.qib-button,
#product-bg-color form.cart .qib-button-wrapper > button.plus.qib-button {
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
#product-bg-color form.cart .qib-button-wrapper > button.minus.qib-button:hover,
#product-bg-color form.cart .qib-button-wrapper > button.plus.qib-button:hover,
#product-bg-color form.cart .qib-button-wrapper > button.minus.qib-button:focus,
#product-bg-color form.cart .qib-button-wrapper > button.plus.qib-button:focus {
  background-color: #f7f7f7 !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
}
#product-bg-color form.cart .qib-button-wrapper .quantity.wqpmb_quantity input.qty {
  background-color: #ffffff !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  opacity: 1 !important;
}


/* Product variation font normalization */
.single-product .variations label,
.single-product .woo-selected-variation-item-name,
.single-product .woo-variation-item-label,
.single-product .variable-item-contents {
  font-family: 'Glacial Indifference', Sans-serif !important;
}
