/* ==========================================================================
   StartWP Floating Buttons  v1.2
   Theme: navy #091641 → red #BE2929 · text #DFDFDF · + accent #BE2929

   Layout   : .swfb-slot.swfb-bl (bottom-left) · .swfb-rc (right-center) · .swfb-lc (left-center)
   Animation: float slot par · gradient slide + shadow pulse button par
              (is liye hover ka transform animation se ladta nahi)
   ========================================================================== */

.swfb-wrap{
  position: fixed;
  inset: 0;
  z-index: var(--swfb-z, 9999);
  pointer-events: none;
}

/* ---------- slot: sirf positioning + float ---------- */
.swfb-slot{
  position: fixed;
  display: flex;
  pointer-events: none;
}

.swfb-slot.swfb-bl{ left: 22px;  bottom: 22px; }
.swfb-slot.swfb-lc{ left: 0;     top: 50%; transform: translateY(-50%); }
.swfb-slot.swfb-rc{ right: 0;    top: 50%; transform: translateY(-50%); justify-content: flex-end; }

/* bottom button halka float karta hai (slot par → hover transform safe) */
@media (prefers-reduced-motion: no-preference){
  .swfb-slot.swfb-bl{
    animation: swfb-float 5.5s ease-in-out infinite;
    animation-play-state: var(--swfb-float-state, running);
  }
}
@keyframes swfb-float{
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ---------- the button ---------- */
.swfb-btn{
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: var(--swfb-pv, 12px) var(--swfb-ph, 18px);
  border-radius: var(--swfb-radius, 999px);
  color: var(--swfb-color, #DFDFDF) !important;
  background-color: var(--swfb-c1, #091641);
  background-image: linear-gradient(115deg,
      var(--swfb-c1, #091641) 0%,
      var(--swfb-c2, #BE2929) 50%,
      var(--swfb-c1, #091641) 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  font-size: var(--swfb-fs, 14px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .012em;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 12px 30px -10px rgba(190, 41, 41, .38),
    0 3px 10px rgba(9, 22, 65, .22),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .22s cubic-bezier(.2, .8, .3, 1.2),
              box-shadow .22s ease,
              background-position .7s ease;
}

/* gradient slide + soft shadow pulse (dono button par) */
@media (prefers-reduced-motion: no-preference){
  .swfb-btn{
    animation: swfb-gradient 6s linear infinite,
               swfb-pulse 3.8s ease-in-out infinite;
    animation-play-state: running, var(--swfb-glow-state, running);
  }
}
@keyframes swfb-gradient{
  0%   { background-position:   0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes swfb-pulse{
  0%, 100% {
    box-shadow:
      0 12px 30px -10px rgba(190, 41, 41, .30),
      0 3px 10px rgba(9, 22, 65, .22),
      inset 0 1px 0 rgba(255, 255, 255, .18);
  }
  50% {
    box-shadow:
      0 16px 40px -10px rgba(190, 41, 41, .55),
      0 4px 14px rgba(9, 22, 65, .26),
      inset 0 1px 0 rgba(255, 255, 255, .28);
  }
}

/* hover / focus */
.swfb-btn:hover,
.swfb-btn:focus-visible{
  transform: translateY(-3px);
  background-position: 100% 50%;
  box-shadow:
    0 22px 46px -12px rgba(190, 41, 41, .58),
    0 5px 16px rgba(9, 22, 65, .28),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}
.swfb-btn:hover{ animation-play-state: paused, paused; }
.swfb-btn:active{ transform: translateY(-1px) scale(.985); }
.swfb-btn:focus-visible{ outline: 2px solid #fff; outline-offset: 3px; }

/* shine sweep — har 4s me ek roshni */
.swfb-shine{
  position: absolute;
  top: -60%;
  left: -140%;
  width: 55%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(90deg,
      rgba(255,255,255,0)    0%,
      rgba(255,255,255,.30) 44%,
      rgba(255,255,255,.62) 50%,
      rgba(255,255,255,.30) 56%,
      rgba(255,255,255,0)  100%);
  pointer-events: none;
  opacity: var(--swfb-anim-shine, 1);
}
@media (prefers-reduced-motion: no-preference){
  .swfb-shine{ animation: swfb-shine 4s ease-in-out infinite; }
}
@keyframes swfb-shine{
  0%, 62%   { left: -140%; }
  88%, 100% { left: 140%;  }
}

/* icon + text + badge */
.swfb-btn .swfb-ico{ display: inline-flex; flex: 0 0 auto; }
.swfb-btn .swfb-i{
  width: 1.16em;
  height: 1.16em;
  display: block;
  transition: transform .25s cubic-bezier(.2,.8,.3,1.2);
}
.swfb-btn:hover .swfb-i{ transform: rotate(-8deg) scale(1.08); }
.swfb-btn .swfb-txt{ display: inline-block; }
.swfb-btn .swfb-badge{
  font-size: .72em;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .3em .55em;
  border-radius: 999px;
  background: #DFDFDF;
  color: #091641;
  box-shadow: 0 2px 8px rgba(9,22,65,.22);
}

/* ---------- screen edge buttons: kinare se chipke ---------- */
.swfb-btn.swfb-edge{
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.swfb-rc .swfb-btn.swfb-edge{
  border-top-left-radius: var(--swfb-radius, 999px);
  border-bottom-left-radius: var(--swfb-radius, 999px);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---------- mobile ---------- */
@media (max-width: 782px){
  .swfb-slot.swfb-bl{ left: 12px; bottom: 12px; }
  .swfb-slot.swfb-hide-sm{ display: none; }
}

/* ---------- accessibility / print ---------- */
@media (prefers-reduced-motion: reduce){
  .swfb-slot,
  .swfb-btn,
  .swfb-shine{ animation: none !important; }
  .swfb-btn{ background-position: 0% 50%; transition: box-shadow .2s ease; }
  .swfb-btn:hover{ transform: none; }
}
@media print{
  .swfb-wrap{ display: none !important; }
}

/* ==========================================================================
   COMPACT COUNT STYLE  (.swfb-btn.swfb-count)
   Upar  "20+"  → hover par icon     ·  neeche  label
   Width: --swfb-w (default 100px)
   ========================================================================== */
.swfb-slot { --swfb-w: 100px; }

.swfb-btn.swfb-count{
  box-sizing: border-box;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  width: var(--swfb-w, 100px);
  min-width: var(--swfb-w, 100px);
  max-width: var(--swfb-w, 100px);
  padding: 9px 8px 8px;
  border-radius: 16px;
  text-align: center;
  line-height: 1.05;
}

/* compact me left/right edge par poora rounded rehne dein */
.swfb-btn.swfb-count.swfb-edge{
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---- count ↔ icon swap box ---- */
.swfb-btn.swfb-count .swfb-num{
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 20px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.swfb-btn.swfb-count .swfb-num-t,
.swfb-btn.swfb-count .swfb-num-i{
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  transition: opacity .22s ease, transform .30s cubic-bezier(.2,.8,.3,1.3);
}
.swfb-btn.swfb-count .swfb-num-i{
  opacity: 0;
  transform: translateY(6px) scale(.7);
}
.swfb-btn.swfb-count .swfb-num-i .swfb-i{
  width: 17px;
  height: 17px;
}

/* hover / focus → number chala jata hai, icon aa jata hai */
.swfb-btn.swfb-count:hover .swfb-num-t,
.swfb-btn.swfb-count:focus-visible .swfb-num-t{
  opacity: 0;
  transform: translateY(-6px) scale(.75);
}
.swfb-btn.swfb-count:hover .swfb-num-i,
.swfb-btn.swfb-count:focus-visible .swfb-num-i{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* label chhota */
.swfb-btn.swfb-count .swfb-txt{
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .92;
  line-height: 1.15;
  white-space: normal;
  text-align: center;
}

/* compact me badge thoda chhota */
.swfb-btn.swfb-count .swfb-badge{
  position: absolute;
  top: -7px;
  right: -5px;
  font-size: 8.5px;
  padding: .25em .45em;
}

/* hover lift compact me bhi */
.swfb-btn.swfb-count:hover,
.swfb-btn.swfb-count:focus-visible{ transform: translateY(-3px); }

/* count icon ke hover par icon rotate na ho (num-i already animate karta hai) */
.swfb-btn.swfb-count:hover .swfb-num-i .swfb-i{ transform: none; }

@media (max-width: 782px){
  .swfb-btn.swfb-count{ --swfb-w: 92px; }
}
