/**
 * File Name: permanent-banner.css
 * 2026-05-07 | Final checked
 */

body {
  padding-bottom: 50px;
}

body .fixed-bottom-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #ffa69e, #ff7eb3);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
  z-index: var(--z_980-banner);
  overflow: hidden;
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  visibility: hidden;
  transition:
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.6s,
    visibility 0.6s;
}

.banner-inner {
  display: flex;
  height: 100%;
  align-items: center;
  position: relative;
}

.banner-cta-item {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  padding: 0 10px;
  gap: 8px;
  transition: background 0.4s ease;
  height: 100%;
}

.banner-cta-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.banner-divider {
  width: 1px;
  height: 60%;
  background: rgba(255, 255, 255, 0.3);
  position: relative;
}

.btn-text-area {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: center;
}

.btn-title {
  font-size: 13px;
  font-weight: bold;
}

.btn-subtitle {
  font-size: 10px;
  opacity: 0.9;
}

.btn-icon svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

body .fixed-bottom-banner.is-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.banner-particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  filter: blur(1px);
  pointer-events: none;
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.banner-cta-item:hover .btn-icon svg {
  animation: bannerSparkle 0.8s ease-in-out infinite;
}

@keyframes bannerSparkle {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.3) rotate(10deg);
    filter: brightness(1.5) drop-shadow(0 0 8px #fff);
  }
}

@media (min-width: 768px) {
  body .fixed-bottom-banner {
    height: 70px;
  }
  body {
    padding-bottom: 70px;
  }
  .btn-title {
    font-size: 18px;
  }
  .btn-subtitle {
    font-size: 13px;
  }
  .btn-icon svg {
    width: 20px;
    height: 20px;
  }
  .btn-text-area {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }

  .banner-particle {
    width: 8px;
    height: 8px;
  }
}
