/* ======================================================================
   UBD Visual UX · RADIO CARDS TRIM 1.6.19

   Objetivo:
   - Quitar definitivamente la flecha/chevron heredada de los selectores.
   - Hacer menos altas las fichas radio-card para una UX más compacta.
   - Mantener intacto el contrato seguro de 1.6.17/1.6.18.
   ====================================================================== */

/* 1) Matar cualquier flecha heredada de 1.6.15 / 1.6.16 o pseudo-elementos tardíos.
      Se limita al product page y a los bloques de variantes/customización. */
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-variants .product-variants-item::after,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-variants .product-variants-item::before,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-customization .product-customization-item::after,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-customization .product-customization-item::before {
  content: none !important;
  display: none !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* También anula flechas sobre wrappers comunes por si algún tema las reinyecta. */
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-variants .product-variants-item .selector::after,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-variants .product-variants-item .custom-select::after,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-variants .product-variants-item .bootstrap-select .dropdown-toggle::after,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-customization .product-customization-item .selector::after,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-customization .product-customization-item .custom-select::after,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.product-customization .product-customization-item .bootstrap-select .dropdown-toggle::after {
  content: none !important;
  display: none !important;
}

/* 2) Compactar fichas tipo app. */
html.ubd-product-ready body#product.ubd-modular-page {
  --ubd-app-card-shadow-compact: 0 1px 1px rgba(15, 44, 50, .025), 0 6px 14px rgba(15, 44, 50, .035);
  --ubd-app-card-shadow-selected-compact: 0 2px 4px rgba(75, 139, 97, .06), 0 8px 18px rgba(75, 139, 97, .085);
}

html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-grid {
  gap: 9px !important;
  margin: 5px 0 2px !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-option {
  min-height: 52px !important;
  padding: 9px 12px !important;
  border-radius: 18px !important;
  font-size: 13.5px !important;
  line-height: 1.18 !important;
  box-shadow: var(--ubd-app-card-shadow-compact) !important;
  gap: 9px !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-option:hover {
  box-shadow: 0 2px 4px rgba(15, 44, 50, .035), 0 8px 16px rgba(15, 44, 50, .055) !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-option.is-selected {
  box-shadow: var(--ubd-app-card-shadow-selected-compact) !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-dot {
  flex: 0 0 19px !important;
  width: 19px !important;
  height: 19px !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-dot::after {
  inset: 3px !important;
}

html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-grid.is-single .ubd-select-choice-option,
html.ubd-product-ready body#product.ubd-modular-page
#wrapper #main form#add-to-cart-or-refresh
.ubd-select-choice-option.is-only-option {
  min-height: 50px !important;
}

@media (max-width: 767px) {
  html.ubd-product-ready body#product.ubd-modular-page
  #wrapper #main form#add-to-cart-or-refresh
  .ubd-select-choice-grid {
    gap: 8px !important;
  }

  html.ubd-product-ready body#product.ubd-modular-page
  #wrapper #main form#add-to-cart-or-refresh
  .ubd-select-choice-option {
    min-height: 49px !important;
    padding: 8px 11px !important;
    border-radius: 17px !important;
    font-size: 13px !important;
    line-height: 1.16 !important;
  }

  html.ubd-product-ready body#product.ubd-modular-page
  #wrapper #main form#add-to-cart-or-refresh
  .ubd-select-choice-dot {
    flex-basis: 18px !important;
    width: 18px !important;
    height: 18px !important;
  }

  html.ubd-product-ready body#product.ubd-modular-page
  #wrapper #main form#add-to-cart-or-refresh
  .ubd-select-choice-grid.is-single .ubd-select-choice-option,
  html.ubd-product-ready body#product.ubd-modular-page
  #wrapper #main form#add-to-cart-or-refresh
  .ubd-select-choice-option.is-only-option {
    min-height: 48px !important;
  }
}
