/* UBD Modular Bonito 1.7.9 · Avisos breves y horarios CDMX */
.ubd-delivery-notice-v179,
.ubd-delivery-reopen-v179,
.ubd-smart-category-status-v179 {
  --ubd-notice-bg-1:#F5BEA4;
  --ubd-notice-bg-2:#EE9368;
  --ubd-notice-ink:#18333A;
  --ubd-notice-button:#18333A;
  --ubd-notice-button-text:#fff;
  box-sizing:border-box;
  color:var(--ubd-notice-ink);
  font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

.ubd-delivery-notice-v179 {
  position:fixed;
  right:18px;
  top:92px;
  z-index:2070;
  width:min(360px,calc(100vw - 28px));
  overflow:hidden;
  border:1px solid rgba(24,51,58,.08);
  border-radius:21px;
  background:linear-gradient(145deg,var(--ubd-notice-bg-1),var(--ubd-notice-bg-2));
  box-shadow:0 18px 44px rgba(24,51,58,.16);
  opacity:0;
  visibility:hidden;
  transform:translateY(calc(-10px + var(--ubd-notice-drag-y,0px)));
  transition:opacity .22s ease,transform .22s ease,visibility .22s ease,width .2s ease;
  touch-action:pan-y;
}
.ubd-delivery-notice-v179.is-visible{opacity:1;visibility:visible;transform:translateY(var(--ubd-notice-drag-y,0px))}
.ubd-delivery-notice-v179.is-leaving{opacity:0;visibility:hidden;transform:translateY(-8px)}
.ubd-delivery-notice-v179.is-dragging{transition:none!important}
.ubd-delivery-notice-v179 *{box-sizing:border-box}

.ubd-delivery-notice-v179 .ubd-notice-full-body{padding:13px}
.ubd-delivery-notice-v179 .ubd-notice-head{display:flex;align-items:center;gap:10px}
.ubd-delivery-notice-v179 .ubd-notice-icon{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:11px;background:rgba(255,255,255,.72)}
.ubd-delivery-notice-v179 .ubd-notice-icon.is-large{flex-basis:42px;width:42px;height:42px;border-radius:14px}
.ubd-delivery-notice-v179 .ubd-notice-icon svg,
.ubd-delivery-reopen-v179 svg,
.ubd-smart-category-status-v179 svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ubd-delivery-notice-v179 .ubd-notice-icon.is-large svg{width:24px;height:24px}
.ubd-delivery-notice-v179 .ubd-notice-phrase{display:block;min-width:0;flex:1;margin:0;font-family:"Protest Strike",Impact,sans-serif;font-size:23px;font-weight:400;line-height:1;text-wrap:balance;text-transform:uppercase}
.ubd-delivery-notice-v179 .ubd-notice-close{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;padding:0;border:0;border-radius:10px;background:rgba(255,255,255,.72);color:inherit;font-size:19px;line-height:1;cursor:pointer}
.ubd-delivery-notice-v179 .ubd-notice-primary{display:flex;align-items:center;justify-content:center;width:100%;min-height:38px;margin-top:10px;padding:0 13px;border-radius:13px;background:var(--ubd-notice-button)!important;color:var(--ubd-notice-button-text)!important;font-size:10px;font-weight:900;text-decoration:none!important}
.ubd-notice-countdown{display:flex;align-items:center;justify-content:center;margin-top:10px;padding:7px;border-radius:12px;background:rgba(255,255,255,.65)}
.ubd-notice-countdown strong,.ubd-notice-mini-countdown{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border-radius:9px;background:rgba(24,51,58,.92);color:#fff;font-size:10px;font-weight:900;letter-spacing:.02em}
.ubd-notice-countdown strong{min-width:92px;padding:6px 9px}
.ubd-notice-mini-countdown{flex:0 0 auto;padding:5px 7px}

/* Inicio: tarjeta mediana y una sola frase de hasta 13 palabras. */
.ubd-delivery-notice-v179.is-home{width:min(360px,calc(100vw - 28px))}
.ubd-delivery-notice-v179.is-home .ubd-notice-full-body{padding:14px}
.ubd-delivery-notice-v179.is-home .ubd-notice-phrase{font-size:25px}

/* Exprés e Inmediatos: más visible que la cápsula, pero sin reglamento gigante. */
.ubd-delivery-notice-v179.is-priority{width:min(390px,calc(100vw - 28px));border-radius:22px;box-shadow:0 22px 52px rgba(24,51,58,.2)}
.ubd-delivery-notice-v179.is-priority .ubd-notice-full-body{padding:15px}
.ubd-delivery-notice-v179.is-priority .ubd-notice-phrase{font-size:27px}
.ubd-delivery-notice-v179.is-priority .ubd-notice-countdown strong{min-width:112px;font-size:12px}
.ubd-delivery-notice-v179.is-priority .ubd-notice-primary{min-height:41px;font-size:11px}

/* Resto del sitio: cápsula muy pequeña, 4 a 6 palabras. */
.ubd-delivery-notice-v179.is-compact{width:min(292px,calc(100vw - 28px));border-radius:16px}
.ubd-delivery-notice-v179.is-compact .ubd-notice-compact-row{display:flex;align-items:center;gap:4px;padding:5px}
.ubd-delivery-notice-v179.is-compact .ubd-notice-expand{display:flex;align-items:center;gap:7px;min-width:0;min-height:38px;flex:1;padding:0 2px;border:0;background:transparent;color:inherit;cursor:pointer;text-align:left}
.ubd-delivery-notice-v179.is-compact .ubd-notice-expand>strong{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:900}
.ubd-delivery-notice-v179 .ubd-notice-chevron{display:grid;place-items:center;flex:0 0 23px;width:23px;height:23px;margin-left:auto;border-radius:8px;background:rgba(255,255,255,.58);transition:transform .18s ease}
.ubd-delivery-notice-v179 .ubd-notice-chevron svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ubd-delivery-notice-v179.is-compact>.ubd-notice-full-body{display:none;padding:11px;border-top:1px solid rgba(24,51,58,.08)}
.ubd-delivery-notice-v179.is-compact.is-expanded{width:min(330px,calc(100vw - 28px));border-radius:19px}
.ubd-delivery-notice-v179.is-compact.is-expanded>.ubd-notice-full-body{display:block;animation:ubdNoticeOpen179 .18s ease both}
.ubd-delivery-notice-v179.is-compact.is-expanded .ubd-notice-chevron{transform:rotate(180deg)}
.ubd-delivery-notice-v179.is-compact .ubd-notice-phrase{font-size:19px}
@keyframes ubdNoticeOpen179{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}

.ubd-delivery-reopen-v179{position:fixed;right:18px;top:92px;z-index:2069;display:flex;align-items:center;gap:7px;max-width:min(250px,calc(100vw - 28px));min-height:38px;padding:5px 10px 5px 6px;border:1px solid rgba(24,51,58,.08);border-radius:14px;background:linear-gradient(145deg,var(--ubd-notice-bg-1),var(--ubd-notice-bg-2));box-shadow:0 12px 28px rgba(24,51,58,.14);opacity:0;visibility:hidden;transform:translateY(-8px);transition:.2s ease;cursor:pointer}
.ubd-delivery-reopen-v179.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.ubd-delivery-reopen-v179 span{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:9px;background:rgba(255,255,255,.7)}
.ubd-delivery-reopen-v179 strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;font-weight:900}

/* Estado dentro de las categorías Exprés e Inmediatos. */
.ubd-smart-category-status-v179{display:flex;align-items:center;gap:11px;width:100%;margin:0 0 14px;padding:11px 12px;border:1px solid rgba(24,51,58,.08);border-radius:17px;background:linear-gradient(135deg,var(--ubd-notice-bg-1),var(--ubd-notice-bg-2));box-shadow:0 10px 26px rgba(24,51,58,.09)}
.ubd-smart-category-status-v179 .ubd-smart-category-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.7)}
.ubd-smart-category-status-v179>div{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.ubd-smart-category-status-v179>div>strong{display:block;min-width:0;font-family:"Protest Strike",Impact,sans-serif;font-size:20px;font-weight:400;line-height:1;text-wrap:balance;text-transform:uppercase}
.ubd-smart-category-status-v179 .ubd-smart-category-countdown{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;padding:6px 8px;border-radius:9px;background:rgba(24,51,58,.92);color:#fff;font-size:10px;font-weight:900;white-space:nowrap}
.ubd-smart-category-status-v179>a{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-height:37px;padding:0 12px;border-radius:12px;background:var(--ubd-notice-button);color:var(--ubd-notice-button-text)!important;font-size:9px;font-weight:900;text-decoration:none!important;white-space:nowrap}

#ios-glass-wrapper,#reopen-tie-wrapper,.ubd-delivery-notice-v178,.ubd-delivery-reopen-v178,.ubd-smart-category-status-v178{display:none!important}

@media(max-width:767px){
  .ubd-delivery-notice-v179{top:auto;right:12px;bottom:calc(86px + env(safe-area-inset-bottom));transform:translateY(calc(10px + var(--ubd-notice-drag-y,0px)))}
  .ubd-delivery-notice-v179.is-visible{transform:translateY(var(--ubd-notice-drag-y,0px))}
  .ubd-delivery-notice-v179.is-home{width:min(340px,calc(100vw - 24px))}
  .ubd-delivery-notice-v179.is-priority{width:min(356px,calc(100vw - 24px))}
  .ubd-delivery-notice-v179.is-priority .ubd-notice-phrase{font-size:24px}
  .ubd-delivery-notice-v179.is-compact{width:min(278px,calc(100vw - 24px))}
  .ubd-delivery-notice-v179.is-compact.is-expanded{width:min(316px,calc(100vw - 24px))}
  .ubd-delivery-reopen-v179{top:auto;right:12px;bottom:calc(89px + env(safe-area-inset-bottom));max-width:min(238px,calc(100vw - 24px))}
  .ubd-smart-category-status-v179{align-items:stretch;gap:9px;padding:10px;border-radius:16px}
  .ubd-smart-category-status-v179>div{display:grid;gap:5px}
  .ubd-smart-category-status-v179>div>strong{font-size:18px}
  .ubd-smart-category-status-v179>a{min-height:36px;padding:0 10px}
}

@media(max-width:390px){
  .ubd-smart-category-status-v179{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center}
  .ubd-smart-category-status-v179>a{grid-column:1/-1;width:100%}
}

@media(prefers-reduced-motion:reduce){
  .ubd-delivery-notice-v179,.ubd-delivery-reopen-v179,.ubd-delivery-notice-v179 .ubd-notice-chevron{transition:none!important}
  .ubd-delivery-notice-v179.is-compact.is-expanded>.ubd-notice-full-body{animation:none!important}
}

[data-ubd-smart-delivery-card].is-ubd-delivery-active{
  outline:3px solid rgba(24,51,58,.16);
  outline-offset:3px;
  transform:translateY(-2px);
}
