/* ======================================================================
   UBD Visual UX · PERSONALIZACIÓN NARANJA APP 1.6.27

   - Sólo actúa cuando 1.6.26 detectó un campo de personalización visible.
   - Una sola ficha naranja, sin bloques amarillos/cafés internos.
   - Menos texto y UX más directa.
   ====================================================================== */

body#product .product-customization.ubd-custom-visible .card.card-block,
.page-product .product-customization.ubd-custom-visible .card.card-block {
  position: relative !important;
  overflow: hidden !important;
  padding: 18px !important;
  border: 0 !important;
  border-radius: 28px !important;
  background: linear-gradient(145deg, #ef8a4f 0%, #df7640 58%, #cf6736 100%) !important;
  box-shadow: 0 16px 34px rgba(207, 103, 54, .16) !important;
}

body#product .product-customization.ubd-custom-visible .card.card-block::before,
.page-product .product-customization.ubd-custom-visible .card.card-block::before {
  content: "" !important;
  position: absolute !important;
  width: 210px !important;
  height: 210px !important;
  right: -95px !important;
  top: -115px !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.08) !important;
  pointer-events: none !important;
}

/* Título principal corto. */
body#product .product-customization.ubd-custom-visible .card-title,
.page-product .product-customization.ubd-custom-visible .card-title {
  position: relative !important;
  z-index: 1 !important;
  margin: 0 0 14px !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(23px, 6.4vw, 31px) !important;
  font-weight: 850 !important;
  line-height: 1.05 !important;
  letter-spacing: -.025em !important;
}

/* La etiqueta larga queda accesible, pero ya no ocupa otra ficha de color. */
body#product .product-customization.ubd-custom-visible .product-customization-item > label,
.page-product .product-customization.ubd-custom-visible .product-customization-item > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Campo integrado a la misma ficha: translúcido, no un tercer color sólido. */
body#product .product-customization.ubd-custom-visible textarea.product-message,
body#product .product-customization.ubd-custom-visible input[type="text"].product-message,
.page-product .product-customization.ubd-custom-visible textarea.product-message,
.page-product .product-customization.ubd-custom-visible input[type="text"].product-message {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  min-height: 104px !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(255,255,255,.26) !important;
  border-radius: 20px !important;
  outline: 0 !important;
  background: rgba(255,255,255,.12) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important;
  font-size: clamp(18px, 4.7vw, 23px) !important;
  font-weight: 650 !important;
  line-height: 1.28 !important;
}

body#product .product-customization.ubd-custom-visible textarea.product-message::placeholder,
body#product .product-customization.ubd-custom-visible input[type="text"].product-message::placeholder,
.page-product .product-customization.ubd-custom-visible textarea.product-message::placeholder,
.page-product .product-customization.ubd-custom-visible input[type="text"].product-message::placeholder {
  color: rgba(255,255,255,.78) !important;
  -webkit-text-fill-color: rgba(255,255,255,.78) !important;
  opacity: 1 !important;
}

body#product .product-customization.ubd-custom-visible textarea.product-message:focus,
body#product .product-customization.ubd-custom-visible input[type="text"].product-message:focus,
.page-product .product-customization.ubd-custom-visible textarea.product-message:focus,
.page-product .product-customization.ubd-custom-visible input[type="text"].product-message:focus {
  border-color: rgba(255,255,255,.72) !important;
  background: rgba(255,255,255,.16) !important;
  box-shadow: 0 0 0 4px rgba(255,255,255,.10) !important;
}

/* Menos texto: la instrucción redundante se oculta en esta variante UX. */
body#product .product-customization.ubd-custom-visible small.float-xs-right,
.page-product .product-customization.ubd-custom-visible small.float-xs-right {
  display: none !important;
}

body#product .product-customization.ubd-custom-visible .clearfix:last-child,
.page-product .product-customization.ubd-custom-visible .clearfix:last-child {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  justify-content: stretch !important;
  margin-top: 12px !important;
}

/* Botón integrado a la misma ficha naranja: sólo borde/contraste blanco. */
body#product .product-customization.ubd-custom-visible .tvall-inner-btn,
.page-product .product-customization.ubd-custom-visible .tvall-inner-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 1.5px solid rgba(255,255,255,.72) !important;
  border-radius: 18px !important;
  background: rgba(255,255,255,.10) !important;
  box-shadow: none !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body#product .product-customization.ubd-custom-visible .tvall-inner-btn span,
.page-product .product-customization.ubd-custom-visible .tvall-inner-btn span {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 17px !important;
  font-weight: 850 !important;
}

body#product .product-customization.ubd-custom-visible .tvall-inner-btn:hover,
body#product .product-customization.ubd-custom-visible .tvall-inner-btn:focus,
.page-product .product-customization.ubd-custom-visible .tvall-inner-btn:hover,
.page-product .product-customization.ubd-custom-visible .tvall-inner-btn:focus {
  background: rgba(255,255,255,.17) !important;
  border-color: #fff !important;
  transform: none !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  body#product .product-customization.ubd-custom-visible .card.card-block,
  .page-product .product-customization.ubd-custom-visible .card.card-block {
    padding: 16px !important;
    border-radius: 24px !important;
  }

  body#product .product-customization.ubd-custom-visible textarea.product-message,
  body#product .product-customization.ubd-custom-visible input[type="text"].product-message,
  .page-product .product-customization.ubd-custom-visible textarea.product-message,
  .page-product .product-customization.ubd-custom-visible input[type="text"].product-message {
    min-height: 96px !important;
    border-radius: 18px !important;
  }
}
