.ccwp-widget {
  position: fixed;
  bottom: var(--ccwp-bottom, 20px);
  z-index: 99999;
  pointer-events: none;
}

.ccwp-right { right: var(--ccwp-side, 20px); }
.ccwp-left { left: var(--ccwp-side, 20px); }

.ccwp-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.ccwp-button {
  position: relative;
  min-height: var(--ccwp-size, 68px);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ccwp-bg, #16a34a);
  color: var(--ccwp-text, #fff);
  backdrop-filter: saturate(140%) blur(14px);
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease, opacity .28s ease, max-width .28s ease;
  overflow: hidden;
}

.ccwp-icon {
  width: calc(var(--ccwp-size, 68px) - 20px);
  height: calc(var(--ccwp-size, 68px) - 20px);
  min-width: calc(var(--ccwp-size, 68px) - 20px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ccwp-icon, #fff);
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.ccwp-icon svg {
  width: 54%;
  height: 54%;
}

.ccwp-label {
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap;
  letter-spacing: .01em;
}

.ccwp-ripple {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background: var(--ccwp-bg, #16a34a);
  filter: blur(18px);
  opacity: .45;
  transform: scale(.92);
  animation: ccwpPulseHalo 3.2s ease-in-out infinite;
  pointer-events: none;
}

.ccwp-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(17, 24, 39, .92);
  color: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  white-space: nowrap;
}

.ccwp-link:hover .ccwp-tooltip,
.ccwp-link:focus-visible .ccwp-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ccwp-link:hover .ccwp-button,
.ccwp-link:focus-visible .ccwp-button {
  transform: translateY(-2px) scale(1.02);
}

.ccwp-style-minimal .ccwp-button {
  box-shadow: 0 14px 30px rgba(15, 23, 42, .14);
}

.ccwp-style-glow .ccwp-button {
  box-shadow: 0 18px 34px rgba(15, 23, 42, .22), 0 0 24px rgba(34, 197, 94, .28);
}

.ccwp-style-glass .ccwp-button {
  background: color-mix(in srgb, var(--ccwp-bg, #16a34a) 58%, rgba(255,255,255,.2));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 18px 34px rgba(15, 23, 42, .16), inset 0 1px 0 rgba(255,255,255,.24);
}

.ccwp-text-hover .ccwp-button {
  max-width: calc(var(--ccwp-size, 68px) + 12px);
  padding-right: 10px;
}

.ccwp-text-hover .ccwp-label {
  opacity: 0;
  transform: translateX(8px);
  max-width: 0;
  transition: opacity .24s ease, transform .24s ease, max-width .24s ease;
}

.ccwp-text-hover .ccwp-link:hover .ccwp-button,
.ccwp-text-hover .ccwp-link:focus-visible .ccwp-button {
  max-width: 260px;
  padding-right: 16px;
}

.ccwp-text-hover .ccwp-link:hover .ccwp-label,
.ccwp-text-hover .ccwp-link:focus-visible .ccwp-label {
  opacity: 1;
  transform: translateX(0);
  max-width: 180px;
}

.ccwp-text-always .ccwp-button {
  max-width: 260px;
}

.ccwp-anim-ring .ccwp-icon {
  transform-origin: 55% 55%;
  animation: ccwpRing 3.2s ease-in-out infinite;
}

.ccwp-anim-pulse .ccwp-button {
  animation: ccwpSoftPulse 2.6s ease-in-out infinite;
}

.ccwp-anim-float .ccwp-link {
  animation: ccwpFloat 3.6s ease-in-out infinite;
}

.ccwp-anim-none .ccwp-ripple {
  animation: none;
  opacity: .25;
}

@keyframes ccwpRing {
  0%, 55%, 100% { transform: rotate(0); }
  6% { transform: rotate(-18deg); }
  12% { transform: rotate(14deg); }
  18% { transform: rotate(-10deg); }
  24% { transform: rotate(7deg); }
  30% { transform: rotate(-3deg); }
}

@keyframes ccwpSoftPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}

@keyframes ccwpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes ccwpPulseHalo {
  0%, 100% { transform: scale(.92); opacity: .38; }
  50% { transform: scale(1.06); opacity: .16; }
}

@media (max-width: 767px) {
  .ccwp-hide-mobile { display: none; }
  .ccwp-widget { bottom: max(var(--ccwp-bottom, 20px), 14px); }
  .ccwp-button { padding-right: 12px; }
  .ccwp-text-hover .ccwp-button,
  .ccwp-text-hover .ccwp-link:hover .ccwp-button,
  .ccwp-text-hover .ccwp-link:focus-visible .ccwp-button {
    max-width: 220px;
  }
}
