/* Popup de promociones + botón flotante "PROMOCIONES" (se carga solo cuando hay una campaña activa; ver app/_popup.php). */
/* ---------- Popup de promociones (solo Home) ---------- */
#csdc-fab {
  height: 190px; bottom: 173px; right: 21px; z-index: 10;
  font: 700 15px Arial, Helvetica, sans-serif; position: fixed;
  color: #fff; background-color: #222; letter-spacing: 1px;
  border-radius: 30px; width: 64px; padding: 14px 0; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
}
#csdc-fab span { writing-mode: vertical-rl; }

#csdc-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); display: none; align-items: center; justify-content: center; z-index: 999999; padding: 16px; box-sizing: border-box; }
#csdc-overlay.csdc-open { display: flex; }
#csdc-modal { position: relative; width: 100%; max-width: 420px; height: fit-content; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 10px 40px rgba(0, 0, 0, .4); font-family: Arial, Helvetica, sans-serif; }
#csdc-close { position: absolute; top: 8px; right: 10px; background: rgba(0, 0, 0, .55); color: #fff; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; z-index: 2; }
#csdc-slider { position: relative; height: fit-content; overflow: hidden; }
#csdc-track { display: flex; transition: transform .4s ease; height: fit-content; }
.csdc-slide { min-width: 100%; box-sizing: border-box; text-align: center; }
.csdc-slide img { width: 100%; height: auto; display: block; }
.csdc-arrow { position: absolute; top: 40%; transform: translateY(-50%); background: rgba(0, 0, 0, .4); color: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 16px; z-index: 2; display: none !important; }
#csdc-prev { left: 8px; }
#csdc-next { right: 8px; }
#csdc-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 16px; }
#csdc-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: #ccc; cursor: pointer; padding: 0; }
#csdc-dots button.csdc-active { background: #000; }

@media (max-width: 750px) {
  #csdc-fab { height: 163px; bottom: 135px; right: 11px; font-size: 12px; width: 50px; }
}
