/* «Запись открыта» tool. Loaded only on /zapis-otkryta/ and /kz/zapis-otkryta/,
   after the shared tools.css. */

/* The period in the title («на ноябрь») is set in italic on serif styles. */
@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-cyrillic-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Playfair Display";
  src: url("/assets/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.zapis {
  scroll-margin-top: 24px;
}

/* Wordings are whole phrases: one per line reads better than a wrap of chips. */
.zp-wordings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.zp-wordings .ok-chip {
  display: flex;
}

.zp-wordings .ok-chip span {
  width: 100%;
  white-space: normal;
  text-align: center;
}

/* Ready-made lines under the note field. */
.zp-ideas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.zp-ideas .ok-button {
  min-height: 0;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
}

/* Schedule editor: a day and its hours per row. */
.zp-rows {
  display: grid;
  gap: 8px;
}

.zp-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.zp-row__remove {
  min-width: 46px;
  font-size: 22px;
  line-height: 1;
}

[data-zapis-add-row] {
  justify-self: start;
  margin-top: 4px;
}

/* The seasonal swatch: a hint of lights on the green. */
.zp-swatch--newyear span[aria-hidden] {
  background:
    radial-gradient(circle at 28% 34%, #e7c77b 0 3px, transparent 4px),
    radial-gradient(circle at 54% 26%, #d8503c 0 3px, transparent 4px),
    radial-gradient(circle at 76% 38%, #f7efe0 0 3px, transparent 4px),
    var(--bg);
}

@media (max-width: 520px) {
  .zp-wordings {
    grid-template-columns: 1fr;
  }

  /* «10:00–20:00» must fit into half of a phone screen. */
  .zp-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
    gap: 6px;
  }

  .zp-row .ok-input {
    padding-inline: 12px;
  }

  .zp-row__remove {
    min-width: 40px;
    padding: 0;
  }
}
