/* ══════════════════════════════════════════════════════════════════════
   N6 на витрине: «Повторить заказ», «Напомнить о дате», строка «Праздник».

   Всё спокойное, без капса и больших кнопок: карточки на цвете карточек
   шаблона (`--surface`, `--ink`) там, где они лежат в листе, и на цвете
   страницы (`--on-bg`) там, где они стоят прямо на странице. Движение — только
   transform и opacity.
   ══════════════════════════════════════════════════════════════════════ */

/* ─── Повторить заказ ─── */
.re-list {
  display: grid;
  gap: 8px;
}
.re-card {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
}
.re-card__main {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 64px;
  padding: 8px 4px 8px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.re-card__main:active {
  transform: scale(0.99);
}
.re-card__stack {
  display: flex;
  flex: none;
  box-sizing: border-box;
  width: 84px;
  padding-inline-start: 12px;
}
.re-thumb {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 45px;
  margin-inline-start: -12px;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 10px;
  background: var(--surface-raised, var(--bg));
  color: var(--ink-soft);
}
.re-thumb__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.re-thumb picture {
  display: contents;
}
.re-card__words {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.re-card__title {
  font-weight: 700;
  font-size: 0.95rem;
}
.re-card__meta {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.re-card__go {
  flex: none;
  width: 20px;
  height: 20px;
  margin-inline-start: auto;
  color: var(--accent-strong);
}
.re-card__forget {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  margin-inline-end: 4px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.re-card__x {
  width: 16px;
  height: 16px;
}
.ck-reorder {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: start;
}
.ck-reorder[hidden] {
  display: none;
}
.ck-reorder__label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* ─── Напомнить о дате: лист ─── */
.rm {
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}
.rm__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.rm__sub {
  margin: 4px 0 -4px;
}
.rm__toggle {
  justify-self: start;
}
.rm__error {
  min-height: 1.25em;
  margin: 0;
  color: var(--danger, #b3261e);
  font-size: 0.8125rem;
}
.rm__error[hidden] {
  display: block;
  visibility: hidden;
}
.rm__save {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.rm__save-ico {
  width: 20px;
  height: 20px;
}
.rm__google {
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* «Мои даты» в меню сайта */
.rm-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rm-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 6px 4px 6px 14px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
}
.rm-item__cal {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--accent-strong);
}
.rm-item__text {
  display: grid;
  flex: 1;
  min-width: 0;
}
.rm-item__title {
  overflow: hidden;
  font-weight: 700;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rm-item__meta {
  color: var(--ink-soft);
  font-size: 0.8125rem;
}
.rm-item__x {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.rm-item__ico {
  width: 16px;
  height: 16px;
}

.sheet__remind {
  width: 100%;
  min-height: 48px;
  margin-top: 4px;
}

/* ─── Карточка даты в ленте ─── */
.date-card {
  box-sizing: border-box;
  max-width: calc(var(--page-max, 1100px) + var(--page-gutter, 16px) * 2);
  margin: 12px auto 0;
  padding: 0 var(--page-gutter, 16px);
}
.date-card[hidden],
html[data-searching="true"] .date-card {
  display: none;
}
.date-card__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 6px 10px 14px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent-strong) 11%, var(--surface-2, var(--surface)));
  color: var(--ink);
  animation: date-in 320ms var(--ease-out, ease-out) both;
}
@keyframes date-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.date-card__mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-strong) 18%, transparent);
  color: var(--accent-strong);
}
.date-card__ico {
  width: 20px;
  height: 20px;
}
.date-card__body {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}
.date-card__text {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.date-card__pick {
  justify-self: start;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.date-card__close {
  display: grid;
  place-items: center;
  flex: none;
  align-self: flex-start;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
}
.date-card__x {
  width: 16px;
  height: 16px;
}

/* ─── Режим «Праздник» ─── */
.holiday-line__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.holiday-line__note {
  color: var(--ink-soft);
  font-size: 0.8125rem;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.holiday-line--menu {
  padding: 12px 14px 12px 16px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--accent-strong) 11%, var(--surface-2, var(--surface)));
  color: var(--ink);
  font-size: 0.95rem;
}
.holiday-line--trust {
  box-sizing: border-box;
  padding: 12px 16px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.95rem;
}
button.holiday-line::after {
  content: "›";
  margin-inline-start: auto;
  color: var(--ink-soft);
  font-size: 1.3em;
}
[dir="rtl"] button.holiday-line::after {
  content: "‹";
}

/* Праздничный чип и подсказка в корзине */
.ck-chip--holiday {
  border-style: dashed;
  border-color: var(--accent);
}
.ck-hint--holiday {
  padding: 4px 2px;
  color: var(--ink);
  transition: transform 160ms ease-out;
}
.ck-hint--holiday[data-flash="true"] {
  transform: translateX(4px);
}
.ck-toast--note {
  justify-content: flex-start;
}
