:root {
  --wb-bg: rgba(14, 13, 12, 0.96);
  --wb-bg-gradient: linear-gradient(135deg, rgba(30, 27, 24, 0.98) 0%, rgba(20, 18, 16, 0.98) 55%, rgba(11, 10, 9, 0.98) 100%);
  --wb-accent: #d4ab67;
  --wb-accent-strong: #f0c57a;
  --wb-border: rgba(212, 171, 103, 0.34);
  --wb-label-color: #d4ab67;
  --wb-title-color: #ffffff;
  --wb-subtitle-color: #d0c0a8;
  --wb-cta-bg: #d4ab67;
  --wb-cta-bg-hover: #f0c57a;
  --wb-cta-color: #17120c;
  --wb-close-color: #d0c0a8;
  --wb-close-hover: #ffffff;
  --wb-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
  --wb-anim-speed: 0.5s;
}

.wb-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 35;
  width: min(calc(100% - 24px), 1040px);
  padding: 14px 52px 14px 18px;
  border: 1px solid var(--wb-border);
  border-radius: 24px;
  background: var(--wb-bg-gradient);
  box-shadow: var(--wb-shadow);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
  transition:
    transform var(--wb-anim-speed) cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity var(--wb-anim-speed) ease;
  will-change: transform, opacity;
}

.wb-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(212, 171, 103, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(212, 171, 103, 0.12), transparent 32%);
  pointer-events: none;
}

.wb-banner.wb-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.wb-banner.wb-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 24px));
}

.wb-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.wb-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 14px;
  font-size: 1.5rem;
  background: rgba(212, 171, 103, 0.14);
  box-shadow: inset 0 0 0 1px rgba(212, 171, 103, 0.12);
  animation: wb-pulse 2s ease-in-out infinite;
}

@keyframes wb-pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.wb-text {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.wb-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wb-label-color);
}

.wb-title {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--wb-title-color);
}

.wb-subtitle {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--wb-subtitle-color);
}

.wb-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid rgba(240, 197, 122, 0.26);
  background: var(--wb-cta-bg);
  box-shadow: 0 16px 28px rgba(212, 171, 103, 0.22);
  color: var(--wb-cta-color);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.wb-cta:hover {
  background: var(--wb-cta-bg-hover);
  color: var(--wb-cta-color);
  transform: translateY(-1px);
  box-shadow: 0 18px 32px rgba(212, 171, 103, 0.28);
}

.wb-cta:focus-visible,
.wb-close:focus-visible {
  outline: 2px solid var(--wb-accent-strong);
  outline-offset: 3px;
}

.wb-cta:active {
  transform: translateY(0);
}

.wb-countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-right: 4px;
}

.wb-countdown-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.wb-countdown-ring svg {
  display: block;
  transform: rotate(-90deg);
}

.wb-countdown-ring .track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 3;
}

.wb-countdown-ring .progress {
  fill: none;
  stroke: var(--wb-accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 113.0973;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}

.wb-countdown-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
}

.wb-countdown-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wb-subtitle-color);
}

.wb-close {
  position: absolute;
  top: 50%;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--wb-close-color);
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.wb-close:hover {
  color: var(--wb-close-hover);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-50%) rotate(90deg);
}

body.wb-banner-visible {
  --wb-banner-space: calc(var(--wb-banner-offset, 0px) + 16px);
}

body.wb-banner-visible .scrolltop,
body.wb-banner-visible .scroll-top,
body.wb-banner-visible .back-to-top,
body.wb-banner-visible [data-scrolltop] {
  bottom: var(--wb-banner-space) !important;
}

@media (max-width: 640px) {
  .wb-banner {
    bottom: 12px;
    width: calc(100% - 16px);
    padding: 12px 46px 12px 14px;
    border-radius: 20px;
  }

  .wb-inner {
    gap: 12px;
  }

  .wb-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.35rem;
  }

  .wb-title {
    font-size: 0.94rem;
  }

  .wb-subtitle {
    font-size: 0.74rem;
  }
}

@media (max-width: 520px) {
  .wb-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
  }

  .wb-text {
    gap: 4px;
  }

  .wb-cta {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }
}

@media (max-width: 360px) {
  .wb-banner {
    padding-right: 42px;
  }

  .wb-countdown {
    display: none;
  }

  .wb-title {
    font-size: 0.9rem;
  }

  .wb-subtitle {
    font-size: 0.72rem;
  }
}

@media (max-width: 300px) {
  .wb-banner {
    padding: 10px 36px 10px 12px;
  }

  .wb-inner {
    gap: 10px;
  }

  .wb-icon {
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
  }

  .wb-cta {
    min-height: 42px;
    padding: 10px 16px;
    font-size: 0.84rem;
  }
}
