/* ---- Amaara Solar floating "Calculate Savings" button ----
   Vertical side tab, fixed to the left edge, vertically centered. */

.sc-floating-btn {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 11px;
  border-radius: 0 16px 16px 0;
  background: linear-gradient(180deg, #EE6124, #286EAD);
  background-size: 200% 200%;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 4px 0 18px rgba(238, 97, 36, 0.45);
  cursor: pointer;
  border: none;
  animation: sc-float-pulse 2.4s ease-in-out infinite, sc-float-gradient 4s ease infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sc-floating-btn:hover {
  transform: translateY(-50%) translateX(4px);
  box-shadow: 6px 0 22px rgba(40, 110, 173, 0.5);
  color: #fff;
}

.sc-floating-btn:active {
  transform: translateY(-50%) translateX(1px);
}

.sc-floating-btn-icon {
  font-size: 20px;
  display: inline-block;
  animation: sc-float-bounce 1.6s ease-in-out infinite;
}

/* Text runs vertically, top-to-bottom, alongside the left edge */
.sc-floating-btn-text {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  letter-spacing: 0.4px;
}

/* pulsing glow ring, like a soft "blazing" heartbeat */
@keyframes sc-float-pulse {
  0%   { box-shadow: 4px 0 18px rgba(238, 97, 36, 0.45), 0 0 0 0 rgba(238, 97, 36, 0.55); }
  60%  { box-shadow: 4px 0 18px rgba(238, 97, 36, 0.45), 0 0 0 16px rgba(238, 97, 36, 0); }
  100% { box-shadow: 4px 0 18px rgba(238, 97, 36, 0.45), 0 0 0 0 rgba(238, 97, 36, 0); }
}

@keyframes sc-float-gradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes sc-float-bounce {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(2px); }
}

/* Slightly more compact on small screens, still vertical / left-centered */
@media (max-width: 480px) {
  .sc-floating-btn {
    padding: 14px 8px;
    font-size: 12px;
    gap: 8px;
  }
  .sc-floating-btn-icon {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sc-floating-btn,
  .sc-floating-btn-icon {
    animation: none;
  }
}
