/* Floating inline Format / Insert / Comment bar (Wiley-style) */

.inline-rte-bar {
  position: fixed;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #c5d0d8;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 12px;
}

.inline-rte-bar.hidden {
  display: none;
}

.inline-rte-group {
  position: relative;
}

.inline-rte-trigger,
.inline-rte-btn {
  border: none;
  background: transparent;
  color: #005274;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.inline-rte-trigger:hover,
.inline-rte-btn:hover {
  background: #e8f0f5;
}

.inline-rte-btn--comment {
  border-left: 1px solid #dde4ea;
  margin-left: 2px;
  padding-left: 12px;
}

.inline-rte-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 120px;
  background: #fff;
  border: 1px solid #c5d0d8;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  padding: 4px 0;
  z-index: 1;
}

.inline-rte-menu.open {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 6px;
  max-width: 220px;
}

.inline-rte-menu-item {
  border: 1px solid #dde4ea;
  background: #f5f8fa;
  color: #005274;
  font-size: 12px;
  font-weight: 700;
  min-width: 32px;
  height: 28px;
  padding: 0 8px;
  border-radius: 3px;
  cursor: pointer;
}

.inline-rte-menu-item--text {
  font-weight: 600;
  font-size: 11px;
}

.inline-rte-menu-item:hover {
  background: #005274;
  color: #fff;
  border-color: #005274;
}
