/* Beam profile viz + embed chrome (product pages also use these via botb.css duplicates or this file) */
:root {
  --botb-accent: #fbed21;
  --botb-line: rgba(255, 255, 255, 0.1);
  --botb-radius: 2px;
  --botb-muted: #a3a3a3;
}

.botb-beam-viz {
  position: relative;
  width: 100%;
  max-width: 28rem;
  height: min(550px, 70vw);
  min-height: 320px;
  background: #020202;
  overflow: hidden;
  border: 1px solid var(--botb-line);
  border-radius: var(--botb-radius);
  user-select: none;
  touch-action: none;
}
.botb-beam-viz-hit {
  position: absolute;
  inset: 0;
  z-index: 20;
  cursor: crosshair;
}
.botb-beam-viz-haze {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.botb-beam-viz-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: radial-gradient(#222 1px, transparent 1px);
  background-size: 15px 15px;
}
.botb-beam-viz svg {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  height: 100%;
}
.botb-beam-viz-reach {
  position: absolute;
  top: 1rem;
  right: 1rem;
  text-align: right;
  z-index: 15;
  pointer-events: none;
}
.botb-beam-viz-reach-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--botb-accent);
  font-weight: 700;
  opacity: 0.7;
}
.botb-beam-viz-reach-value {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}
.botb-beam-viz-reach-unit {
  font-size: 0.7rem;
  font-weight: 400;
  margin-left: 0.15rem;
  color: #64748b;
  font-style: italic;
}
.botb-beam-viz-optics {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 15;
  pointer-events: none;
  opacity: 0.65;
}
.botb-beam-viz-optics-label {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
}
.botb-beam-viz-optics-value {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", "Segoe UI Mono", monospace;
  font-size: 0.625rem;
  color: #cbd5e1;
}
.botb-beam-estimated-inline {
  color: var(--botb-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.6rem;
}

/* —— Embed widget chrome —— */
/* height:100% so the viz flexes inside the host iframe instead of
   growing from the SVG aspect ratio and forcing a scrollbar. */
html.botb-embed-html,
body.botb-embed {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: "Manrope", "Segoe UI", sans-serif;
}
body.botb-embed {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.botb-embed-wrap {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.5rem 0;
  box-sizing: border-box;
}
.botb-embed-wrap .botb-beam-viz {
  max-width: none;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
}
.botb-embed-title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e5e5;
}
.botb-embed-estimated {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--botb-accent);
}
.botb-embed-credit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.4rem;
  padding: 0.45rem 0.35rem 0.55rem;
  border-top: 1px solid var(--botb-line);
  font-size: 0.7rem;
}
.botb-embed-credit a {
  color: var(--botb-accent);
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.botb-embed-credit a:hover {
  text-decoration: underline;
}
.botb-embed-credit img {
  display: block;
  width: 22px;
  height: 22px;
}
.botb-embed-credit-note {
  color: var(--botb-muted);
  font-size: 0.65rem;
}
.botb-embed-error {
  padding: 1.25rem;
  color: var(--botb-muted);
  font-size: 0.9rem;
}
