/* Collection templates also appear outside the cabinet. */
.remodal--favorites {
  --blue: #0878e5; --blue-dark: #0565c4; --ink: #0d1117; --muted: #66717e;
  --line: #e7e9ec; --soft: #f6f7f8;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}
.remodal--favorites { width: min(430px, calc(100vw - 32px)); max-width: 430px; padding: 0; text-align: left; background: transparent; }
.remodal--favorites > .remodal__close { display: none; }
.remodal--favorites .collection-modal { box-sizing: border-box; width: 100%; }
.remodal--favorites button, .remodal--favorites input { font: inherit; box-sizing: border-box; }
.remodal--favorites button { cursor: pointer; }
.remodal--favorites .move-list { max-height: 50vh; overflow-y: auto; }
.remodal--favorites .primary { border: 0;
  background: var(--blue);
  color: #ffffff;
  border-radius: 24px;
  padding: 12px 18px;
  font-weight: 600 }
.remodal--favorites .primary:hover { background: var(--blue-dark) }
.remodal--favorites .secondary { border: 1px solid #d9dde2;
  background: #ffffff;
  border-radius: 9px;
  padding: 10px 14px;
  font-weight: 600 }
.remodal--favorites .secondary:hover { background: var(--soft) }
.remodal--favorites .field { height: 43px;
  border: 1px solid #dfe3e7;
  border-radius: 9px;
  background: #ffffff;
  padding: 0 13px;
  color: #27313c }
.remodal--favorites .muted { color: var(--muted) }
.remodal--favorites .preview-type { font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue);
  font-weight: 700 }
.remodal--favorites .modal-top { display: flex;
  justify-content: space-between;
  gap: 20px }
.remodal--favorites .modal-close { width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--soft);
  font-size: 20px }
.remodal--favorites .add-collection { border: 1px dashed #aeb8c2;
  background: #ffffff;
  color: var(--blue);
  border-radius: 20px;
  padding: 8px 12px;
  font-weight: 600 }
.remodal--favorites .collection-modal { width: min(430px, 100%);
  background: #ffffff;
  border-radius: 14px;
  padding: 24px }
.remodal--favorites .collection-modal h2 { margin: 0 0 8px }
.remodal--favorites .collection-modal input { width: 100%;
  margin: 18px 0 }
.remodal--favorites .collection-modal-actions { display: flex;
  justify-content: flex-end;
  gap: 10px }
.remodal--favorites .move-list { display: grid;
  gap: 8px;
  margin: 18px 0 }
.remodal--favorites .move-choice { display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 9px;
  padding: 12px;
  text-align: left }
.remodal--favorites .move-choice:hover, .remodal--favorites .move-choice.selected { border-color: #82bdf2;
  background: #f2f8ff }
.remodal--favorites .move-choice small { color: var(--muted) }
.remodal--favorites .helper { font-size: 11px;
  color: #77828d;
  margin-top: 6px;
  line-height: 1.4 }
.remodal--favorites .primary:disabled { opacity: .48;
  cursor: not-allowed }
.remodal--favorites .collection-icon { width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 18px;
  color: #61717f }
.remodal--favorites .collection-icon svg { width: 18px;
  height: 18px;
  display: block;
  fill: #edf5fc;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round }
.remodal--favorites .add-collection { min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px }
.remodal--favorites .add-collection svg { width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round }
.remodal--favorites .move-choice { gap: 12px }
.remodal--favorites .move-choice-main { display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0 }
.remodal--favorites .move-choice .collection-icon { width: 20px;
  height: 20px;
  flex-basis: 20px;
  color: #567080 }
.remodal--favorites .move-choice .collection-icon svg { width: 20px;
  height: 20px }
.remodal--favorites .move-choice.selected .collection-icon, .remodal--favorites .move-choice:hover .collection-icon { color: #0878e5 }
.remodal--favorites .move-choice.selected .collection-icon svg, .remodal--favorites .move-choice:hover .collection-icon svg { fill: #dceeff }

.remodal--favorites .collection-modal { width: 100%; }

.remodal--favorites .remodal-container { padding: 0; }
