:root {
  --demo-banner-height: 66px;
}

.satori-demo-banner {
  position: sticky;
  top: 0;
  z-index: 1000;

  width: 100%;
  min-height: var(--demo-banner-height);

  border-bottom: 1px solid #cfdced;

  background: #f5f9ff;
  color: #10243e;

  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

.satori-demo-banner__inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 66px;

  margin: 0 auto;
  padding: 10px 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.satori-demo-banner__intro {
  min-width: 260px;

  display: flex;
  align-items: center;
  gap: 11px;

  font-size: 12px;
  line-height: 1.3;
}

.satori-demo-banner__intro strong {
  display: block;

  color: #10243e;

  font-size: 12px;
  font-weight: 750;
}

.satori-demo-banner__intro span:not(.satori-demo-banner__badge) {
  display: block;
  margin-top: 2px;

  color: #6c7d91;
  font-size: 11px;
}

.satori-demo-banner__badge {
  flex: 0 0 auto;

  padding: 5px 8px;

  border-radius: 4px;

  background: #dceaff;
  color: #1769e0;

  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.satori-demo-banner__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.satori-demo-banner__actions-label {
  margin-right: 2px;

  color: #8290a3;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.satori-demo-banner__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 36px;
  padding: 0 11px;

  border: 1px solid #d5dfeb;
  border-radius: 7px;

  background: #ffffff;
  color: #314b68;

  box-shadow: 0 1px 2px rgba(16, 36, 62, 0.03);

  font-size: 11px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;

  white-space: nowrap;

  transition:
    border-color 120ms ease,
    background 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.satori-demo-banner__action svg {
  width: 15px;
  height: 15px;

  fill: none;
  stroke: #1769e0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.satori-demo-banner__action:hover {
  transform: translateY(-1px);

  border-color: #aac6ea;

  background: #f8fbff;
  color: #163f71;

  box-shadow: 0 4px 10px rgba(26, 80, 145, 0.08);
}

.satori-demo-banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 38px;
  margin-left: 5px;
  padding: 0 15px;

  border: 1px solid #1769e0;
  border-radius: 7px;

  background: #1769e0;
  color: #ffffff;

  box-shadow: 0 3px 9px rgba(23, 105, 224, 0.18);

  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;

  white-space: nowrap;

  transition:
    background 120ms ease,
    box-shadow 120ms ease,
    transform 120ms ease;
}

.satori-demo-banner__cta:hover {
  transform: translateY(-1px);

  background: #105ac5;

  box-shadow: 0 5px 13px rgba(23, 105, 224, 0.25);
}

/* Mobile version hidden by default */

.satori-demo-banner__mobile {
  display: none;
}


/* =========================================================
   Mobile demo banner
   ========================================================= */

@media (max-width: 700px) {

  .satori-demo-banner__inner {
    width: 100%;
    min-height: 0;

    padding: 12px 14px;

    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }


  /* Intro */

  .satori-demo-banner__intro {
    min-width: 0;
    width: 100%;

    align-items: flex-start;
    gap: 9px;
  }

  .satori-demo-banner__intro strong {
    font-size: 12px;
  }

  .satori-demo-banner__intro span:not(
    .satori-demo-banner__badge
  ) {
    display: none;
  }


  /* Hide desktop controls */

  .satori-demo-banner__actions {
    display: none;
  }


  /* Show mobile controls */

  .satori-demo-banner__mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: start;
  }


  /* Configure dropdown */

  .satori-demo-banner__mobile-controls {
    position: relative;
    min-width: 0;
  }

  .satori-demo-banner__mobile-controls summary {
    min-height: 40px;
    padding: 0 12px;

    display: flex;
    align-items: center;
    gap: 7px;

    border: 1px solid #ccd9e8;
    border-radius: 7px;

    background: #ffffff;
    color: #294765;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;

    list-style: none;
  }

  .satori-demo-banner__mobile-controls summary::-webkit-details-marker {
    display: none;
  }

  .satori-demo-banner__mobile-controls summary::after {
    content: "⌄";

    margin-left: auto;

    color: #72859a;
    font-size: 14px;
  }

  .satori-demo-banner__mobile-controls[open] summary::after {
    content: "⌃";
  }


  /* Expanded configuration choices */

  .satori-demo-banner__mobile-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    width: min(340px, calc(100vw - 28px));

    padding: 5px;

    border: 1px solid #d5dfeb;
    border-radius: 9px;

    background: #ffffff;

    box-shadow:
      0 12px 30px rgba(16, 36, 62, 0.15);

    z-index: 200;
  }

  .satori-demo-banner__mobile-menu a {
    width: 100%;
    padding: 10px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    border-radius: 6px;

    color: #314b68;
    text-decoration: none;
  }

  .satori-demo-banner__mobile-menu a:hover {
    background: #f3f7fc;
  }

  .satori-demo-banner__mobile-menu a > span {
    width: 22px;

    flex: 0 0 22px;

    color: #1769e0;

    font-size: 16px;
    text-align: center;
  }

  .satori-demo-banner__mobile-menu strong {
    display: block;

    color: #10243e;

    font-size: 12px;
    font-weight: 700;
  }

  .satori-demo-banner__mobile-menu small {
    display: block;
    margin-top: 2px;

    color: #73859a;

    font-size: 10px;
    line-height: 1.35;
  }


  /* Primary CTA */

  .satori-demo-banner__mobile-cta {
    min-height: 40px;
    padding: 0 13px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 7px;

    background: #1769e0;
    color: #ffffff;

    font-size: 11px;
    font-weight: 750;
    text-decoration: none;

    white-space: nowrap;
  }

}