/* Tía Vicenta v428 · cierre final colores + envío inicio */
:root{
  --tv428-ok-bg:#173f25;
  --tv428-ok-line:#39d17a;
  --tv428-ok-text:#f4fff8;
  --tv428-ok-muted:#d7ffe4;
}

/* Inicio: ahora son 4 tarjetas equilibradas */
html body .tv-business-actions-v420{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  width:min(100%,1120px)!important;
}
html body .tv-delivery-action-v428{
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb,var(--tv-orange) 20%, transparent), transparent 34%),
    linear-gradient(180deg, var(--tv-card), var(--tv-card-2))!important;
}
html body .tv-delivery-action-v428 .tv-business-action-icon-v420{
  background:linear-gradient(180deg,var(--tv-orange),var(--tv-orange-2))!important;
  color:#211100!important;
  box-shadow:0 10px 22px color-mix(in srgb,var(--tv-orange) 26%, transparent)!important;
}
html body .tv-delivery-action-v428 small{
  color:var(--tv-orange)!important;
  font-weight:1000!important;
}
html[data-theme="dark"] body .tv-delivery-action-v428{
  background:
    radial-gradient(circle at 12% 50%, rgba(255,159,28,.20), transparent 38%),
    linear-gradient(180deg,#2b2018,#211814)!important;
}
html[data-theme="dark"] body .tv-delivery-action-v428 small{
  color:#ffc26f!important;
}
@media (max-width:980px){
  html body .tv-business-actions-v420{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:520px){
  html body .tv-business-actions-v420{
    grid-template-columns:1fr!important;
  }
}

/* Horarios: sin envío, colores consistentes */
html body .tv-hours-dialog-v420 .tv-hours-card-v420,
html body .hours-popover{
  background:linear-gradient(180deg,var(--tv-card),var(--tv-card-2))!important;
  color:var(--tv-text)!important;
  border:1px solid var(--tv-line)!important;
  box-shadow:0 28px 80px rgba(0,0,0,.30)!important;
}
html[data-theme="dark"] body .tv-hours-dialog-v420 .tv-hours-card-v420,
html[data-theme="dark"] body .hours-popover{
  background:linear-gradient(180deg,#2b201a,#211813)!important;
  color:#fff7ed!important;
  border-color:rgba(255,218,171,.15)!important;
  box-shadow:0 34px 90px rgba(0,0,0,.55)!important;
}
html body .tv-hours-dialog-v420 h2,
html body .hours-popover b,
html body .tv-hours-dialog-v420 strong,
html body .hours-popover strong{
  color:var(--tv-text)!important;
}
html[data-theme="dark"] body .tv-hours-dialog-v420 h2,
html[data-theme="dark"] body .hours-popover b,
html[data-theme="dark"] body .tv-hours-dialog-v420 strong,
html[data-theme="dark"] body .hours-popover strong{
  color:#fff8ef!important;
}
html body .tv-hours-dialog-v420 p,
html body .tv-hours-dialog-v420 span,
html body .hours-popover span,
html body .hours-popover small{
  color:var(--tv-text-soft)!important;
}
html[data-theme="dark"] body .tv-hours-dialog-v420 p,
html[data-theme="dark"] body .tv-hours-dialog-v420 span,
html[data-theme="dark"] body .hours-popover span,
html[data-theme="dark"] body .hours-popover small{
  color:rgba(255,247,237,.82)!important;
}
html body .tv-hours-map-v420,
html body .hours-card-actions a,
html body .hours-card-actions button{
  min-height:48px!important;
  border-radius:16px!important;
  font-weight:1000!important;
  border:1px solid var(--tv-line)!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
}
html body .tv-hours-map-v420,
html body .hours-card-actions a{
  background:linear-gradient(180deg,var(--tv-card),var(--tv-card-2))!important;
  color:var(--tv-text)!important;
}
html[data-theme="dark"] body .tv-hours-map-v420,
html[data-theme="dark"] body .hours-card-actions a{
  background:linear-gradient(180deg,#25283a,#1d2030)!important;
  color:#fff8ef!important;
  border-color:rgba(255,255,255,.13)!important;
}
html body .tv-hours-ok-v420,
html body .hours-card-actions button{
  background:linear-gradient(180deg,var(--tv-orange),var(--tv-orange-2))!important;
  color:#211100!important;
  border-color:transparent!important;
}

/* Modal: arregla el blanco/negro y la opción seleccionada */
html body .modal,
html body .modal-card,
html body .choice,
html body .choice-card,
html body .option-card,
html body [role="radio"]{
  color:var(--tv-text)!important;
}
html[data-theme="dark"] body .modal-card{
  background:linear-gradient(180deg,#251b16,#1d1511)!important;
  color:#fff8ef!important;
  border-color:rgba(255,222,176,.14)!important;
}
html[data-theme="dark"] body .modal-card h2,
html[data-theme="dark"] body .modal-card h3,
html[data-theme="dark"] body .modal-card h4,
html[data-theme="dark"] body .modal-card b,
html[data-theme="dark"] body .modal-card strong,
html[data-theme="dark"] body .modal-card label{
  color:#fff8ef!important;
}
html[data-theme="dark"] body .modal-card p,
html[data-theme="dark"] body .modal-card small,
html[data-theme="dark"] body .modal-card .modal-sub,
html[data-theme="dark"] body .modal-card .choice p{
  color:rgba(255,247,237,.82)!important;
}
html body .choice,
html body .choice-card,
html body .option-card,
html body .modal-card [role="radio"]{
  background:linear-gradient(180deg,var(--tv-card),var(--tv-card-2))!important;
  border-color:var(--tv-line)!important;
}
html[data-theme="dark"] body .choice,
html[data-theme="dark"] body .choice-card,
html[data-theme="dark"] body .option-card,
html[data-theme="dark"] body .modal-card [role="radio"]{
  background:linear-gradient(180deg,#211713,#1a120f)!important;
  border-color:rgba(255,221,175,.13)!important;
  color:#fff8ef!important;
}
html body .choice.selected,
html body .choice.is-selected,
html body .choice[aria-checked="true"],
html body .choice:has(input:checked),
html body .option-card.selected,
html body .option-card.is-selected{
  background:linear-gradient(180deg,#fff5e5,#ffe4b4)!important;
  border-color:color-mix(in srgb,var(--tv-orange) 46%, transparent)!important;
  color:#1f160f!important;
}
html[data-theme="dark"] body .choice.selected,
html[data-theme="dark"] body .choice.is-selected,
html[data-theme="dark"] body .choice[aria-checked="true"],
html[data-theme="dark"] body .choice:has(input:checked),
html[data-theme="dark"] body .option-card.selected,
html[data-theme="dark"] body .option-card.is-selected{
  background:linear-gradient(180deg,var(--tv428-ok-bg),#0f2f1b)!important;
  border-color:rgba(57,209,122,.55)!important;
  color:var(--tv428-ok-text)!important;
  box-shadow:0 0 0 3px rgba(57,209,122,.14),0 18px 34px rgba(0,0,0,.32)!important;
}
html[data-theme="dark"] body .choice.selected *,
html[data-theme="dark"] body .choice.is-selected *,
html[data-theme="dark"] body .choice[aria-checked="true"] *,
html[data-theme="dark"] body .choice:has(input:checked) *,
html[data-theme="dark"] body .option-card.selected *,
html[data-theme="dark"] body .option-card.is-selected *{
  color:var(--tv428-ok-text)!important;
}
html[data-theme="dark"] body .choice.selected small,
html[data-theme="dark"] body .choice.is-selected small,
html[data-theme="dark"] body .choice[aria-checked="true"] small,
html[data-theme="dark"] body .choice:has(input:checked) small{
  color:var(--tv428-ok-muted)!important;
}
html body .choice .radio,
html body .choice .check,
html body .choice .selected-badge,
html body .modal-card .selected-pill,
html body .modal-card .badge{
  color:inherit!important;
}
html[data-theme="dark"] body .modal-card textarea,
html[data-theme="dark"] body .modal-card input,
html[data-theme="dark"] body .modal-card select{
  background:#140f0d!important;
  color:#fff8ef!important;
  border-color:rgba(255,226,190,.16)!important;
}
html[data-theme="dark"] body .modal-card textarea::placeholder,
html[data-theme="dark"] body .modal-card input::placeholder{
  color:rgba(255,247,237,.55)!important;
}
html body .modal-foot,
html[data-theme="dark"] body .modal-foot{
  background:linear-gradient(180deg,transparent,color-mix(in srgb,var(--tv-card) 92%, transparent))!important;
}
html[data-theme="dark"] body .modal-foot{
  background:linear-gradient(180deg,rgba(0,0,0,0),#211813)!important;
}
html[data-theme="dark"] body .modal-foot .btn:not(.primary),
html[data-theme="dark"] body .modal-foot button:not(.primary):not(.add-btn){
  background:#1d1511!important;
  color:#fff8ef!important;
  border-color:rgba(255,226,190,.16)!important;
}

/* Product total: always visible */
html[data-theme="dark"] body .modal-total,
html[data-theme="dark"] body .modal-total *,
html[data-theme="dark"] body .product-total,
html[data-theme="dark"] body .product-total *{
  color:#fff8ef!important;
}

/* Carrito: últimos ajustes de contraste */
html[data-theme="dark"] body #cartDrawer .cart-addon-pro-copy b,
html[data-theme="dark"] body #cartDrawer .cart-addon-pro-copy strong,
html[data-theme="dark"] body #cartDrawer .cart-name,
html[data-theme="dark"] body #cartDrawer .drawer-title,
html[data-theme="dark"] body #cartDrawer .total-row,
html[data-theme="dark"] body #cartDrawer .total-row *{
  color:#fff8ef!important;
}
html[data-theme="dark"] body #cartDrawer .cart-addon-pro-copy small,
html[data-theme="dark"] body #cartDrawer .cart-category,
html[data-theme="dark"] body #cartDrawer .drawer-sub{
  color:rgba(255,247,237,.72)!important;
}
