.sglm-rate-widget{
  --sglm-accent:#F79433;
  --sglm-card-bg: rgba(255,255,255,0.75);
  --sglm-border: rgba(0,0,0,0.06);
  --sglm-text:#1F1F1F;
  --sglm-muted:#6b6b6b;
  --sglm-muted2:#5a5a5a;
  font-family: inherit;
}

/* Top card */
.sglm-rate-card{
  border:1px solid var(--sglm-border);
  background: var(--sglm-card-bg);
  border-radius:18px;
  padding:18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.sglm-rate-left{min-width:220px}
.sglm-rate-kicker{font-size:13px;color:var(--sglm-muted);margin-bottom:6px}
.sglm-rate-big{display:flex;align-items:baseline;gap:10px;line-height:1;margin-bottom:8px}
.sglm-rate-val{font-size:44px;font-weight:800;color:var(--sglm-text);letter-spacing:-0.02em}
.sglm-rate-pa{font-size:13px;color:var(--sglm-muted);font-weight:600}
.sglm-rate-note{font-size:13px;color:var(--sglm-muted2);line-height:1.5;max-width:640px}

.sglm-rate-meta{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
  font-size:13px;
  color:var(--sglm-muted);
  white-space:nowrap;
}
.sglm-dot{
  width:8px;height:8px;border-radius:999px;background:var(--sglm-accent);
  display:inline-block;margin-right:8px;transform:translateY(1px)
}

/* SORA line */
.sglm-sora{
  margin-top:10px;
  font-size:13px;
  color:var(--sglm-muted2);
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.sglm-sora strong{color:var(--sglm-text)}
.sglm-sora-pill{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border:1px solid var(--sglm-border);border-radius:999px;
  background: rgba(255,255,255,0.65);
}

/* Tabs wrap */
.sglm-tabs-wrap{margin-top:14px}

/* Desktop tabs (orange theme + pill radius) */
.sglm-tabs{
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  gap: 10px;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.sglm-rate-widget .sglm-tab{
  flex: 1;
  border: 1px solid var(--sglm-accent);
  background: rgba(255, 255, 255, 0.9);
  color: var(--sglm-accent);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  opacity: 1;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}

.sglm-rate-widget .sglm-tab:hover{ transform: translateY(-1px); }

.sglm-rate-widget .sglm-tab.is-active{
  background: var(--sglm-accent);
  color: #fff;
  border-color: var(--sglm-accent);
}

/* Blurb */
.sglm-blurb{margin-top:10px;font-size:14px;line-height:1.7;color:var(--sglm-muted2)}

/* Mobile dropdown */
.sglm-intent-select-wrap{
  display:none;
  position: relative;
  margin-top: 12px;
}

.sglm-intent-select{
  width: 100%;
  border: 1px solid var(--sglm-accent);
  border-radius: 999px;
  padding: 12px 44px 12px 14px;
  background: rgba(255,255,255,0.92);
  font-weight: 800;
  color: var(--sglm-text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.sglm-intent-select-wrap:after{
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--sglm-accent);
  border-bottom: 2px solid var(--sglm-accent);
  transform: translateY(-60%) rotate(45deg);
  pointer-events: none;
}

/* Responsive */
@media (max-width: 600px){
  .sglm-rate-card{flex-direction:column;align-items:flex-start}
  .sglm-rate-meta{justify-content:flex-start;white-space:normal}
  .sglm-rate-val{font-size:40px}

  .sglm-tabs{display:none;}
  .sglm-intent-select-wrap{display:block;}
}

/* === Segmented tabs (like React segmented control) === */
.sglm-tabs-wrap { margin-top: 14px; }

.sglm-tabs{
  display: flex;
  width: 100%;
  padding: 6px;                 /* space around inner segments */
  gap: 6px;                     /* small separation inside the track */
  border-radius: 999px;         /* pill track */
  background: rgba(255,255,255,0.70);
  border: 1px solid var(--sglm-border);
  position: relative;
  z-index: 5;
}

.sglm-rate-widget .sglm-tab{
  flex: 1;
  border: 0;
  background: transparent;      /* inactive sits on the track */
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: #3b3b3b;
  opacity: 0.75;
  transition: opacity .15s ease, transform .12s ease, background .12s ease, box-shadow .12s ease;
}

.sglm-rate-widget .sglm-tab:hover{
  opacity: 1;
  transform: translateY(-1px);
}

.sglm-rate-widget .sglm-tab.is-active{
  opacity: 1;
  background: #ffffff;          /* active segment */
  color: var(--sglm-text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  outline: 1px solid var(--sglm-border);
}

/* Optional: make active segment slightly "accent" */
.sglm-rate-widget .sglm-tab.is-active{
  /* Uncomment if you want a subtle orange hint */
  /* outline-color: rgba(247,148,51,0.35); */
}
@media (max-width: 600px){
  .sglm-tabs{display:none;}
  .sglm-intent-select-wrap{display:block;}
}

