/*
 * Rakuten R-Messe channel theme.
 * Official Rakuten Crimson: #BF0000. All rules stay under #rmesseView so
 * Yahoo and the shared workbench retain their existing visual language.
 */
#rmesseView {
  --rmesse-crimson: #bf0000;
  --rmesse-crimson-hover: #a00000;
  --rmesse-crimson-pressed: #8a0000;
  --rmesse-crimson-soft: #fff1f1;
  --rmesse-crimson-tint: #f8d6d6;
  --rmesse-ink: #111827;
  --rmesse-muted: #667085;
  --rmesse-border: #e1e5ea;
  --rmesse-surface: #fff;
  --rmesse-canvas: #f7f8fa;
  --rmesse-danger: #b42318;
  --rmesse-warning: #b54708;
  --rmesse-success: #18794e;
}

#rmesseView .yahoo-workbench {
  color: var(--rmesse-ink);
  background: var(--rmesse-canvas);
  border-color: var(--rmesse-border);
}

#rmesseView .yahoo-sidebar .eyebrow {
  color: var(--rmesse-crimson);
  font-weight: 700;
  letter-spacing: 0.04em;
}

#rmesseView .yahoo-sidebar h2,
#rmesseView .yahoo-chat-user-name,
#rmesseView .yahoo-info-panel-title {
  color: var(--rmesse-ink);
}

#rmesseView .yahoo-status-tabs button.active {
  color: #fff;
  background: var(--rmesse-crimson);
  border-color: var(--rmesse-crimson);
}

#rmesseView .yahoo-status-tabs button.active:hover {
  background: var(--rmesse-crimson-hover);
  border-color: var(--rmesse-crimson-hover);
}

#rmesseView .yahoo-status-tabs button:focus-visible,
#rmesseView .rmesse-send-btn:focus-visible,
#rmesseView .yahoo-suggestion-tab:focus-visible {
  outline: 3px solid rgba(191, 0, 0, 0.24);
  outline-offset: 2px;
}

#rmesseView .yahoo-conversation-category {
  color: var(--rmesse-crimson);
}

#rmesseView .yahoo-conversation.is-selected,
#rmesseView .yahoo-conversation.is-selected:hover {
  border-color: var(--rmesse-crimson-tint);
  background: var(--rmesse-crimson-soft);
  box-shadow: inset 4px 0 0 var(--rmesse-crimson);
}

#rmesseView .yahoo-conversation.is-selected .yahoo-conversation-official-head,
#rmesseView .yahoo-conversation.is-selected:hover .yahoo-conversation-official-head {
  background: #fde4e4;
}

#rmesseView .yahoo-conversation.is-selected .yahoo-conversation-official-body,
#rmesseView .yahoo-conversation.is-selected:hover .yahoo-conversation-official-body {
  background: var(--rmesse-crimson-soft);
  border-top-color: var(--rmesse-crimson-tint);
}

#rmesseView .yahoo-conversation.is-selected .yahoo-conversation-name {
  color: #590000;
}

#rmesseView .yahoo-unanswered {
  background: var(--rmesse-crimson);
}

#rmesseView .yahoo-message.is-seller {
  background: var(--rmesse-crimson-soft);
  border-color: var(--rmesse-crimson-tint);
}

#rmesseView .yahoo-message.is-seller .yahoo-message-head {
  color: #7a1f1f;
}

#rmesseView .yahoo-suggestion-tab.active,
#rmesseView .yahoo-suggestion-actions > button.active {
  color: #fff;
  background: var(--rmesse-crimson);
  border-color: var(--rmesse-crimson);
}

#rmesseView .yahoo-inline-spinner,
#rmesseView .yahoo-loading-spinner {
  border-color: rgba(191, 0, 0, 0.18);
  border-top-color: var(--rmesse-crimson);
}

#rmesseView .rmesse-send-btn {
  min-width: 96px;
  color: #fff;
  background: var(--rmesse-crimson);
  border: 1px solid var(--rmesse-crimson);
  font-size: 13px;
  font-weight: 600;
}

#rmesseView .rmesse-send-btn:hover {
  color: #fff;
  background: var(--rmesse-crimson-hover);
  border-color: var(--rmesse-crimson-hover);
}

#rmesseView .rmesse-send-btn:active {
  color: #fff;
  background: var(--rmesse-crimson-pressed);
  border-color: var(--rmesse-crimson-pressed);
}

#rmesseView .rmesse-send-btn:disabled {
  color: #fff;
  background: #c98a8a;
  border-color: #c98a8a;
  opacity: 1;
}

#rmesseView .yahoo-chip.is-complete {
  color: var(--rmesse-success);
}

#rmesseView .yahoo-info-warning,
#rmesseView .yahoo-poll-hint,
#rmesseView .yahoo-info-missing {
  color: var(--rmesse-warning);
}
