/* ==========================================================================
   Trends CORE WhatsApp Commerce — site-wide floating button
   Deliberately standalone: no dependency on tcwc.css/tcwc.js, so it can be
   enqueued on every front-end page without pulling in the modal-checkout
   bundle that's only needed on product/cart pages.
   ========================================================================== */

.tcwc-float-btn{
  position:fixed;
  bottom:20px;
  z-index:99990; /* below the checkout modal overlay (100000), above normal page content */
  width:58px;
  height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow:0 8px 24px rgba(7,94,84,.32);
  text-decoration:none;
  transition:transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s cubic-bezier(.4,0,.2,1);
  /* keep clear of iOS home-indicator / notch safe areas */
  margin-bottom:env(safe-area-inset-bottom, 0);
}
.tcwc-float-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 30px rgba(7,94,84,.4);
}
.tcwc-float-btn:active{ transform:translateY(-1px); }

.tcwc-float-right{ right:20px; }
.tcwc-float-left{ left:20px; }

.tcwc-float-icon{
  width:30px;
  height:30px;
  background-color:#FFFFFF;
  -webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16.001 0C7.164 0 .001 7.163.001 16c0 2.823.738 5.58 2.14 8.005L0 32l8.2-2.115A15.94 15.94 0 0 0 16.001 32C24.837 32 32 24.837 32 16S24.837 0 16.001 0zm0 29.09c-2.55 0-5.043-.686-7.223-1.984l-.518-.307-4.865 1.256 1.3-4.74-.337-.487A13.06 13.06 0 0 1 2.91 16C2.91 8.79 8.79 2.91 16.001 2.91S29.09 8.79 29.09 16 23.212 29.09 16.001 29.09zm7.17-9.78c-.393-.196-2.32-1.144-2.68-1.276-.36-.13-.622-.196-.884.197-.262.393-1.014 1.276-1.243 1.538-.229.262-.458.295-.85.098-.393-.196-1.66-.611-3.163-1.951-1.169-1.043-1.959-2.331-2.188-2.724-.229-.393-.024-.605.172-.8.177-.176.393-.458.59-.687.196-.229.262-.393.393-.655.13-.262.065-.49-.033-.687-.098-.196-.884-2.13-1.212-2.918-.319-.766-.643-.662-.884-.674l-.752-.013c-.262 0-.687.098-1.047.49-.36.393-1.375 1.343-1.375 3.276s1.408 3.802 1.604 4.064c.196.262 2.77 4.229 6.71 5.93.938.405 1.669.647 2.24.828.941.3 1.797.257 2.474.156.755-.113 2.32-.949 2.647-1.866.327-.916.327-1.702.229-1.866-.098-.163-.36-.262-.752-.458z'/></svg>");
  mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16.001 0C7.164 0 .001 7.163.001 16c0 2.823.738 5.58 2.14 8.005L0 32l8.2-2.115A15.94 15.94 0 0 0 16.001 32C24.837 32 32 24.837 32 16S24.837 0 16.001 0zm0 29.09c-2.55 0-5.043-.686-7.223-1.984l-.518-.307-4.865 1.256 1.3-4.74-.337-.487A13.06 13.06 0 0 1 2.91 16C2.91 8.79 8.79 2.91 16.001 2.91S29.09 8.79 29.09 16 23.212 29.09 16.001 29.09zm7.17-9.78c-.393-.196-2.32-1.144-2.68-1.276-.36-.13-.622-.196-.884.197-.262.393-1.014 1.276-1.243 1.538-.229.262-.458.295-.85.098-.393-.196-1.66-.611-3.163-1.951-1.169-1.043-1.959-2.331-2.188-2.724-.229-.393-.024-.605.172-.8.177-.176.393-.458.59-.687.196-.229.262-.393.393-.655.13-.262.065-.49-.033-.687-.098-.196-.884-2.13-1.212-2.918-.319-.766-.643-.662-.884-.674l-.752-.013c-.262 0-.687.098-1.047.49-.36.393-1.375 1.343-1.375 3.276s1.408 3.802 1.604 4.064c.196.262 2.77 4.229 6.71 5.93.938.405 1.669.647 2.24.828.941.3 1.797.257 2.474.156.755-.113 2.32-.949 2.647-1.866.327-.916.327-1.702.229-1.866-.098-.163-.36-.262-.752-.458z'/></svg>");
  mask-repeat:no-repeat; -webkit-mask-repeat:no-repeat;
  mask-size:contain; -webkit-mask-size:contain;
}

/* subtle one-time pulse so it catches the eye without being annoying on every page load */
.tcwc-float-btn{ animation:tcwc-float-pulse 2.4s cubic-bezier(.4,0,.2,1) 1s 1; }
@keyframes tcwc-float-pulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.5), 0 8px 24px rgba(7,94,84,.32); }
  70%{ box-shadow:0 0 0 16px rgba(37,211,102,0), 0 8px 24px rgba(7,94,84,.32); }
  100%{ box-shadow:0 8px 24px rgba(7,94,84,.32); }
}

@media (max-width:480px){
  .tcwc-float-btn{ width:52px; height:52px; bottom:16px; }
  .tcwc-float-right{ right:16px; }
  .tcwc-float-left{ left:16px; }
  .tcwc-float-icon{ width:26px; height:26px; }
}
