.banner-preview .pb-site-banner {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 1;
  animation: none;
}

body.pb-has-banner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.pb-has-banner #root {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

body.pb-has-banner.pb-has-footer .pb-footer {
  flex-shrink: 0;
}

body.pb-has-banner #root header.fixed,
body.pb-has-banner #root .fixed.top-0,
body.pb-has-banner #root [class*="fixed"][class*="top-0"],
body:has(.pb-site-banner) #root header.fixed,
body:has(.pb-site-banner) #root .fixed.top-0,
body:has(.pb-site-banner) #root [class*="fixed"][class*="top-0"] {
  top: var(--pb-banner-h, 40px) !important;
}

@media (max-width: 768px) {
  body.pb-has-banner.pb-search-open #root div.fixed.top-14.z-40,
  body.pb-has-banner.pb-search-open #root [class*="fixed"][class*="top-14"][class*="z-40"] {
    top: calc(var(--pb-banner-h, 40px) + 3.5rem) !important;
    z-index: 65 !important;
  }

  body.pb-has-banner.pb-search-open .pb-site-banner {
    z-index: 50;
  }
}

body.pb-has-banner.pb-menu-open .pb-site-banner {
  z-index: 40;
}

body.pb-has-banner.pb-menu-open .fixed.inset-0.z-50[data-state="open"],
body.pb-has-banner.pb-menu-open .fixed.inset-y-0.left-0[data-state="open"],
body.pb-has-banner.pb-menu-open .fixed.inset-y-0[class*="left-0"][data-state="open"] {
  z-index: 70 !important;
  top: 0 !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
}

.pb-site-banner {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  flex-shrink: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #2f0742 0%, #240430 100%);
  box-shadow: 0 1px 0 rgba(222, 169, 10, 0.12);
  animation: pb-banner-in 0.3s ease;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.pb-site-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(222, 169, 10, 0.08) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.pb-site-banner-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: 40px;
  max-width: 1280px;
  margin: 0 auto;
  padding:
    clamp(8px, 2.5vw, 10px)
    clamp(40px, 12vw, 48px)
    clamp(8px, 2.5vw, 10px)
    clamp(10px, 3vw, 14px);
}

.pb-site-banner .notification_icon {
  flex-shrink: 0;
  width: clamp(34px, 9vw, 38px);
  height: clamp(34px, 9vw, 38px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 clamp(10px, 3vw, 14px) 0 0;
  background: linear-gradient(160deg, #8a12b5 0%, #5c0778 100%);
  color: #ffb700;
  box-shadow:
    0 0 0 1px rgba(255, 183, 0, 0.35),
    0 2px 10px rgba(0, 0, 0, 0.28);
}

.pb-site-banner .notification_icon svg {
  display: block;
  width: clamp(17px, 4.8vw, 20px);
  height: clamp(17px, 4.8vw, 20px);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.pb-site-banner-text {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px clamp(6px, 2vw, 8px);
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font:
    500 clamp(0.72rem, 3.1vw, 0.8125rem) / 1.4 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #f3edf6;
  text-align: center;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.pb-site-banner-message {
  flex: 1 1 auto;
  min-width: 0;
}

.pb-site-banner-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  margin: 0;
  padding: clamp(3px, 1vw, 4px) clamp(8px, 2.5vw, 10px);
  border-radius: 999px;
  background: rgba(222, 169, 10, 0.14);
  border: 1px solid rgba(222, 169, 10, 0.3);
  color: #f0d78a;
  font-weight: 600;
  font-size: clamp(0.68rem, 2.8vw, 0.75rem);
  line-height: 1.25;
  text-decoration: none;
  white-space: normal;
  text-align: center;
}

.pb-site-banner-link:hover {
  background: rgba(222, 169, 10, 0.24);
}

.pb-site-banner-link svg {
  flex-shrink: 0;
  width: clamp(10px, 3vw, 12px);
  height: clamp(10px, 3vw, 12px);
}

.pb-site-banner-close {
  position: absolute;
  right: max(8px, env(safe-area-inset-right, 0px));
  top: 50%;
  transform: translateY(-50%);
  width: clamp(28px, 8vw, 32px);
  height: clamp(28px, 8vw, 32px);
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8b4cf;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pb-site-banner-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 640px) {
  .pb-site-banner {
    z-index: 55;
  }

  .pb-site-banner-inner {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    min-height: 36px;
    padding:
      clamp(6px, 2vw, 8px)
      clamp(36px, 10vw, 40px)
      clamp(6px, 2vw, 8px)
      clamp(8px, 2.5vw, 10px);
  }

  .pb-site-banner .notification_icon {
    width: clamp(28px, 7.5vw, 32px);
    height: clamp(28px, 7.5vw, 32px);
    margin: 2px clamp(8px, 2.5vw, 10px) 0 0;
  }

  .pb-site-banner .notification_icon svg {
    width: clamp(14px, 4vw, 16px);
    height: clamp(14px, 4vw, 16px);
  }

  .pb-site-banner-text {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    text-align: left;
    font-size: clamp(0.7rem, 2.9vw, 0.78rem);
    line-height: 1.35;
  }

  .pb-site-banner-message {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pb-site-banner-link {
    width: auto;
    max-width: 100%;
    justify-content: flex-start;
    font-size: clamp(0.66rem, 2.6vw, 0.72rem);
    padding: 3px 8px;
  }

  .pb-site-banner-close {
    width: 28px;
    height: 28px;
    right: max(6px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 360px) {
  .pb-site-banner-inner {
    padding-left: 8px;
    padding-right: 34px;
  }

  .pb-site-banner-message {
    -webkit-line-clamp: 3;
  }
}

@keyframes pb-banner-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
