/* Установленная на сайте версия Clear Sans не содержит этих знаков. */
@font-face {
  font-family: "VERBA Gift Pearl Punctuation";
  src: url("../fonts/ClearSans-Punctuation.woff") format("woff");
  font-weight: 400;
  unicode-range: U+2014, U+2026;
}

.verba-gift-pearl {
  --verba-gift-pearl-font: "VERBA Gift Pearl Punctuation", "Clear Sans", sans-serif;
  --verba-gift-pearl-accent: #576027;
  --verba-gift-pearl-ink: #152a45;
  font: 400 16px/normal var(--verba-gift-pearl-font);
  color: var(--verba-gift-pearl-ink);
}

.verba-gift-pearl *, .verba-gift-pearl {
  box-sizing: border-box;
}

.verba-gift-pearl__widget {
  appearance: none;
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  width: 110px;
  height: 110px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #243e2e;
  box-shadow: 0 4px 12px #142a4518;
  font: inherit;
  cursor: pointer;
}

.verba-gift-pearl__widget--rectangle {
  width: 240px;
  height: 80px;
}

.verba-gift-pearl .verba-gift-pearl__widget--program {
  display: none;
}

.verba-gift-pearl__widget img {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.verba-gift-pearl__label {
  position: absolute;
  inset: auto 4% 4%;
  padding: 3px 0;
  border-radius: 4px;
  background: rgb(255 253 244 / 94%);
  font: 700 13.64px/1.08 var(--verba-gift-pearl-font);
  letter-spacing: -.015em;
  text-align: center;
}

.verba-gift-pearl__widget--rectangle .verba-gift-pearl__label {
  inset: 50% auto auto 8px;
  transform: translateY(-50%);
  padding: 5px 6px;
  background: rgb(255 253 244 / 90%);
  font-size: 16px;
  text-align: left;
}

.verba-gift-pearl :focus-visible {
  outline: 3px solid #4d99b7;
  outline-offset: 3px;
}

html:has(.verba-gift-pearl__dialog[open]) {
  overflow: hidden;
}

.verba-gift-pearl .verba-gift-pearl__dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: transparent;
  color: inherit;
  font: inherit;
}

.verba-gift-pearl__dialog::backdrop {
  background: #152a4580;
  backdrop-filter: blur(4px);
}

.verba-gift-pearl__stage {
  display: flex;
  min-height: 100%;
  padding: 30px 20px;
}

.verba-gift-pearl__shell {
  position: relative;
  width: min(100%, 1000px);
  margin: auto;
}

.verba-gift-pearl__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 570px;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #dfe2e5;
}

.verba-gift-pearl__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 16px;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}

.verba-gift-pearl__copy .h2 {
  margin: 0;
  color: inherit;
  font: 400 32px/1.12 var(--verba-gift-pearl-font);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.verba-gift-pearl__subtitle {
  margin: 15px 0 0;
  font: 400 16px/1.4 var(--verba-gift-pearl-font);
}

.verba-gift-pearl__copy ul {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
  font: 400 15px/1.35 var(--verba-gift-pearl-font);
}

.verba-gift-pearl__copy ul li {
  position: relative;
  margin: 0;
  padding: 0 0 0 22px;
  font: inherit;
}

.verba-gift-pearl__copy li::before {
  content: "";
  position: absolute;
  top: .44em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--verba-gift-pearl-accent);
}

.verba-gift-pearl__photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 16px;
  background: #eae0ce;
}

.verba-gift-pearl__scene,
.verba-gift-pearl__scene picture,
.verba-gift-pearl__photo img {
  display: block;
  width: 100%;
  height: 100%;
}

.verba-gift-pearl__photo img {
  position: absolute;
  inset: 0;
  object-fit: cover;
}

.verba-gift-pearl__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
}

.verba-gift-pearl__hint {
  margin: 0 0 8px;
  font: 400 14px/1.3 var(--verba-gift-pearl-font);
}

.verba-gift-pearl__form [type="tel"] {
  appearance: none;
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  font: 400 18px/normal var(--verba-gift-pearl-font);
}

.verba-gift-pearl__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  color: #687078;
  font: 400 10px/1.4 var(--verba-gift-pearl-font);
  cursor: pointer;
}

.verba-gift-pearl__consent [type="checkbox"] {
  appearance: auto;
  position: static;
  display: block;
  opacity: 1;
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--verba-gift-pearl-accent);
}

.verba-gift-pearl__consent a {
  color: inherit;
  text-decoration: underline;
}

.verba-gift-pearl__submit {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  margin: 10px 0 0;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--verba-gift-pearl-accent);
  color: #fff;
  font: 700 18px/1.2 var(--verba-gift-pearl-font);
  text-align: center;
  cursor: pointer;
}

.verba-gift-pearl__submit:disabled {
  opacity: .65;
  cursor: wait;
}

.verba-gift-pearl__message {
  margin: 8px 0 0;
  font: 400 13px/1.4 var(--verba-gift-pearl-font);
}

.verba-gift-pearl [hidden] {
  display: none !important;
}

.verba-gift-pearl__form [aria-invalid="true"] {
  border-color: #9b2929;
}

.verba-gift-pearl__close {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--verba-gift-pearl-ink);
  box-shadow: 0 2px 18px #0002;
  cursor: pointer;
}

.verba-gift-pearl__close svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

@media (max-width: 1047px) {
  .verba-gift-pearl__stage { padding: 20px; }
  .verba-gift-pearl__shell { margin: 0 auto; }
  .verba-gift-pearl__panel {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 5px;
    padding: 5px;
  }
  .verba-gift-pearl__content { gap: 24px; padding: 26px 24px; }
  .verba-gift-pearl__copy .h2 { padding-inline-end: 22px; }
  .verba-gift-pearl__photo { height: 300px; }
  .verba-gift-pearl__close { width: 32px; height: 32px; }
}


.verba-gift-pearl .verba-gift-pearl__dialog:not([open]) {
  display: none;
}

.verba-gift-pearl__copy .h2:focus {
  outline: none;
}

button.verba-gift-pearl__widget {
    position: fixed;
    z-index: 9;
    bottom: 30px;
    left: 42px;
}

@media (max-width: 560px) {
  .verba-gift-pearl__widget { width: 150px; height: 50px; }
  .verba-gift-pearl__widget .verba-gift-pearl__label {
    inset: 50% auto auto 5px;
    transform: translateY(-50%);
    padding: 3px 4px;
    background: rgb(255 253 244 / 90%);
    font-size: 12px;
    text-align: left;
  }
  .verba-gift-pearl[data-verba-gift-pearl-home][data-verba-gift-pearl-program-ready] .verba-gift-pearl__dock {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    background: #202721;
  }
  .verba-gift-pearl[data-verba-gift-pearl-home][data-verba-gift-pearl-program-ready] .verba-gift-pearl__widget {
    display: block;
    width: 100%;
  }
  .verba-gift-pearl__stage { padding: 12px; }
  .verba-gift-pearl__copy .h2 { font-size: 28px; }
  .verba-gift-pearl__content { padding: 24px 18px; }
  .verba-gift-pearl__copy ul { font-size: 14px; }
  .verba-gift-pearl__photo { height: 250px; }
  .verba-gift-pearl__hint { font-size: 13px; }

  button.verba-gift-pearl__widget {
    left: 25px;
    bottom: 25px;
    z-index: 9;
}

.c-floating-panel__mobile-button {
    bottom: 90px !important;
}

}


/*  */
@media (max-width: 560px) {
    
  body .c-floating-panel__mobile-button {
      bottom: 25px !important;
      left: unset;
      right: 20px;
      height: 50px;
  }

  body .c-floating-panel__mobile-button.no-hide.border-btn {
      width: calc(50% - 25px);
      overflow: hidden;
      border: none;
      box-shadow: none;
      background: url('/local/templates/verba/assets/widget-popup/program-tablet.webp');
      background-size: cover;
      border-radius: 8px;
  }

  button.verba-gift-pearl__widget {
      left: 20px;
      width: calc(50% - 25px);
  }

  body .c-floating-panel__mobile-button.no-hide.border-btn button.button {
      left: 5px;
      padding: 3px 4px;
      font-size: 12px;
      background: rgba(255, 253, 244, 0.9);
      border-radius: 4px;
      top: 50%;
      transform: translateY(-50%);
      text-align: left;
      position: absolute;
      font-weight: 700;
      line-height: 1.08;
      letter-spacing: -0.015em;
      text-transform: none;
      color: rgb(36, 62, 46);
      text-decoration: none;
      min-width: unset;
      width: 50px;
      display: block;
      position: absolute;
      text-wrap: wrap;
      width: 50px;
      max-width: 61px;
      border-radius: 5px;
      overflow: hidden;
  }

  body .c-floating-panel__mobile-button.no-hide.border-btn button.button:after {
      content: '';
      z-index: 0;
      background: transparent;
      left: 0;
      background: red;
      top: 0;
      position: absolute;
  }

  body .c-floating-panel__mobile-button.no-hide.border-btn button.button:before {
      display: none;
  }

  .to-top-btn-c.show {
      bottom: 182px !important;
      right: 26px !important;
  }

  body .c-floating-panel {
      right: 20px !important;
      bottom: 90px !important;
  }
}