/* Cheaply rich-text editor - brand monochrome (black/white/greys only). */
.rt-wrap {
  border: 1.5px solid var(--gray-300, #d0d0d0);
  background: #fff;
}
.rt-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px;
  border-bottom: 1px solid var(--gray-200, #eaeaea);
  background: var(--gray-50, #fafafa);
  flex-wrap: wrap;
}
.rt-btn {
  min-width: 32px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #111;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.rt-btn:hover { background: #111; color: #fff; }
.rt-btn:active { background: #000; color: #fff; }
.rt-btn.rt-on { background: #111; color: #fff; }
.rt-sep {
  width: 1px;
  height: 20px;
  background: var(--gray-200, #e2e2e2);
  margin: 0 4px;
  flex-shrink: 0;
}
/* Custom monochrome text-style dropdown (native <select> panels are OS-styled). */
.rt-style { position: relative; }
.rt-style-btn {
  height: 30px;
  min-width: 118px;
  padding: 0 8px;
  border: 1px solid var(--gray-300, #d0d0d0);
  background: #fff;
  color: #111;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.rt-style-btn:hover, .rt-style-btn:focus { border-color: #111; }
.rt-style-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 60;
  min-width: 150px;
  background: #fff;
  border: 1.5px solid #111;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 4px;
}
.rt-style-menu.rt-open { display: block; }
.rt-style-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: none;
  background: #fff;
  color: #111;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.rt-style-item:hover, .rt-style-item.rt-on { background: #111; color: #fff; }
.rt-editor {
  min-height: 160px;
  max-height: 520px;
  overflow-y: auto;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #111;
  outline: none;
}
.rt-editor:empty::before {
  content: attr(data-placeholder);
  color: var(--gray-400, #999);
}
.rt-editor:focus { outline: none; }

/* Shared typographic rules for the editor surface AND the rendered deal page. */
.rt-editor p, .deal-rich-desc p { margin: 0 0 10px; }
.rt-editor h2, .deal-rich-desc h2 { font-size: 22px; font-weight: 800; margin: 16px 0 8px; color: #111; }
.rt-editor h3, .deal-rich-desc h3 { font-size: 19px; font-weight: 800; margin: 14px 0 8px; color: #111; }
.rt-editor h4, .deal-rich-desc h4 { font-size: 16px; font-weight: 700; margin: 12px 0 6px; color: #111; }
.rt-editor blockquote, .deal-rich-desc blockquote {
  margin: 10px 0;
  padding: 4px 0 4px 14px;
  border-left: 3px solid #111;
  color: #444;
}
.rt-editor ul, .deal-rich-desc ul { margin: 8px 0 12px; padding-left: 22px; list-style: disc outside; }
.rt-editor ol, .deal-rich-desc ol { margin: 8px 0 12px; padding-left: 22px; list-style: decimal outside; }
.rt-editor li, .deal-rich-desc li { margin-bottom: 4px; display: list-item; }
.rt-editor a, .deal-rich-desc a { color: #111; text-decoration: underline; }
.rt-editor u, .deal-rich-desc u { text-decoration: underline; }
.rt-editor s, .deal-rich-desc s { text-decoration: line-through; }

/* Class-based sizes + alignment (the only styling the sanitizer allows). */
.rt-editor .rt-size-sm, .deal-rich-desc .rt-size-sm { font-size: 12px; }
.rt-editor .rt-size-lg, .deal-rich-desc .rt-size-lg { font-size: 18px; }
.rt-editor .rt-size-xl, .deal-rich-desc .rt-size-xl { font-size: 22px; font-weight: 600; }
.rt-editor .rt-align-center, .deal-rich-desc .rt-align-center { text-align: center; }
.rt-editor .rt-align-right, .deal-rich-desc .rt-align-right { text-align: right; }
