/* Botón flotante de WhatsApp */
.arxwa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 160;
  width: var(--arxwa-size, 60px); height: var(--arxwa-size, 60px); border-radius: 50%;
  background: #25d366; color: #fff !important; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28); text-decoration: none;
  transition: transform .25s cubic-bezier(.22, .8, .24, 1), bottom .25s ease;
}
.arxwa-float.arxwa-left { right: auto; left: 22px; }
.arxwa-float:hover { transform: scale(1.08); }
.arxwa-float svg { width: 52%; height: 52%; display: block; position: relative; }
/* Onda que llama la atención sin molestar */
.arxwa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .55; animation: arxwa-onda 2.6s ease-out infinite; }
@keyframes arxwa-onda { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
.arxwa-etq { position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); background: #111; color: #fff; font: 600 13px/1 -apple-system, "Segoe UI", sans-serif; padding: 9px 12px; white-space: nowrap; border-radius: 6px; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.arxwa-left .arxwa-etq { right: auto; left: calc(100% + 12px); }
.arx-con-cookies .arxwa-float { bottom: 130px; }
.arxwa-con-pedido .arxwa-float { bottom: 96px; }
.arxwa-con-pedido .arx-arriba { bottom: 170px; }
.arxwa-con-pedido body { padding-bottom: 76px; }

/* Barra de acción (solo en celular) */
.arxwa-barra { display: none; }

/* ------------------------------------------------------------------ Pedido de la tienda: barra inferior */
.arxwa-pedido { position: fixed; left: 0; right: 0; bottom: 0; z-index: 175; background: #0f0f0f; color: #fff; box-shadow: 0 -10px 34px rgba(0, 0, 0, .28); font-family: inherit; animation: arxwa-sube .4s cubic-bezier(.22, .8, .24, 1); }
.arxwa-pedido[hidden] { display: none; }
@keyframes arxwa-sube { from { transform: translateY(100%); } }
.arxwa-pedido.is-nuevo .arxwa-pedido__ico { animation: arxwa-salto .5s ease; }
@keyframes arxwa-salto { 35% { transform: scale(1.25) rotate(-8deg); } 70% { transform: scale(.95); } }
.arxwa-pedido__in { max-width: 1400px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.arxwa-pedido__res { display: flex; align-items: center; gap: 14px; min-width: 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left; padding: 0; font: inherit; }
.arxwa-pedido__ico { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: flex; align-items: center; justify-content: center; }
.arxwa-pedido__ico b { position: absolute; right: -4px; top: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: hsl(var(--primary, 29 54% 49%)); color: #fff; font: 700 12px/22px -apple-system, "Segoe UI", sans-serif; text-align: center; box-sizing: border-box; }
.arxwa-pedido__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.arxwa-pedido__txt strong { font-size: 16px; line-height: 1.2; }
.arxwa-pedido__txt small { font-size: 13px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52vw; }
.arxwa-pedido__btns { display: flex; gap: 10px; flex: none; }
.arxwa-pedido__ver { padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: 700 14px/1 inherit; cursor: pointer; }
.arxwa-pedido__ver:hover { background: rgba(255, 255, 255, .1); }
.arxwa-pedido__enviar { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 0; background: #25d366; color: #06371b; font: 700 14px/1 inherit; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.arxwa-pedido__enviar:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(37, 211, 102, .35); }

/* Hoja con el detalle del pedido */
.arxwa-hoja { position: fixed; inset: 0; z-index: 174; background: rgba(10, 10, 10, .5); display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 24px 86px; animation: arxwa-aparece .2s ease; }
@keyframes arxwa-aparece { from { opacity: 0; } }
.arxwa-hoja__caja { width: 100%; max-width: 440px; max-height: calc(100vh - 140px); overflow-y: auto; background: #fff; color: #111; border-radius: 18px; padding: 20px; box-shadow: 0 30px 70px rgba(0, 0, 0, .35); animation: arxwa-hoja .3s cubic-bezier(.22, .8, .24, 1); box-sizing: border-box; }
@keyframes arxwa-hoja { from { transform: translateY(24px); opacity: 0; } }
.arxwa-hoja__cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.arxwa-hoja__cab strong { font-size: 19px; }
.arxwa-hoja__cab button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f2f0ee; color: #111; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arxwa-hoja__lista { list-style: none; margin: 0 0 14px; padding: 0; }
.arxwa-hoja__lista li { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid #eee; }
.arxwa-hoja__lista li > span { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.3; }
.arxwa-cant { display: flex; align-items: center; gap: 2px; border: 1px solid #ddd; border-radius: 999px; padding: 2px; }
.arxwa-cant button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; line-height: 1; cursor: pointer; color: #111; }
.arxwa-cant button:hover { background: #f2f0ee; }
.arxwa-cant b { min-width: 22px; text-align: center; font-size: 14px; }
.arxwa-hoja__x { width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #a33; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.arxwa-hoja__x:hover { background: #fdecea; }
.arxwa-hoja__nota { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.arxwa-hoja__nota textarea { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 10px; font: 400 15px/1.4 inherit; resize: vertical; box-sizing: border-box; }
.arxwa-hoja__ayuda { margin: 10px 0 0; font-size: 13px; color: #666; }
.arxwa-hoja__pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.arxwa-hoja__vaciar { border: 0; background: none; color: #a33; font: 600 14px/1 inherit; cursor: pointer; padding: 10px 4px; }
.arxwa-hoja__vacio { margin: 12px 0; color: #666; }

@media (max-width: 760px) {
  .arxwa-barra {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 170; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    background: #0f0f0f; border-top: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 -8px 24px rgba(0, 0, 0, .3);
  }
  .arxwa-barra a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px 11px; color: #f5f5f5 !important; text-decoration: none; font: 600 12px/1 -apple-system, "Segoe UI", sans-serif; letter-spacing: .04em; border-left: 1px solid rgba(255, 255, 255, .1); }
  .arxwa-barra a:first-child { border-left: 0; }
  .arxwa-barra a.arxwa-barra__wa { color: #25d366 !important; }
  .arxwa-barra a.arxwa-barra__cta { background: hsl(var(--primary, 29 54% 49%)); color: #fff !important; }
  .arxwa-con-barra body { padding-bottom: 62px; }
  .arxwa-con-barra .arxwa-float { display: none; }
  .arxwa-con-barra .arx-arriba { bottom: 78px; }
  .arxwa-con-barra .arx-cookies { bottom: 62px; }
  /* con pedido: la barra del pedido va encima de la barra de acción */
  .arxwa-con-barra .arxwa-pedido { bottom: 62px; }
  .arxwa-con-pedido.arxwa-con-barra body { padding-bottom: 132px; }
  .arxwa-con-pedido.arxwa-con-barra .arx-arriba { bottom: 150px; }
  .arxwa-pedido__in { padding: 10px 14px; gap: 10px; }
  .arxwa-pedido__ver, .arxwa-pedido__txt small { display: none; }
  .arxwa-pedido__ico { width: 40px; height: 40px; }
  .arxwa-pedido__enviar { padding: 12px 14px; }
  .arxwa-hoja { padding: 0 10px 142px; justify-content: center; }
  .arxwa-hoja__caja { max-height: calc(100vh - 190px); }
}
@media (prefers-reduced-motion: reduce) { .arxwa-float::before { animation: none; display: none; } .arxwa-pedido, .arxwa-hoja, .arxwa-hoja__caja { animation: none; } }
