.test-mode-banner {
  position: relative;
  z-index: 9998;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(251, 191, 36, .48);
  background: linear-gradient(90deg, #3d2707, #53340a 50%, #3d2707);
  color: #fff7d6;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .24);
}

.test-mode-banner__badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border: 1px solid rgba(253, 230, 138, .58);
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  color: #fde68a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.test-mode-banner__text {
  max-width: 980px;
}

.test-mode-banner strong {
  color: #fff;
}

.test-mode-banner a {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.test-mode-banner a:hover,
.test-mode-banner a:focus-visible {
  color: #fde68a;
}

@media (max-width: 640px) {
  .test-mode-banner {
    display: block;
    padding-top: 10px;
    padding-bottom: 11px;
    font-size: 12.5px;
    text-align: left;
  }

  .test-mode-banner__badge {
    display: inline-block;
    margin: 0 0 6px;
  }
}
