/* FRAWLA floating controls — CARTEL geometry, Frawla visual identity */
.back-to-top{
  position:fixed !important;
  inset-inline-start:auto !important;
  inset-inline-end:22px !important;
  bottom:22px !important;
  top:auto !important;
  z-index:99999 !important;
  width:58px !important;
  height:58px !important;
  border-radius:14px !important;
  border:1px solid rgba(213,93,119,.48) !important;
  background:linear-gradient(145deg,#b94766,#8f2f4a) !important;
  color:#fff !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-direction:column !important;
  gap:0 !important;
  padding:0 !important;
  margin:0 !important;
  box-shadow:0 14px 30px rgba(111,45,68,.24),0 0 0 2px rgba(213,93,119,.08) !important;
  opacity:0 !important;
  visibility:hidden !important;
  transform:translateY(14px) scale(.95) !important;
  pointer-events:none !important;
  transition:.22s ease !important;
  cursor:pointer !important;
  box-sizing:border-box !important;
}
.back-to-top.show{
  opacity:1 !important;
  visibility:visible !important;
  transform:none !important;
  pointer-events:auto !important;
}
.back-to-top:hover{
  background:linear-gradient(145deg,#d45b78,#9f304f) !important;
  transform:translateY(-3px) scale(1.02) !important;
}
.back-to-top-mark{font-size:21px !important;line-height:18px !important;font-weight:500 !important}
.back-to-top-label{font-size:6px !important;line-height:1 !important;letter-spacing:.22em !important;font-weight:700 !important;color:#f7dbe3 !important;margin-top:3px !important}

.frawla-float-actions{
  position:fixed;
  inset-inline-start:18px;
  inset-inline-end:auto;
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:80;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:9px;
  max-width:calc(100vw - 28px);
  font-family:inherit;
}
.frawla-float-action{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:46px;
  max-width:100%;
  padding:0 16px;
  border:1px solid #efd2dc;
  border-radius:16px;
  background:linear-gradient(145deg,#fffdfd,#fff5f7);
  color:#6e2d43;
  box-shadow:0 7px 22px rgba(111,45,68,.14);
  font-family:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  text-decoration:none;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease;
  -webkit-tap-highlight-color:transparent;
}
.frawla-float-action:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 25px rgba(111,45,68,.19);
}
.frawla-float-action:active{transform:scale(.98)}
.frawla-float-action:focus-visible,
.frawla-contact-option:focus-visible{
  outline:3px solid #d55a77;
  outline-offset:3px;
}
.frawla-float-action svg,
.frawla-contact-option svg{
  flex:0 0 19px;
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.frawla-track-action{
  border-color:#a34762;
  background:linear-gradient(145deg,#b94766,#8f2f4a);
  color:#fff;
}
.frawla-contact-wrap{position:relative}
.frawla-contact-menu{
  position:absolute;
  inset-inline-start:auto;
  inset-inline-end:0;
  bottom:calc(100% + 9px);
  display:grid;
  gap:4px;
  width:max-content;
  min-width:190px;
  max-width:calc(100vw - 36px);
  padding:8px;
  border:1px solid #efd2dc;
  border-radius:15px;
  background:rgba(255,253,253,.98);
  box-shadow:0 12px 34px rgba(71,35,48,.19);
  backdrop-filter:blur(12px);
}
.frawla-contact-menu[hidden]{display:none}
.frawla-contact-option{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 11px;
  border-radius:10px;
  color:#6e2d43;
  font-family:inherit;
  font-size:13px;
  font-weight:500;
  line-height:1.3;
  text-decoration:none;
}
.frawla-contact-option:hover{background:#fff0f4}
.frawla-contact-empty{
  max-width:230px;
  margin:0;
  padding:10px;
  color:#77515e;
  font-size:12px;
  line-height:1.5;
}

/* Kill any legacy/static mascot image outside the floating control */
footer img[src*="frawla-whatsapp-mascot"],
body > img[src*="frawla-whatsapp-mascot"],
.footer img[src*="frawla-whatsapp-mascot"],
.frawla-whatsapp-mascot:not(.whatsapp-float){display:none !important}

@media(max-width:560px){
  .back-to-top{inset-inline-end:14px !important;bottom:14px !important;width:52px !important;height:52px !important;border-radius:12px !important}
  .back-to-top-mark{font-size:19px !important}
  .frawla-float-actions{
    inset-inline-start:12px;
    inset-inline-end:auto;
    bottom:max(12px,env(safe-area-inset-bottom));
    gap:7px;
  }
  .frawla-float-action{min-height:42px;padding:0 12px;gap:7px;border-radius:14px;font-size:12px}
  .frawla-float-action svg,.frawla-contact-option svg{width:18px;height:18px;flex-basis:18px}
  .checkout-page .frawla-float-actions{bottom:calc(82px + env(safe-area-inset-bottom))}
}


/* FRAWLA mobile no-obstruction floating actions (2026-10-14) */
.frawla-float-reveal{
  display:none;
  box-sizing:border-box;
  border:1px solid #efd2dc;
  padding:0;
  margin:0;
  align-items:center;
  justify-content:center;
  font-family:inherit;
  font-size:26px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.frawla-float-reveal:focus-visible{outline:3px solid #d55a77;outline-offset:3px}
@media(max-width:700px){
  .frawla-float-actions{transition:opacity .18s ease,transform .18s ease}
  .frawla-float-actions.scroll-collapsed{
    width:42px;
    height:42px;
    min-width:42px;
    max-width:42px;
    padding:0;
    margin:0;
    gap:0;
    align-items:center;
    justify-content:center;
    overflow:visible;
    border:0;
    border-radius:50%;
    background:linear-gradient(145deg,#c84d70,#96304f);
    box-shadow:0 5px 16px rgba(111,45,68,.22);
  }
  .frawla-float-actions.scroll-collapsed .frawla-track-action,
  .frawla-float-actions.scroll-collapsed .frawla-contact-wrap{display:none !important}
  .frawla-float-actions.scroll-collapsed .frawla-float-reveal{
    display:flex;
    width:42px;
    height:42px;
    min-width:42px;
    min-height:42px;
    border:0;
    border-radius:50%;
    background:transparent;
    color:#fff;
    box-shadow:none;
  }
}
