/* Shared rich-text editor chrome (loaded on storefront + admin). Scoped under .rte-*. */
.rte-wrap {
  border: 1.5px solid #222;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.rte-wrap:focus-within {
  border-color: #ff1385;
  box-shadow: 0 0 0 3px rgba(255, 19, 133, .22);
}
.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  background: #faf7f4;
  border-bottom: 1.5px solid #eee4dc;
}
.rte-btn {
  min-width: 36px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid #d8d3ce;
  border-radius: 8px;
  background: #fff;
  color: #191919;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.rte-btn:hover { border-color: #ff1385; color: #ff1385; }
.rte-btn.rte-active { background: #ff1385; border-color: #ff1385; color: #fff; }
.rte-btn.rte-b { font-weight: 900; }
.rte-btn.rte-i { font-style: italic; font-family: Georgia, serif; }
.rte-btn.rte-u { text-decoration: underline; }
.rte-btn.rte-clear { color: #6d6d70; font-weight: 600; }
.rte-area {
  min-height: 120px;
  max-height: 340px;
  overflow-y: auto;
  padding: 12px 14px;
  outline: none;
  font-size: .95rem;
  line-height: 1.55;
  color: #191919;
  word-break: break-word;
}
.rte-area.rte-empty::before {
  content: attr(data-placeholder);
  color: #9a938d;
  pointer-events: none;
  display: block;
}
.rte-area p { margin: 0 0 .6em; }
.rte-area ul { list-style: disc; padding-left: 1.5em; margin: .4em 0; }
.rte-area ol { list-style: decimal; padding-left: 1.5em; margin: .4em 0; }
.rte-area li { margin: .15em 0; }
.rte-area a { color: #ff1385; }
.rte-area blockquote {
  margin: .5em 0;
  padding: .3em .9em;
  border-left: 3px solid #ff1385;
  color: #6d6d70;
}
textarea.rte-source { display: none; }
@media (max-width: 480px) {
  .rte-btn { flex: 0 0 auto; padding: 6px 9px; }
  .rte-area { min-height: 140px; }
}