
/* THIS STYLES THE MAIN READER WRAPPER. */
.sar-reader {
  display: inline-flex;
  align-items: center;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 9999;
}

/* THIS MAKES THE BUTTON FLOAT ON SCREEN. */
.sar-reader--floating {
  position: fixed;
}

/* THIS POSITIONS FLOATING BUTTON AT TOP RIGHT. */
.sar-reader--top_right {
  top: 20px;
  right: 20px;
}

/* THIS POSITIONS FLOATING BUTTON AT TOP LEFT. */
.sar-reader--top_left {
  top: 20px;
  left: 20px;
}

/* THIS POSITIONS FLOATING BUTTON AT BOTTOM RIGHT. */
.sar-reader--bottom_right {
  bottom: 20px;
  right: 20px;
}

/* THIS POSITIONS FLOATING BUTTON AT BOTTOM LEFT. */
.sar-reader--bottom_left {
  bottom: 20px;
  left: 20px;
}

/* THIS STYLES THE PLAY BUTTON LOOK. */
.sar-reader__button {
  border: 1px solid #1f2937;
  background: #111827;
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  outline: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sar-reader__button:hover,
.sar-reader__button:focus {
  background: #1f2937;
}

/* THIS STYLES THE ICON HOLDER INSIDE THE BUTTON. */
.sar-reader__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}

/* THIS NORMALIZES SVG OR IMAGE ICON SIZE. */
.sar-reader__icon svg,
.sar-reader__icon img {
  width: 21px;
  height: 21px;
  display: block;
  object-fit: contain;
}

/* THIS KEEPS LABEL TEXT IN ONE LINE. */
.sar-reader__text {
  white-space: nowrap;
}

/* THIS HIDES LABEL WHEN USER ENABLES HIDE NAME OPTION. */
.sar-reader__text--hidden {
  display: none;
}

/* THIS HIGHLIGHTS THE PARAGRAPH THAT IS BEING READ. */
.sar-active-paragraph {
  background: var(--sar-highlight-bg, #c7d2fe) !important;
  outline: 2px solid var(--sar-highlight-border, #4f46e5);
  border-radius: 4px;
  transition: background 0.2s ease, outline-color 0.2s ease;
}
