/* «Подарочный сертификат» tool. Loaded only on /podarochnyj-sertifikat/ and
   /kz/podarochnyj-sertifikat/, after the shared tools.css. */

@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;
}

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

/* The horizontal certificate needs a wider preview column than the stories tool. */
.cert-tool {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
}

.cert-canvas--story {
  justify-self: center;
  width: min(100%, 340px);
}

.cert-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: -8px;
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}

.cert-check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
}

/* Fields that the blank turns into lines for handwriting. */
.ok-field.is-muted .ok-input {
  opacity: 0.45;
}

@media (max-width: 1080px) {
  .cert-tool {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  }
}

@media (max-width: 860px) {
  .cert-tool {
    grid-template-columns: 1fr;
  }
}
