/* NewsBites brand overlay. Shared layout and component styles stay in app.css. */
.product-newsbites {
  --vibrant-orange: #38BDF8;
  --warm-amber: #67E8F9;
}

.product-newsbites #app {
  display: flex;
  flex-direction: column;
}

.product-newsbites .topbar {
  position: relative;
  flex-shrink: 0;
  pointer-events: auto;
  background: var(--near-black);
}

.product-newsbites .news-controls {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 12;
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 16px 12px;
  background: var(--near-black);
}

.product-newsbites .feed {
  flex: 1;
  min-height: 0;
}

.product-newsbites .card {
  height: 100%;
}

.product-newsbites .feed-modes {
  display: flex;
  background: rgba(10, 10, 11, 0.7);
  border: 1px solid var(--surface-stroke);
  border-radius: 999px;
  padding: 2px;
}

.product-newsbites .feed-mode {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.product-newsbites .feed-mode.active {
  background: var(--vibrant-orange);
  color: #0A0A0B;
}

.product-newsbites .location-picker {
  display: flex;
  flex: 1 1 220px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.product-newsbites .location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.product-newsbites .location-chip,
.product-newsbites .location-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--surface-stroke);
  background: rgba(10, 10, 11, 0.7);
  color: var(--text-primary);
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  cursor: pointer;
}

.product-newsbites .location-chip-btn.active {
  background: var(--vibrant-orange);
  color: #0A0A0B;
  border-color: transparent;
}

.product-newsbites .location-chip-remove {
  font-size: 14px;
  line-height: 1;
  opacity: 0.75;
}

.product-newsbites .city-combobox {
  position: relative;
  flex: 1 1 160px;
  min-width: 0;
}

.product-newsbites .city-combobox input,
.product-newsbites .location-switch select,
.product-newsbites .onboarding-panel input,
.product-newsbites .onboarding-panel select {
  width: 100%;
  font: inherit;
  color: var(--text-primary);
  background: rgba(10, 10, 11, 0.7);
  border: 1px solid var(--surface-stroke);
  border-radius: 12px;
  padding: 6px 10px;
}

.product-newsbites .city-suggestions {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: #0A0A0B;
  border: 1px solid var(--surface-stroke);
  border-radius: 12px;
}

.product-newsbites .city-suggestions button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  font: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.product-newsbites .city-suggestions button:hover,
.product-newsbites .city-suggestions button[aria-selected="true"] {
  background: rgba(56, 189, 248, 0.18);
}

.product-newsbites .city-kind {
  color: var(--text-secondary);
  font-size: 11px;
  margin-left: 6px;
}

.product-newsbites .new-stories {
  margin-left: auto;
  border: 0;
  border-radius: 999px;
  background: var(--warm-amber);
  color: #0A0A0B;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  cursor: pointer;
}

.product-newsbites .priority-lane {
  padding: 16px 16px 0;
}

.product-newsbites .priority-lane h2 {
  margin: 0 0 8px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-amber);
}

.product-newsbites .original-toggle {
  margin-top: 8px;
  border: 0;
  background: none;
  color: var(--vibrant-orange);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.product-newsbites .onboarding-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.product-newsbites .onboarding-modal[hidden] {
  display: none;
}

.product-newsbites .onboarding-panel {
  width: min(420px, 100%);
  background: #0A0A0B;
  border: 1px solid var(--surface-stroke);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-newsbites .onboarding-panel h2 {
  margin: 0;
}

.product-newsbites .check-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.product-newsbites #onboarding-finish {
  border: 0;
  border-radius: 14px;
  background: var(--vibrant-orange);
  color: #0A0A0B;
  font: inherit;
  font-weight: 700;
  padding: 12px;
  cursor: pointer;
}
