:root {
  --cg-demo-accent: #3b82f6;
  --cg-demo-bg: #0f172a;
  --cg-demo-text: #ffffff;
  --cg-demo-muted: #94a3b8;
  --cg-demo-border: rgba(255, 255, 255, .10);
  --cg-demo-height: 64px;
}

body.cg-demo-style-bar-active {
  padding-bottom: var(--cg-demo-height) !important;
}

body.cg-demo-style-bar-active .cg-bottom-cta {
  bottom: var(--cg-demo-height) !important;
}

#cg-demo-style-bar,
#cg-demo-style-bar * {
  box-sizing: border-box;
}

#cg-demo-style-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 2147483000;
  height: var(--cg-demo-height);
  color: var(--cg-demo-text);
  background: rgba(15, 23, 42, .97);
  border-top: 1px solid var(--cg-demo-border);
  box-shadow: 0 -14px 42px rgba(2, 6, 23, .30);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.2;
}

#cg-demo-style-bar button,
#cg-demo-style-bar select,
#cg-demo-style-bar a {
  font: inherit;
}

.cg-demo-style-bar__inner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cg-demo-style-bar__brand {
  flex: 0 0 auto;
  min-width: 136px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.cg-demo-style-bar__brand-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: var(--cg-demo-accent);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(59, 130, 246, .30);
}

.cg-demo-style-bar__brand-copy {
  display: grid;
  gap: 2px;
}

.cg-demo-style-bar__brand-copy strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.cg-demo-style-bar__brand-copy small {
  color: var(--cg-demo-muted);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.cg-demo-style-bar__styles {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.cg-demo-style-bar__styles::-webkit-scrollbar {
  display: none;
}

.cg-demo-style-bar__style {
  min-height: 34px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #cbd5e1;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, border-color .16s ease, transform .16s ease;
}

.cg-demo-style-bar__style:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, .07);
}

.cg-demo-style-bar__style:focus-visible,
.cg-demo-style-bar__mobile-select:focus-visible,
.cg-demo-style-bar__buy:focus-visible {
  outline: 2px solid var(--cg-demo-accent);
  outline-offset: 2px;
}

.cg-demo-style-bar__style.is-active {
  color: #ffffff;
  background: var(--cg-demo-accent);
  border-color: rgba(255, 255, 255, .14);
  box-shadow: 0 7px 18px rgba(59, 130, 246, .24);
}

.cg-demo-style-bar__style:active {
  transform: translateY(1px);
}

.cg-demo-style-bar__buy {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  color: #ffffff !important;
  background: var(--cg-demo-accent);
  box-shadow: 0 9px 24px rgba(59, 130, 246, .28);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.cg-demo-style-bar__buy:hover {
  color: #ffffff !important;
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(59, 130, 246, .36);
}

.cg-demo-style-bar__buy:active {
  transform: translateY(0);
}

.cg-demo-style-bar__mobile-select-wrap {
  display: none;
}

@media (max-width: 900px) {
  :root {
    --cg-demo-height: 62px;
  }

  .cg-demo-style-bar__inner {
    gap: 9px;
    padding-inline: 10px;
  }

  .cg-demo-style-bar__brand {
    min-width: 0;
  }

  .cg-demo-style-bar__brand-copy small {
    display: none;
  }

  .cg-demo-style-bar__styles {
    display: none;
  }

  .cg-demo-style-bar__mobile-select-wrap {
    min-width: 0;
    flex: 1 1 auto;
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
  }

  .cg-demo-style-bar__mobile-select {
    width: 100%;
    height: 38px;
    appearance: none;
    -webkit-appearance: none;
    padding: 0 34px 0 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    color: #ffffff;
    background: rgba(255, 255, 255, .07);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .cg-demo-style-bar__mobile-select option {
    color: #ffffff;
    background: #0f172a;
  }

  .cg-demo-style-bar__mobile-select-wrap > svg {
    position: absolute;
    right: 11px;
    color: #94a3b8;
    pointer-events: none;
  }
}

@media (max-width: 560px) {
  :root {
    --cg-demo-height: 60px;
  }

  .cg-demo-style-bar__brand-icon {
    width: 36px;
    height: 36px;
  }

  .cg-demo-style-bar__brand-copy {
    display: none;
  }

  .cg-demo-style-bar__buy {
    width: 42px;
    min-width: 42px;
    padding: 0;
  }

  .cg-demo-style-bar__buy span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  #cg-demo-style-bar *,
  #cg-demo-style-bar *::before,
  #cg-demo-style-bar *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
