/*
 * Woolbridge UI kit layer.
 * Назначение классов:
 * - .wb-ui-font-base: обычный текст интерфейса, карточки, параметры, цены, названия товаров.
 * - .wb-ui-font-control: кнопки, бейджи, поля форм и мелкие управляющие элементы.
 * - .wb-ui-font-accent: только декоративные брендовые заголовки секций, например "Часто покупают".
 * - .wb-ui-radius-*: системная шкала скруглений, когда стандартных rounded-* BS5 недостаточно.
 *
 * Переиспользование:
 * Сначала ставим BS5-классы для сетки, flex, card, btn, badge, form-control.
 * Затем добавляем wb-ui-* только для фирменного шрифта или точного радиуса макета.
 */
:root {
  --wb-ui-radius-xs: 6px;
  --wb-ui-radius-sm: 8px;
  --wb-ui-radius-md: 10px;
  --wb-ui-radius-lg: 14px;
  --wb-ui-radius-xl: 18px;
  --wb-ui-radius-2xl: 24px;
  --wb-ui-radius-pill: 999px;
}

.wb-ui-font-base { font-family: var(--wb-font-base) !important; }
.wb-ui-font-control { font-family: var(--wb-font-base) !important; }
.wb-ui-font-accent { font-family: var(--wb-font-accent) !important; }

.wb-ui-radius-xs { border-radius: var(--wb-ui-radius-xs) !important; }
.wb-ui-radius-sm { border-radius: var(--wb-ui-radius-sm) !important; }
.wb-ui-radius-md { border-radius: var(--wb-ui-radius-md) !important; }
.wb-ui-radius-lg { border-radius: var(--wb-ui-radius-lg) !important; }
.wb-ui-radius-xl { border-radius: var(--wb-ui-radius-xl) !important; }
.wb-ui-radius-2xl { border-radius: var(--wb-ui-radius-2xl) !important; }
.wb-ui-radius-pill { border-radius: var(--wb-ui-radius-pill) !important; }

/* Базовые формы и чипы Woolbridge из UI kit. */
:root {
  --wb-ui-pink: #F397C1;
  --wb-ui-pink-strong: #E678AE;
  --wb-ui-pink-soft: #FFEEF5;
  --wb-ui-gray: #B6B6B8;
  --wb-ui-gray-soft: #F6F6F6;
  --wb-ui-text: #1B1B1B;
  --wb-ui-muted: #A8A8AE;
}

.wb-ui-chip {
  --bs-btn-padding-x: 14px;
  --bs-btn-padding-y: 7px;
  --bs-btn-font-family: var(--wb-font-base);
  --bs-btn-font-size: .88rem;
  --bs-btn-font-weight: 700;
  --bs-btn-line-height: 1.15;
  --bs-btn-color: var(--wb-ui-pink);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--wb-ui-pink);
  --bs-btn-border-width: 1px;
  --bs-btn-border-radius: var(--wb-ui-radius-pill);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wb-ui-pink);
  --bs-btn-hover-border-color: var(--wb-ui-pink);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--wb-ui-pink-strong);
  --bs-btn-active-border-color: var(--wb-ui-pink-strong);
  min-height: 34px;
  white-space: nowrap;
}

.wb-ui-chip--active {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wb-ui-pink-strong);
  --bs-btn-border-color: var(--wb-ui-pink-strong);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wb-ui-pink-strong);
  --bs-btn-hover-border-color: var(--wb-ui-pink-strong);
}

.wb-ui-control-field {
  position: relative;
  display: block;
  margin: 0;
}

.wb-ui-control {
  min-height: 64px;
  padding: 0 52px 0 44px;
  border: 1.5px solid var(--wb-ui-gray);
  border-radius: 16px;
  color: var(--wb-ui-text);
  font-family: var(--wb-font-base);
  font-size: .95rem;
  font-weight: 600;
  background-color: #fff;
}

.wb-ui-control::placeholder {
  color: var(--wb-ui-muted);
  opacity: 1;
}

.wb-ui-control:focus {
  border-color: var(--wb-ui-pink);
}

.wb-ui-control-field.is-invalid .wb-ui-control {
  border-color: #E45A5A;
}

.wb-ui-control-icon,
.wb-ui-control-action {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--wb-ui-gray);
  transform: translateY(-50%);
}

.wb-ui-control-icon {
  left: 18px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.wb-ui-control-icon svg,
.wb-ui-control-action svg,
.wb-ui-control-icon img,
.wb-ui-control-action img {
  width: 100%;
  height: 100%;
  display: block;
}

.wb-ui-control-action {
  right: 17px;
  width: 24px;
  height: 24px;
}

.wb-ui-control-action:hover,
.wb-ui-control-action.is-active {
  color: var(--wb-ui-pink);
}

.wb-ui-control-icon--flag {
  width: 18px;
  height: 12px;
  border-radius: 1px;
  background: linear-gradient(to bottom, #fff 0 33%, #2f7ff0 33% 66%, #e53737 66% 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .04);
}

.wb-ui-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #555;
  font-family: var(--wb-font-base);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
}

.wb-ui-check .form-check-input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--wb-ui-gray);
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
}

.wb-ui-check .form-check-input:checked {
  border-color: var(--wb-ui-pink);
  background-color: var(--wb-ui-pink);
}

.wb-ui-check a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wb-ui-submit {
  min-height: 52px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--wb-ui-pink-strong);
  font-family: var(--wb-font-base);
  font-size: .95rem;
  font-weight: 800;
}

.wb-ui-submit:hover,
.wb-ui-submit:focus-visible {
  color: #fff;
  background: var(--wb-ui-pink);
}

.wb-ui-submit:disabled,
.wb-ui-submit.disabled {
  color: #BDBDC2;
  background: var(--wb-ui-gray-soft);
  opacity: 1;
}

/* Woolbridge UI primitives. Использовать как основу для новых кнопок, полей, чипов, бейджей и nav-иконок. */
:root {
  --wb-ui-pink: #f397c1;
  --wb-ui-pink-strong: #e66fac;
  --wb-ui-pink-soft: #ffe8f4;
  --wb-ui-pink-light: #fff4fa;
  --wb-ui-gray: #a9a9ad;
  --wb-ui-gray-soft: #f6f6f6;
  --wb-ui-gray-border: #b7b7bb;
  --wb-ui-text: #1e1e1e;
  --wb-ui-muted: #a0a0a6;
  --wb-ui-danger: #ff3b3b;
  --wb-ui-danger-soft: #ffe8e8;
  --wb-ui-success: #008c63;
  --wb-ui-success-soft: #d8ffe9;
  --wb-ui-purple-soft: #f0e2ff;
  --wb-ui-purple: #a783d9;
  --wb-ui-orange: #ff8a3d;
  --wb-ui-orange-soft: #fff0e5;
}

.wb-ui-btn {
  --wb-ui-btn-bg: var(--wb-ui-pink);
  --wb-ui-btn-border: var(--wb-ui-pink);
  --wb-ui-btn-color: #fff;
  --wb-ui-btn-hover-bg: var(--wb-ui-pink-strong);
  --wb-ui-btn-hover-border: var(--wb-ui-pink-strong);
  min-height: 46px;
  padding: 12px 26px;
  border: 1px solid var(--wb-ui-btn-border);
  border-radius: var(--wb-ui-radius-xl);
  background: var(--wb-ui-btn-bg);
  color: var(--wb-ui-btn-color);
  font-family: var(--wb-font-base);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.wb-ui-btn:hover,
.wb-ui-btn.is-hover,
.wb-ui-btn.is-active {
  border-color: var(--wb-ui-btn-hover-border);
  background: var(--wb-ui-btn-hover-bg);
  color: var(--wb-ui-btn-color);
}

.wb-ui-btn--outline:hover,
.wb-ui-btn--outline.is-hover,
.wb-ui-btn--outline.is-active,
.wb-ui-btn--danger:hover,
.wb-ui-btn--danger.is-hover,
.wb-ui-btn--danger.is-active {
  color: #fff;
}

.wb-ui-btn:active,
.wb-ui-btn.is-active {
  transform: translateY(1px);
}

.wb-ui-btn:disabled,
.wb-ui-btn.disabled {
  border-color: var(--wb-ui-gray-soft);
  background: var(--wb-ui-gray-soft);
  color: #bebec4;
  opacity: 1;
  pointer-events: none;
}

.wb-ui-btn img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.wb-ui-btn--pink {
  --wb-ui-btn-bg: var(--wb-ui-pink);
  --wb-ui-btn-border: var(--wb-ui-pink);
  --wb-ui-btn-color: #fff;
  --wb-ui-btn-hover-bg: var(--wb-ui-pink-strong);
  --wb-ui-btn-hover-border: var(--wb-ui-pink-strong);
}

.wb-ui-btn--outline {
  --wb-ui-btn-bg: transparent;
  --wb-ui-btn-border: var(--wb-ui-pink);
  --wb-ui-btn-color: var(--wb-ui-pink);
  --wb-ui-btn-hover-bg: var(--wb-ui-pink);
  --wb-ui-btn-hover-border: var(--wb-ui-pink);
}

.wb-ui-btn--ghost {
  --wb-ui-btn-bg: var(--wb-ui-pink-light);
  --wb-ui-btn-border: var(--wb-ui-pink-light);
  --wb-ui-btn-color: var(--wb-ui-pink);
  --wb-ui-btn-hover-bg: var(--wb-ui-pink-soft);
  --wb-ui-btn-hover-border: var(--wb-ui-pink-soft);
}

.wb-ui-btn--danger {
  --wb-ui-btn-bg: var(--wb-ui-danger-soft);
  --wb-ui-btn-border: var(--wb-ui-danger-soft);
  --wb-ui-btn-color: var(--wb-ui-danger);
  --wb-ui-btn-hover-bg: var(--wb-ui-danger);
  --wb-ui-btn-hover-border: var(--wb-ui-danger);
}

.wb-ui-btn--loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .55);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wb-ui-spin .8s linear infinite;
}

@keyframes wb-ui-spin {
  to { transform: rotate(360deg); }
}

.wb-ui-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 7px 15px;
  border: 1px solid var(--wb-ui-pink);
  border-radius: var(--wb-ui-radius-pill);
  background: #fff;
  color: var(--wb-ui-pink);
  font-family: var(--wb-font-base);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.wb-ui-chip:hover,
.wb-ui-chip.is-hover,
.wb-ui-chip.is-active {
  border-color: var(--wb-ui-pink);
  background: var(--wb-ui-pink);
  color: #fff;
}

.wb-ui-chip:disabled,
.wb-ui-chip.is-disabled {
  border-color: #e5e2e5;
  background: #fff;
  color: #c9c4c9;
  opacity: 1;
}

.wb-ui-chip--soft {
  border-color: var(--wb-ui-pink-soft);
  background: var(--wb-ui-pink-soft);
  color: var(--wb-ui-pink-strong);
}

.wb-ui-chip--dark {
  border-color: #1f1b22;
  color: #1f1b22;
}

.wb-ui-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 5px 10px;
  border-radius: var(--wb-ui-radius-pill);
  font-family: var(--wb-font-base);
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.wb-ui-badge--pink { background: var(--wb-ui-pink); color: #fff; }
.wb-ui-badge--soft { background: var(--wb-ui-pink-soft); color: var(--wb-ui-pink-strong); }
.wb-ui-badge--green { background: var(--wb-ui-success-soft); color: var(--wb-ui-success); }
.wb-ui-badge--red { background: var(--wb-ui-danger-soft); color: var(--wb-ui-danger); }
.wb-ui-badge--purple { background: var(--wb-ui-purple-soft); color: var(--wb-ui-purple); }
.wb-ui-badge--orange { background: var(--wb-ui-orange-soft); color: var(--wb-ui-orange); }

.wb-ui-field {
  position: relative;
  display: block;
  color: var(--wb-ui-text);
  font-family: var(--wb-font-base);
}

.wb-ui-field input,
.wb-ui-field select,
.wb-ui-field textarea {
  width: 100%;
  min-height: 58px;
  padding: 0 46px 0 44px;
  border: 1px solid var(--wb-ui-gray-border);
  border-radius: var(--wb-ui-radius-lg);
  background: #fff;
  color: var(--wb-ui-text);
  -webkit-text-fill-color: var(--wb-ui-text);
  caret-color: var(--wb-ui-pink);
  font-family: var(--wb-font-base);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  appearance: none;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.wb-ui-field textarea {
  min-height: 110px;
  padding-top: 18px;
  resize: vertical;
}

.wb-ui-field input::placeholder,
.wb-ui-field textarea::placeholder {
  color: var(--wb-ui-muted);
  -webkit-text-fill-color: var(--wb-ui-muted);
  opacity: 1;
}

.wb-ui-field input:focus,
.wb-ui-field select:focus,
.wb-ui-field textarea:focus,
.wb-ui-field.is-focus input,
.wb-ui-field.is-focus select,
.wb-ui-field.is-focus textarea,
.wb-ui-field.is-hover input,
.wb-ui-field.is-hover select,
.wb-ui-field.is-hover textarea {
  border-color: var(--wb-ui-pink);
  background: #fff;
}

.wb-ui-field.is-filled input::placeholder,
.wb-ui-field.is-filled textarea::placeholder,
.wb-ui-field.is-focus input::placeholder,
.wb-ui-field.is-focus textarea::placeholder,
.wb-ui-field.is-valid input::placeholder,
.wb-ui-field.is-invalid input::placeholder {
  opacity: 0;
}

.wb-ui-field.is-invalid input,
.wb-ui-field.is-invalid select,
.wb-ui-field.is-invalid textarea {
  border-color: var(--wb-ui-danger);
  color: var(--wb-ui-text);
  -webkit-text-fill-color: var(--wb-ui-text);
}

.wb-ui-field.is-valid input,
.wb-ui-field.is-valid select,
.wb-ui-field.is-valid textarea {
  border-color: var(--wb-ui-success);
}

.wb-ui-field.is-disabled input,
.wb-ui-field input:disabled {
  border-color: #e6e4e7;
  background: #f7f7f7;
  color: #bdbdc3;
  -webkit-text-fill-color: #bdbdc3;
}

.wb-ui-field__label {
  position: absolute;
  top: -8px;
  left: 28px;
  z-index: 2;
  padding: 0 8px;
  background: #fff;
  color: var(--wb-ui-text);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1;
}

.wb-ui-field.is-invalid .wb-ui-field__label {
  color: var(--wb-ui-danger);
}

.wb-ui-field__icon,
.wb-ui-field__status {
  position: absolute;
  top: 29px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  pointer-events: none;
}

.wb-ui-field__icon {
  left: 17px;
  width: 18px;
  height: 18px;
  color: #b6b6ba;
}

.wb-ui-field__icon img {
  width: 17px;
  height: 17px;
  opacity: .55;
}

.wb-ui-field__status img {
  display: block;
  width: 18px;
  height: 18px;
}

.wb-ui-field__status {
  right: 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: .78rem;
  font-weight: 700;
}

.wb-ui-field.is-valid .wb-ui-field__status {
  color: var(--wb-ui-success);
}

.wb-ui-field.is-invalid .wb-ui-field__status {
  color: var(--wb-ui-danger);
}

.wb-ui-field__error {
  display: block;
  margin-top: 8px;
  color: var(--wb-ui-danger);
  font-size: .82rem;
  font-weight: 500;
}

.wb-ui-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--wb-ui-text);
  font-family: var(--wb-font-base);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
}

.wb-ui-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wb-ui-check span {
  width: 18px;
  height: 18px;
  border: 1px solid var(--wb-ui-gray-border);
  border-radius: 4px;
  background: #fff;
}

.wb-ui-check input:checked + span {
  border-color: var(--wb-ui-pink);
  background: var(--wb-ui-pink);
  box-shadow: inset 0 0 0 3px #fff;
}

.wb-ui-switch {
  display: inline-flex;
  cursor: pointer;
}

.wb-ui-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wb-ui-switch span {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: var(--wb-ui-radius-pill);
  background: #e1e1e4;
  transition: background-color .18s ease;
}

.wb-ui-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  transition: transform .18s ease;
}

.wb-ui-switch input:checked + span {
  background: var(--wb-ui-pink);
}

.wb-ui-switch input:checked + span::after {
  transform: translateX(18px);
}

.wb-ui-nav-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--wb-ui-pink-soft);
  color: var(--wb-ui-pink);
  cursor: pointer;
}

.wb-ui-nav-icon > img {
  width: 22px;
  height: 22px;
}

.wb-ui-nav-icon__badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--wb-ui-radius-pill);
  background: var(--wb-ui-pink);
  color: #fff;
  font-family: var(--wb-font-base);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
}

.wb-ui-tooltip-demo {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 126px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #1f1f1f;
  color: #fff;
  font-family: var(--wb-font-base);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.1;
}

.wb-ui-tooltip-demo::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.wb-ui-tooltip-demo strong {
  font-weight: 700;
}

.wb-ui-tooltip-demo--small {
  min-width: 70px;
  align-items: center;
  padding: 6px 10px;
  font-size: .72rem;
}

.wb-ui-nav-icon .wb-ui-tooltip-demo {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  opacity: 0;
  transform: translateX(-50%) translateY(4px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.wb-ui-nav-icon:hover .wb-ui-tooltip-demo,
.wb-ui-nav-icon:focus-visible .wb-ui-tooltip-demo {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* System form checks/radios from Woolbridge SVG icon set.
   Use inline mask data-URIs so Webpack does not lose relative URLs in compiled CSS. */
:root {
  --wb-ui-icon-checkbox-unchecked: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M17.038%204.464H6.965C5.584%204.464%204.465%205.583%204.465%206.964V17.036C4.465%2018.417%205.584%2019.536%206.965%2019.536H17.038C18.418%2019.536%2019.538%2018.417%2019.538%2017.036V6.964C19.538%205.583%2018.418%204.464%2017.038%204.464ZM6.965%202.964C4.756%202.964%202.965%204.754%202.965%206.964V17.036C2.965%2019.246%204.756%2021.036%206.965%2021.036H17.038C19.247%2021.036%2021.038%2019.246%2021.038%2017.036V6.964C21.038%204.754%2019.247%202.964%2017.038%202.964H6.965Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  --wb-ui-icon-checkbox-checked: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6.965%204.464H17.038C18.418%204.464%2019.538%205.583%2019.538%206.964V17.036C19.538%2018.417%2018.418%2019.536%2017.038%2019.536H6.965C5.584%2019.536%204.465%2018.417%204.465%2017.036V6.964C4.465%205.583%205.584%204.464%206.965%204.464ZM2.965%206.964C2.965%204.754%204.756%202.964%206.965%202.964H17.038C19.247%202.964%2021.038%204.754%2021.038%206.964V17.036C21.038%2019.246%2019.247%2021.036%2017.038%2021.036H6.965C4.756%2021.036%202.965%2019.246%202.965%2017.036V6.964ZM7.724%205.722C6.62%205.722%205.724%206.617%205.724%207.722V16.278C5.724%2017.383%206.62%2018.278%207.724%2018.278H16.281C17.385%2018.278%2018.281%2017.383%2018.281%2016.278V7.722C18.281%206.617%2017.385%205.722%2016.281%205.722H7.724Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  --wb-ui-icon-radio-unchecked: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M1.93%2012C1.93%206.438%206.438%201.93%2012%201.93C17.562%201.93%2022.07%206.438%2022.07%2012C22.07%2017.562%2017.562%2022.07%2012%2022.07C6.438%2022.07%201.93%2017.562%201.93%2012ZM12%203.761C7.45%203.761%203.761%207.45%203.761%2012C3.761%2016.551%207.45%2020.239%2012%2020.239C16.551%2020.239%2020.239%2016.551%2020.239%2012C20.239%207.45%2016.551%203.761%2012%203.761Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
  --wb-ui-icon-radio-checked: url("data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M12%201.93C6.438%201.93%201.93%206.438%201.93%2012C1.93%2017.562%206.438%2022.07%2012%2022.07C17.562%2022.07%2022.07%2017.562%2022.07%2012C22.07%206.438%2017.562%201.93%2012%201.93ZM3.761%2012C3.761%207.449%207.449%203.761%2012%203.761C16.551%203.761%2020.239%207.449%2020.239%2012C20.239%2016.551%2016.551%2020.239%2012%2020.239C7.449%2020.239%203.761%2016.551%203.761%2012ZM12%2018.337C15.5%2018.337%2018.337%2015.5%2018.337%2012C18.337%208.5%2015.5%205.663%2012%205.663C8.5%205.663%205.663%208.5%205.663%2012C5.663%2015.5%208.5%2018.337%2012%2018.337Z%22%20fill%3D%22%23000%22%2F%3E%3C%2Fsvg%3E");
}

.wb-ui-check {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
  color: var(--wb-ui-text, #211d24);
  font-family: var(--wb-font-base);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
}

.wb-ui-check .form-check-input,
.wb-ui-check > input[type='checkbox'] {
  position: static !important;
  display: inline-block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  margin: .02em 0 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: #b7b7bb !important;
  background-image: none !important;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -webkit-mask: var(--wb-ui-icon-checkbox-unchecked) center / contain no-repeat;
  mask: var(--wb-ui-icon-checkbox-unchecked) center / contain no-repeat;
}

.wb-ui-check .form-check-input:checked,
.wb-ui-check > input[type='checkbox']:checked {
  background-color: var(--wb-ui-pink, #f397c1) !important;
  -webkit-mask-image: var(--wb-ui-icon-checkbox-checked);
  mask-image: var(--wb-ui-icon-checkbox-checked);
}

.wb-ui-check .form-check-input:focus,
.wb-ui-check .form-check-input:focus-visible,
.wb-ui-check > input[type='checkbox']:focus,
.wb-ui-check > input[type='checkbox']:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(243, 151, 193, .22) !important;
}

.wb-ui-check > span {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: inherit;
  background: transparent !important;
  box-shadow: none !important;
  overflow-wrap: normal;
  word-break: normal;
}

.wb-ui-check a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wb-ui-radio-icon {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  background-color: #b8b3b8;
  -webkit-mask: var(--wb-ui-icon-radio-unchecked) center / contain no-repeat;
  mask: var(--wb-ui-icon-radio-unchecked) center / contain no-repeat;
}

input[type='radio']:checked + .wb-ui-radio-icon,
.is-active > .wb-ui-radio-icon,
:has(> input[type='radio']:checked) > .wb-ui-radio-icon {
  background-color: var(--wb-ui-pink, #f397c1);
  -webkit-mask-image: var(--wb-ui-icon-radio-checked);
  mask-image: var(--wb-ui-icon-radio-checked);
}


/* Финальный слой UI kit: radio/checkbox берут SVG mask из wob-набора. */
.wb-ui-radio-icon,
.wb-uikit-radio-demo i {
  display: inline-block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: var(--wb-ui-gray, #b8b3b8) !important;
  background-image: none !important;
  -webkit-mask: var(--wb-ui-icon-radio-unchecked) center / contain no-repeat !important;
  mask: var(--wb-ui-icon-radio-unchecked) center / contain no-repeat !important;
}

input[type='radio']:checked + .wb-ui-radio-icon,
.is-active > .wb-ui-radio-icon,
:has(> input[type='radio']:checked) > .wb-ui-radio-icon,
.wb-uikit-radio-demo input[type='radio']:checked + i {
  background-color: var(--wb-ui-pink, #f397c1) !important;
  -webkit-mask: var(--wb-ui-icon-radio-checked) center / contain no-repeat !important;
  mask: var(--wb-ui-icon-radio-checked) center / contain no-repeat !important;
}


/* Авторизация и регистрация. */
.wb-auth-modal {
  --bs-modal-width: 460px;
  --bs-modal-bg: #fff;
  --bs-modal-border-radius: 16px;
  --bs-modal-padding: 0;
  color: var(--wb-ui-text);
}

.wb-auth-modal .modal-dialog {
  max-width: var(--bs-modal-width);
}

.wb-auth-modal.fade .modal-dialog {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .22s ease, transform .22s ease;
}

.wb-auth-modal.show .modal-dialog,
.wb-auth-modal.modal-static .modal-dialog {
  opacity: 1;
  transform: scale(1);
}

.wb-auth-modal__content {
  max-height: none;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(30, 30, 30, .12);
  overflow: visible;
}

.wb-auth-modal__body {
  padding: 31px 30px 40px;
}

.wb-auth-modal__head {
  margin-bottom: 29px;
}

.wb-auth-modal__title {
  color: #0D0D0D;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.1;
}

.wb-auth-modal__close {
  width: 29px;
  height: 29px;
  color: #B7B7B7;
  transform: translateY(-1px);
}

.wb-auth-modal__close:hover {
  color: var(--wb-ui-pink);
}

.wb-auth-modal__tabs {
  margin-bottom: 30px;
}

.wb-auth-modal__tab {
  flex: 1 1 auto;
  min-width: 0;
}

.wb-auth-modal__mascot {
  position: relative;
  width: 124px;
  height: 124px;
  margin-bottom: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #F397C1 0 54%, #E371AE 100%);
  overflow: visible;
}

.wb-auth-modal__mascot-img {
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 118px;
  max-width: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .18s ease, transform .18s ease;
}

.wb-auth-modal__mascot:not([data-wb-auth-mascot-state]) .wb-auth-modal__mascot-img--default,
.wb-auth-modal__mascot[data-wb-auth-mascot-state="default"] .wb-auth-modal__mascot-img--default,
.wb-auth-modal__mascot[data-wb-auth-mascot-state="error"] .wb-auth-modal__mascot-img--default {
  opacity: 1;
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state="email"] .wb-auth-modal__mascot-img--email {
  opacity: 1;
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state="password"] .wb-auth-modal__mascot-img--password {
  opacity: 1;
  transform: translateX(-50%) rotate(180deg);
}

.wb-auth-modal__mascot.is-error .wb-auth-modal__mascot-img--default {
  transform: translateX(-50%) scale(.94);
}

.wb-auth-modal__mascot-bubble {
  position: absolute;
  top: 12px;
  right: -18px;
  display: none;
  padding: 4px 8px;
  border: 1px solid #222;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-size: .62rem;
  font-weight: 700;
  line-height: 1;
}

.wb-auth-modal__mascot.is-password-visible .wb-auth-modal__mascot-bubble {
  display: inline-flex;
}

.wb-auth-form {
  gap: 20px;
}

.wb-auth-form--register {
  gap: 24px;
}

.wb-auth-field__label {
  position: absolute;
  top: -8px;
  left: 24px;
  z-index: 3;
  display: none;
  padding: 0 5px;
  color: #555;
  background: #fff;
  font-family: var(--wb-font-base);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1;
}

.wb-auth-field.is-filled .wb-auth-field__label,
.wb-auth-field.is-invalid .wb-auth-field__label {
  display: inline-flex;
}

.wb-auth-field.is-filled .wb-ui-control::placeholder,
.wb-auth-field.is-invalid .wb-ui-control::placeholder {
  color: transparent;
}

.wb-auth-field.is-invalid .wb-auth-field__label,
.wb-auth-field.is-invalid .wb-auth-field__error {
  color: #FF3838;
}

.wb-auth-field__error {
  display: block;
  margin: 8px 0 0 4px;
  font-family: var(--wb-font-base);
  font-size: .88rem;
  font-weight: 500;
  line-height: 1.2;
}

.wb-auth-field__error[hidden] {
  display: none !important;
}

.wb-auth-form__meta {
  margin-top: -1px;
}

.wb-auth-form__link {
  color: #5B5B5B;
  font-family: var(--wb-font-base);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.wb-auth-form__link:hover,
.wb-auth-form__link:focus-visible {
  color: var(--wb-ui-pink);
}

.wb-auth-form__submit {
  margin-top: 26px;
}

.wb-auth-form--register .wb-auth-form__submit {
  margin-top: 20px;
}

.wb-auth-form__checks {
  gap: 12px;
  margin-top: -1px;
}

.wb-auth-social {
  margin-top: 31px;
}

.wb-auth-social__title {
  color: #A6A7AF;
  font-family: var(--wb-font-base);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.wb-auth-social__list {
  justify-content: center;
  gap: 17px;
  margin-top: 21px;
}

.wb-auth-social-btn {
  position: relative;
  width: 268px;
  min-height: 34px;
  margin: 0 auto;
  padding: 4px 42px;
  border: 1px solid #2B2B2B;
  border-radius: 4px;
  color: #fff;
  background: #000;
  font-family: Arial, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  line-height: 1;
}

.wb-auth-social-btn:hover,
.wb-auth-social-btn:focus-visible {
  color: #fff;
  background: #111;
}

.wb-auth-social-btn__brand,
.wb-auth-social-btn__avatar {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
}

.wb-auth-social-btn__brand {
  left: 10px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #fff;
  background: #FC3F1D;
  font-size: .8rem;
  font-weight: 800;
}

.wb-auth-social-btn__avatar {
  right: 10px;
  width: 22px;
  height: 22px;
  border: 2px solid #D855B9;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #D9E5F5 0 20%, transparent 21%),
    radial-gradient(circle at 50% 78%, #D9E5F5 0 34%, transparent 35%),
    #2B5278;
}

.wb-eye-hidden {
  display: none;
}

.wb-ui-control-action.is-active .wb-eye-visible {
  display: none;
}

.wb-ui-control-action.is-active .wb-eye-hidden {
  display: block;
}

.wb-auth-modal--register .wb-auth-modal__head {
  margin-bottom: 30px;
}

.wb-auth-modal--register .wb-auth-modal__tabs {
  margin-bottom: 22px;
}

.wb-auth-modal--register .wb-auth-social {
  margin-top: 31px;
}

@media (min-width: 576px) {
  .wb-auth-modal .modal-dialog {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 575.98px) {
  .wb-auth-modal .modal-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  .wb-auth-modal__content {
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .wb-auth-modal__body {
    padding: 31px 30px 40px;
  }

  .wb-auth-modal__tabs {
    flex-wrap: nowrap !important;
    gap: 7px !important;
  }

  .wb-auth-modal__tab {
    --bs-btn-padding-x: 9px;
    font-size: .82rem;
  }

  .wb-ui-control {
    min-height: 64px;
    border-radius: 16px;
  }
}

@media (max-width: 390px) {
  .wb-auth-modal__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .wb-auth-modal__tab {
    font-size: .75rem;
  }

  .wb-auth-social-btn {
    width: min(268px, 100%);
  }
}

/* Уточнение popup-форм по UI kit. */
.wb-auth-modal {
  --bs-modal-width: 488px;
}

.wb-auth-modal__body {
  padding: 31px 30px 36px;
}

.wb-auth-modal__head {
  margin-bottom: 28px;
}

.wb-auth-modal__title {
  font-size: 1.42rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.wb-auth-modal__tabs {
  display: grid !important;
  grid-template-columns: minmax(0, 1.44fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px !important;
  margin-bottom: 29px;
}

.wb-auth-modal__tab {
  --bs-btn-padding-x: 9px;
  --bs-btn-padding-y: 6px;
  width: 100%;
  min-height: 32px;
  font-size: .82rem;
  font-weight: 600;
}

.wb-auth-modal__mascot {
  width: 112px;
  height: 112px;
  margin-bottom: 29px;
}

.wb-auth-modal__mascot-img {
  bottom: -12px;
  width: 106px;
}

.wb-auth-form {
  gap: 18px;
}

.wb-auth-form--register {
  gap: 20px;
}

.wb-auth-field__label {
  left: 23px;
  font-size: .78rem;
  font-weight: 500;
}

.wb-auth-modal .wb-ui-control {
  min-height: 62px;
  padding-left: 43px;
  border-width: 1.35px;
  border-radius: 15px;
  font-size: .94rem;
  font-weight: 500;
}

.wb-auth-modal .wb-ui-control::placeholder {
  font-weight: 600;
}

.wb-auth-modal .wb-ui-check {
  font-size: .78rem;
  font-weight: 500;
}

.wb-auth-modal .wb-ui-check .form-check-input {
  width: 17px;
  height: 17px;
  border-width: 1.35px;
}

.wb-auth-form__link {
  font-size: .78rem;
  font-weight: 500;
}

.wb-auth-form__submit,
.wb-auth-modal .wb-ui-submit {
  min-height: 51px;
  font-size: .93rem;
  font-weight: 600;
}

.wb-auth-form__submit {
  margin-top: 22px;
}

.wb-auth-form--register .wb-auth-form__submit {
  margin-top: 17px;
}

.wb-auth-social__title {
  font-size: .96rem;
  font-weight: 600;
}

.wb-auth-social-btn {
  min-height: 32px;
  font-size: .72rem;
  font-weight: 700;
}

@media (max-width: 575.98px) {
  .wb-auth-modal {
    --bs-modal-width: 100vw;
  }

  .wb-auth-modal__body {
    min-height: 100dvh;
    padding: 31px 30px 36px;
  }

  .wb-auth-modal__tabs {
    grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px !important;
  }

  .wb-auth-modal__tab {
    --bs-btn-padding-x: 6px;
    font-size: .76rem;
  }
}

@media (max-width: 390px) {
  .wb-auth-modal__body {
    padding-right: 20px;
    padding-left: 20px;
  }

  .wb-auth-modal__tab {
    font-size: .7rem;
  }
}

/* Финальная подгонка popup-форм под макеты UI kit. */
.wb-auth-modal {
  --bs-modal-width: 488px;
  font-family: var(--wb-font-base);
}

.wb-auth-modal .modal-dialog {
  max-width: var(--bs-modal-width);
}

.wb-auth-modal__content {
  border-radius: 16px;
  overflow: visible;
}

.wb-auth-modal__body {
  padding: 31px 30px 38px;
}

.wb-auth-modal__head {
  margin-bottom: 29px;
}

.wb-auth-modal__title {
  font-family: var(--wb-font-base) !important;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

.wb-auth-modal__close {
  top: auto;
  width: 29px;
  height: 29px;
}

.wb-auth-modal__tabs {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.02fr) minmax(0, 1fr);
  gap: 8px !important;
  width: 100%;
  margin-bottom: 30px;
}

.wb-auth-modal__tab {
  --bs-btn-padding-x: 8px;
  --bs-btn-padding-y: 0;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.wb-auth-modal__mascot {
  width: 124px;
  height: 124px;
  margin-bottom: 30px;
}

.wb-auth-modal__mascot-img {
  bottom: -14px;
  width: 118px;
}

.wb-auth-form {
  gap: 20px;
}

.wb-auth-form--register {
  gap: 24px;
}

.wb-auth-modal .wb-ui-control {
  min-height: 64px;
  padding: 0 52px 0 44px;
  border-width: 1.5px;
  border-radius: 16px;
  font-family: var(--wb-font-base) !important;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.2;
}

.wb-auth-modal .wb-ui-control::placeholder {
  color: #A9A9AE;
  font-weight: 600;
  opacity: 1;
}

.wb-auth-field__label {
  top: -8px;
  left: 23px;
  padding: 0 6px;
  color: #3E3E3E;
  font-family: var(--wb-font-base) !important;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.wb-auth-modal--labelled .wb-auth-field__label,
.wb-auth-field.is-filled .wb-auth-field__label,
.wb-auth-field.is-invalid .wb-auth-field__label {
  display: inline-flex;
}

.wb-auth-modal--labelled .wb-ui-control::placeholder,
.wb-auth-field.is-filled .wb-ui-control::placeholder,
.wb-auth-field.is-invalid .wb-ui-control::placeholder {
  color: transparent;
}

.wb-auth-field.is-invalid .wb-auth-field__label,
.wb-auth-field.is-invalid .wb-auth-field__error {
  color: #FF3838;
}

.wb-auth-field__error {
  margin: 8px 0 0 4px;
  font-size: .88rem;
  font-weight: 500;
}

.wb-auth-modal .wb-ui-control-icon {
  left: 18px;
  width: 18px;
  height: 18px;
}

.wb-auth-modal .wb-ui-control-icon img,
.wb-auth-modal .wb-ui-control-action img {
  display: block;
  width: 100%;
  height: 100%;
}

.wb-auth-modal .wb-ui-control-action {
  right: 17px;
  width: 24px;
  height: 24px;
}

.wb-auth-modal .wb-ui-check {
  gap: 9px;
  color: #4F4F4F;
  font-size: .82rem;
  font-weight: 500;
}

.wb-auth-modal .wb-ui-check .form-check-input {
  width: 18px;
  height: 18px;
  border-width: 1.5px;
}

.wb-auth-form__meta {
  margin-top: 0;
}

.wb-auth-form__link {
  font-size: .82rem;
  font-weight: 500;
}

.wb-auth-form__submit,
.wb-auth-modal .wb-ui-submit {
  min-height: 52px;
  border-radius: 15px;
  font-size: .95rem;
  font-weight: 600;
}

.wb-auth-form__submit {
  margin-top: 26px;
}

.wb-auth-form--register .wb-auth-form__submit {
  margin-top: 20px;
}

.wb-auth-social {
  margin-top: 31px;
}

.wb-auth-social__title {
  font-size: 1rem;
  font-weight: 600;
}

.wb-auth-social__list {
  gap: 17px;
}

.wb-auth-social-btn {
  width: 268px;
  min-height: 34px;
  font-size: .76rem;
  font-weight: 700;
}

.modal-backdrop {
  background-color: #5E344A;
}

.modal-backdrop.show {
  opacity: .66;
}

.wb-auth-modal.fade .modal-dialog,
.wb-popup-modal.fade .modal-dialog {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .22s ease, transform .22s ease;
}

.wb-auth-modal.show .modal-dialog,
.wb-auth-modal.modal-static .modal-dialog,
.wb-popup-modal.show .modal-dialog,
.wb-popup-modal.modal-static .modal-dialog {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 575.98px) {
  .wb-auth-modal {
    --bs-modal-width: 100vw;
  }

  .wb-auth-modal .modal-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  .wb-auth-modal__content {
    min-height: 100dvh;
    border-radius: 0;
    box-shadow: none;
  }

  .wb-auth-modal__body {
    min-height: 100dvh;
    padding: 31px 30px 40px;
  }

  .wb-auth-modal__tabs {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.02fr) minmax(0, 1fr);
    gap: 6px !important;
  }

  .wb-auth-modal__tab {
    --bs-btn-padding-x: 5px;
    font-size: .76rem;
  }
}

/* Контроль видимости текста в popup-формах после autofill/focus. */
.wb-auth-modal .wb-ui-control,
.wb-auth-modal .wb-ui-control:focus,
.wb-auth-modal .wb-ui-control:active {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  caret-color: #111;
  background-color: #fff !important;
  box-shadow: none;
}

.wb-auth-modal .wb-ui-control:-webkit-autofill,
.wb-auth-modal .wb-ui-control:-webkit-autofill:hover,
.wb-auth-modal .wb-ui-control:-webkit-autofill:focus,
.wb-auth-modal .wb-ui-control:-webkit-autofill:active {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 9999s ease-out 0s;
}

.wb-auth-modal .wb-ui-control::placeholder {
  color: #A9A9AE !important;
  -webkit-text-fill-color: #A9A9AE !important;
  opacity: 1;
}

.wb-auth-modal--labelled .wb-ui-control::placeholder,
.wb-auth-field.is-filled .wb-ui-control::placeholder,
.wb-auth-field.is-invalid .wb-ui-control::placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.wb-auth-field.is-invalid .wb-ui-control,
.wb-auth-field.is-invalid .wb-ui-control:focus {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  background-color: #fff !important;
}

/* Фикс mascot в авторизации: не подставлять соседние иллюстрации при смене focus. */
.wb-auth-modal__mascot {
  background: transparent;
}

.wb-auth-modal__mascot-img--default {
  top: 50%;
  bottom: auto;
  width: 124px;
  transform: translate(-50%, -50%);
}

.wb-auth-modal__mascot.is-error .wb-auth-modal__mascot-img--default {
  transform: translate(-50%, -50%) scale(.96);
}

/* Auth popup: corrected checkbox layout and password mascot states. */
.wb-auth-modal .wb-ui-check {
  display: flex;
  width: auto;
  min-width: 0;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.25;
}

.wb-auth-modal .wb-auth-form__checks .wb-ui-check {
  width: 100%;
}

.wb-auth-modal .wb-ui-check .form-check-input {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: -.08em;
}

.wb-auth-modal .wb-ui-check > span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
}

.wb-auth-modal__mascot-img--password-hidden,
.wb-auth-modal__mascot-img--password-visible {
  top: 50%;
  bottom: auto;
  width: 124px;
  transform: translate(-50%, -50%);
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state="password-hidden"] .wb-auth-modal__mascot-img--password-hidden,
.wb-auth-modal__mascot[data-wb-auth-mascot-state="password-visible"] .wb-auth-modal__mascot-img--password-visible {
  opacity: 1;
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state="password-hidden"] .wb-auth-modal__mascot-img--default,
.wb-auth-modal__mascot[data-wb-auth-mascot-state="password-visible"] .wb-auth-modal__mascot-img--default {
  opacity: 0;
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state="password-visible"] .wb-auth-modal__mascot-bubble {
  display: inline-flex;
}

/* Final auth popup fixes: checkbox alignment, eye toggle and mascot states from UI kit. */
.wb-auth-modal .wb-ui-check {
  align-items: center !important;
  gap: 10px !important;
  line-height: 1.2;
}

.wb-auth-modal .wb-ui-check .form-check-input,
.wb-auth-modal .wb-ui-check > input[type='checkbox'] {
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  margin: 0 !important;
}

.wb-auth-modal .wb-ui-check > span {
  display: block !important;
  line-height: 1.2;
}

.wb-auth-modal .wb-ui-control-action .wb-eye-visible,
.wb-auth-modal .wb-ui-control-action .wb-eye-hidden {
  display: none !important;
}

.wb-auth-modal .wb-ui-control-action:not(.is-active) .wb-eye-visible {
  display: block !important;
}

.wb-auth-modal .wb-ui-control-action.is-active .wb-eye-hidden {
  display: block !important;
}

.wb-auth-modal .wb-ui-control-action img {
  width: 24px !important;
  height: 24px !important;
  object-fit: contain;
}

.wb-auth-modal__mascot {
  background: transparent !important;
  overflow: visible;
}

.wb-auth-modal__mascot-img {
  top: 50% !important;
  left: 50% !important;
  bottom: auto !important;
  width: 124px !important;
  height: 124px !important;
  object-fit: contain;
  transform: translate(-50%, -50%) !important;
}

.wb-auth-modal__mascot:not([data-wb-auth-mascot-state]) .wb-auth-modal__mascot-img--default,
.wb-auth-modal__mascot[data-wb-auth-mascot-state='default'] .wb-auth-modal__mascot-img--default,
.wb-auth-modal__mascot[data-wb-auth-mascot-state='email'] .wb-auth-modal__mascot-img--default,
.wb-auth-modal__mascot[data-wb-auth-mascot-state='error'] .wb-auth-modal__mascot-img--default {
  opacity: 1 !important;
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state='password-hidden'] .wb-auth-modal__mascot-img--password-hidden {
  opacity: 1 !important;
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state='password-visible'] .wb-auth-modal__mascot-img--password-visible {
  opacity: 1 !important;
}

.wb-auth-modal__mascot[data-wb-auth-mascot-state='password-hidden'] .wb-auth-modal__mascot-img--default,
.wb-auth-modal__mascot[data-wb-auth-mascot-state='password-visible'] .wb-auth-modal__mascot-img--default {
  opacity: 0 !important;
}

.wb-auth-modal__mascot-bubble {
  display: none !important;
}


/* Попапы ЛК, выбора города и Telegram-кода. */
.modal-backdrop {
  z-index: 1190;
}

.modal {
  z-index: 1200;
}

.wb-popup-modal {
  --bs-modal-width: 486px;
  color: #111;
  font-family: var(--wb-font-base);
}

.wb-popup-modal .modal-dialog {
  max-width: var(--bs-modal-width);
}

.wb-popup-modal.fade .modal-dialog {
  opacity: 0;
  transform: scale(.96);
  transition: opacity .22s ease, transform .22s ease;
}

.wb-popup-modal.show .modal-dialog,
.wb-popup-modal.modal-static .modal-dialog {
  opacity: 1;
  transform: scale(1);
}

.wb-popup-modal__dialog--sm {
  --bs-modal-width: 364px;
}

.wb-popup-modal__dialog--location {
  --bs-modal-width: 456px;
}

.wb-popup-modal__dialog--telegram {
  --bs-modal-width: 488px;
}

.wb-popup-modal__dialog--reset,
.wb-popup-modal__dialog--arrival {
  --bs-modal-width: 489px;
}

.wb-popup-modal__dialog--reset-success {
  --bs-modal-width: 486px;
}

.wb-popup-modal__content {
  max-height: none;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .14);
  overflow: visible;
}

.wb-popup-modal__body {
  position: relative;
  padding: 34px 30px 30px;
}

.wb-popup-modal--confirm .wb-popup-modal__body {
  min-height: 406px;
}

.wb-popup-modal--cancel-order .wb-popup-modal__body {
  min-height: 250px;
}

.wb-popup-modal--message .wb-popup-modal__body {
  padding-top: 34px;
}

.wb-popup-modal__close {
  position: absolute;
  top: 31px;
  right: 31px;
  z-index: 3;
  width: 30px;
  height: 30px;
  color: #B0B0B0;
}

.wb-popup-modal__close:hover,
.wb-popup-modal__close:focus-visible {
  color: var(--wb-ui-pink);
}

.wb-popup-modal__title {
  margin: 0;
  padding-right: 40px;
  color: #111;
  font-size: 1.48rem;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.015em;
}

.wb-popup-modal__subtitle {
  margin: 0 0 18px;
  color: #111;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.wb-popup-modal__lead {
  margin: 12px 0 0;
  color: #555;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.35;
}

.wb-popup-modal__eyebrow {
  color: #111;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.2;
}

.wb-popup-modal__mascot {
  display: block;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
}

.wb-popup-modal__mascot--sad {
  width: 154px;
  height: 120px;
  margin: 25px auto 26px;
}

.wb-popup-modal__mascot--telegram {
  width: 150px;
  height: 134px;
  margin: 31px auto 26px;
}

.wb-popup-modal__mascot--reset {
  width: 142px;
  height: 122px;
  margin: 16px auto 24px;
  opacity: .95;
}

.wb-popup-modal__mascot--reset-success {
  width: 152px;
  height: 112px;
  margin: 16px auto 28px;
}

.wb-popup-modal__mascot--arrival {
  width: 154px;
  height: 124px;
  margin: 14px auto 24px;
}

.wb-popup-modal__actions {
  gap: 14px;
}

.wb-popup-modal__actions--inline {
  gap: 10px;
  margin-top: 13px;
}

.wb-popup-btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.1;
}

.wb-popup-btn--primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--wb-ui-pink);
  --bs-btn-border-color: var(--wb-ui-pink);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wb-ui-pink-strong);
  --bs-btn-hover-border-color: var(--wb-ui-pink-strong);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--wb-ui-pink-strong);
  --bs-btn-active-border-color: var(--wb-ui-pink-strong);
}

.wb-popup-btn--outline {
  --bs-btn-color: var(--wb-ui-pink);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--wb-ui-pink);
  --bs-btn-border-width: 1.5px;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--wb-ui-pink);
  --bs-btn-hover-border-color: var(--wb-ui-pink);
}

.wb-popup-btn:disabled,
.wb-popup-btn.disabled {
  color: #BDBDC2;
  border-color: #F7F7F7;
  background: #F7F7F7;
  opacity: 1;
}

.wb-popup-modal--city-confirm .wb-popup-modal__body {
  padding: 28px 20px 24px;
}

.wb-popup-modal--city-confirm .wb-popup-modal__title {
  font-size: 1.38rem;
  font-weight: 700;
}

.wb-popup-modal--city-confirm .wb-popup-btn {
  min-width: 110px;
  padding-right: 22px;
  padding-left: 22px;
}

.wb-popup-modal--city-confirm .wb-popup-btn--outline {
  min-width: 176px;
}

.wb-location-picker {
  position: relative;
}

.wb-location-picker__field {
  position: relative;
  display: block;
  margin: 0;
}

.wb-location-picker__floating-label {
  position: absolute;
  top: -8px;
  left: 28px;
  z-index: 3;
  display: none;
  padding: 0 5px;
  color: #6B6B6B;
  background: #fff;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1;
}

.wb-location-picker.is-selected .wb-location-picker__floating-label,
.wb-location-picker.is-open .wb-location-picker__floating-label {
  display: inline-flex;
}

.wb-location-picker__input {
  min-height: 63px;
  padding: 0 52px 0 46px;
  border: 1.5px solid #B5B5B5;
  border-radius: 15px;
  color: #111;
  font-size: .95rem;
  font-weight: 600;
}

.wb-location-picker__input::placeholder {
  color: #B0B0B0;
  opacity: 1;
}

.wb-location-picker__input:focus,
.wb-location-picker.is-open .wb-location-picker__input {
  border-color: var(--wb-ui-pink);
  box-shadow: none;
}

.wb-location-picker.is-open .wb-location-picker__input {
  border-bottom-color: transparent;
  border-radius: 15px 15px 0 0;
}

.wb-location-picker__icon,
.wb-location-picker__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
}

.wb-location-picker__icon {
  left: 20px;
  width: 17px;
  height: 20px;
  opacity: .55;
  pointer-events: none;
}

.wb-location-picker__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
}

.wb-location-picker__arrow {
  right: 18px;
  width: 22px;
  height: 22px;
  color: #A8A8A8;
}

.wb-location-picker.is-open .wb-location-picker__arrow {
  color: var(--wb-ui-pink);
  transform: translateY(-50%) rotate(180deg);
}

.wb-location-picker__examples {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
  color: #111;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.35;
}

.wb-location-picker.is-open .wb-location-picker__examples {
  display: none;
}

.wb-location-picker__examples button {
  color: var(--wb-ui-pink);
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wb-location-picker__submit {
  min-width: 122px;
  margin-top: 14px;
}

.wb-location-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  right: 0;
  left: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  max-height: 230px;
  padding: 8px 7px 10px;
  border: 1.5px solid var(--wb-ui-pink);
  border-radius: 0 0 14px 14px;
  background: #fff;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #BDBDBD transparent;
}

.wb-location-dropdown[hidden] {
  display: none !important;
}

.wb-location-dropdown::-webkit-scrollbar {
  width: 4px;
}

.wb-location-dropdown::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #BDBDBD;
}

.wb-location-dropdown__item {
  justify-content: flex-start;
  min-height: 31px;
  padding: 6px 12px;
  border-radius: 6px;
  color: #111;
  font-size: .95rem;
  font-weight: 500;
  text-align: left;
}

.wb-location-dropdown__item:hover,
.wb-location-dropdown__item:focus-visible,
.wb-location-dropdown__item.is-active {
  color: #111;
  background: #FBD4E4;
}

.wb-popup-modal--telegram .wb-popup-modal__body {
  padding: 33px 30px 42px;
}

.wb-telegram-code__label {
  color: #222;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
}

.wb-telegram-code__inputs {
  gap: 12px;
  margin-top: 21px;
}

.wb-telegram-code__input {
  width: 76px;
  height: 64px;
  padding: 0;
  border: 1.5px solid #B5B5B5;
  border-radius: 14px;
  color: #111;
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.wb-telegram-code__input::placeholder {
  color: #AFAFAF;
  opacity: 1;
}

.wb-telegram-code__input:focus {
  border-color: var(--wb-ui-pink);
  box-shadow: none;
}

.wb-telegram-code.is-invalid .wb-telegram-code__input {
  border-color: #FF3838;
}

.wb-telegram-code__error {
  margin: 12px 0 0;
  color: #FF3838;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.2;
}

.wb-telegram-code__submit {
  position: relative;
  width: 100%;
  margin-top: 41px;
}

.wb-telegram-code.is-invalid .wb-telegram-code__submit {
  margin-top: 40px;
}

.wb-telegram-code.is-loading .wb-telegram-code__submit > span:first-child {
  opacity: 0;
}

.wb-telegram-code__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  display: none;
  width: 19px;
  height: 19px;
  margin: -9.5px 0 0 -9.5px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wb-popup-spin .85s linear infinite;
}

.wb-telegram-code.is-loading .wb-telegram-code__spinner {
  display: block;
}

.wb-telegram-resend {
  margin-top: 18px;
  color: #9DA0AB;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.45;
}

.wb-telegram-resend__button {
  margin-top: 18px;
  color: var(--wb-ui-pink);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wb-telegram-resend__button:disabled {
  color: #BDBDBD;
  opacity: 1;
}

.wb-popup-modal--password-reset .wb-popup-modal__body,
.wb-popup-modal--arrival .wb-popup-modal__body {
  padding: 34px 31px 36px;
}

.wb-popup-modal--password-success .wb-popup-modal__body {
  padding: 34px 31px 32px;
}

.wb-popup-modal__success-text {
  margin: 18px 0 0;
  color: var(--wb-ui-pink);
  font-family: var(--wb-font-accent);
  font-size: 1.06rem;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.wb-popup-form {
  gap: 14px;
}

.wb-popup-field {
  position: relative;
  display: block;
  margin: 0 0 14px;
}

.wb-popup-field__label {
  position: absolute;
  top: -8px;
  left: 25px;
  z-index: 3;
  display: none;
  padding: 0 5px;
  color: #555;
  background: #fff;
  font-size: .82rem;
  font-weight: 500;
  line-height: 1;
}

.wb-popup-field.is-filled .wb-popup-field__label,
.wb-popup-field.is-invalid .wb-popup-field__label {
  display: inline-flex;
}

.wb-popup-field.is-filled .wb-popup-field__control::placeholder,
.wb-popup-field.is-invalid .wb-popup-field__control::placeholder {
  color: transparent;
}

.wb-popup-field__control {
  min-height: 64px;
  padding: 0 20px 0 45px;
  border: 1.5px solid #B5B5B5;
  border-radius: 15px;
  color: #111;
  font-size: .96rem;
  font-weight: 500;
}

.wb-popup-field__control::placeholder {
  color: #B0B0B0;
  opacity: 1;
}

.wb-popup-field__control:focus {
  border-color: var(--wb-ui-pink);
  box-shadow: none;
}

.wb-popup-field.is-invalid .wb-popup-field__control {
  border-color: #FF3838;
}

.wb-popup-field.is-invalid .wb-popup-field__label,
.wb-popup-field.is-invalid .wb-popup-field__error {
  color: #FF3838;
}

.wb-popup-field__icon {
  position: absolute;
  top: 32px;
  left: 18px;
  z-index: 2;
  width: 18px;
  height: 18px;
  color: #B0B0B0;
  transform: translateY(-50%);
}

.wb-popup-field__icon svg,
.wb-popup-field__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.wb-popup-field__error {
  display: block;
  margin: 10px 0 0;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.25;
}

.wb-popup-field__error[hidden] {
  display: none !important;
}

.wb-popup-user-badge {
  position: absolute;
  top: 118px;
  right: 32px;
  display: inline-flex;
  width: 51px;
  height: 28px;
  align-items: center;
  justify-content: flex-start;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
}

.wb-popup-user-badge span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-left: 3px;
  border-radius: 50%;
  color: #111;
  background: #FFD83D;
  font-size: .78rem;
  font-weight: 700;
}

.wb-popup-user-badge::after {
  content: '';
  width: 24px;
  height: 24px;
  margin-left: -4px;
  border: 2px solid #fff;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 38%, #D9E5F5 0 20%, transparent 21%),
    radial-gradient(circle at 50% 78%, #D9E5F5 0 34%, transparent 35%),
    #2B5278;
}

@keyframes wb-popup-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 575.98px) {
  .wb-popup-modal {
    --bs-modal-width: 100vw;
  }

  .wb-popup-modal .modal-dialog {
    width: 100%;
    max-width: none;
    min-height: 100%;
    margin: 0;
  }

  .wb-popup-modal__content {
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .wb-popup-modal__body {
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: center;
    padding-right: 24px;
    padding-left: 24px;
  }

  .wb-popup-modal__close {
    right: 24px;
  }

  .wb-popup-modal--city-confirm .wb-popup-modal__body,
  .wb-popup-modal--location .wb-popup-modal__body,
  .wb-popup-modal--message .wb-popup-modal__body,
  .wb-popup-modal--password-reset .wb-popup-modal__body,
  .wb-popup-modal--password-success .wb-popup-modal__body,
  .wb-popup-modal--arrival .wb-popup-modal__body {
    justify-content: flex-start;
    padding-top: 78px;
  }

  .wb-popup-modal--telegram .wb-popup-modal__body {
    justify-content: flex-start;
    padding-top: 76px;
  }

  .wb-popup-modal--cancel-order .wb-popup-modal__body {
    min-height: 100dvh;
  }

  .wb-telegram-code__inputs {
    gap: 10px;
  }

  .wb-telegram-code__input {
    width: 64px;
  }
}

@media (max-width: 390px) {
  .wb-popup-modal__title {
    font-size: 1.34rem;
  }

  .wb-telegram-code__inputs {
    gap: 7px;
  }

  .wb-telegram-code__input {
    width: 54px;
    height: 58px;
  }
}

/* Общая подложка и уточнение размеров popup. */
.modal-backdrop {
  background-color: #5E344A;
}

.modal-backdrop.show {
  opacity: .66;
}

.wb-popup-modal__title {
  font-weight: 700;
}

.wb-popup-btn {
  min-height: 51px;
  font-size: .93rem;
  font-weight: 600;
}

.wb-popup-field__control,
.wb-location-picker__input {
  min-height: 62px;
  border-width: 1.35px;
  font-weight: 500;
}

.wb-popup-field__control::placeholder,
.wb-location-picker__input::placeholder {
  font-weight: 600;
}

.wb-popup-field__label,
.wb-location-picker__floating-label {
  font-weight: 500;
}

/* Финальная подгонка popup выбора города и дополнительных состояний. */
.wb-popup-modal,
.wb-popup-modal__title,
.wb-popup-modal__subtitle,
.wb-popup-modal__eyebrow,
.wb-popup-modal__lead,
.wb-popup-btn,
.wb-location-picker,
.wb-location-picker__input,
.wb-location-picker__examples,
.wb-location-dropdown__item,
.wb-popup-field__control,
.wb-popup-field__label,
.wb-popup-field__error,
.wb-telegram-code,
.wb-telegram-resend {
  font-family: var(--wb-font-base) !important;
  letter-spacing: 0;
  text-transform: none;
}

.wb-popup-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.12;
}

.wb-popup-modal__subtitle {
  margin-bottom: 17px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
}

.wb-popup-modal__eyebrow {
  margin-bottom: 3px !important;
  font-size: .95rem;
  font-weight: 500;
}

.wb-popup-btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: .94rem;
  font-weight: 600;
}

.wb-popup-modal--city-confirm .wb-popup-modal__body {
  padding: 28px 20px 24px;
}

.wb-popup-modal--city-confirm .wb-popup-modal__title {
  padding-right: 0;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.05;
}

.wb-popup-modal--city-confirm .wb-popup-modal__actions--inline {
  flex-wrap: nowrap !important;
  margin-top: 15px;
}

.wb-popup-modal--city-confirm .wb-popup-btn {
  min-width: 110px;
  padding-right: 20px;
  padding-left: 20px;
}

.wb-popup-modal--city-confirm .wb-popup-btn--outline {
  min-width: 176px;
}

.wb-popup-modal--location .wb-popup-modal__body {
  min-height: 226px;
  padding: 28px 20px 24px;
}

.wb-popup-modal__dialog--location {
  --bs-modal-width: 456px;
}

.wb-location-picker {
  min-height: 148px;
}

.wb-location-picker__floating-label {
  top: -8px;
  left: 28px;
  font-size: .82rem;
  font-weight: 500;
}

.wb-location-picker__input {
  min-height: 64px;
  padding: 0 52px 0 46px;
  border-width: 1.5px;
  border-radius: 15px;
  font-size: .95rem;
  font-weight: 500;
}

.wb-location-picker__input::placeholder {
  color: #A9A9AE;
  font-weight: 600;
}

.wb-location-picker.is-selected .wb-location-picker__input::placeholder,
.wb-location-picker.is-open .wb-location-picker__input::placeholder {
  color: transparent;
}

.wb-location-picker__examples {
  min-height: 46px;
  margin-top: 9px;
  font-size: .94rem;
  font-weight: 500;
  line-height: 1.45;
}

.wb-location-picker.is-open .wb-location-picker__examples {
  display: flex;
  visibility: hidden;
}

.wb-location-picker__submit {
  min-width: 122px;
  margin-top: 0;
}

.wb-location-picker.is-open .wb-location-picker__submit {
  visibility: hidden;
  pointer-events: none;
}

.wb-location-dropdown {
  top: 63px;
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 220px;
  padding: 8px 7px 10px;
  border-width: 1.5px;
  border-radius: 0 0 14px 14px;
  box-shadow: none;
}

.wb-location-dropdown__item {
  min-height: 31px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: .95rem;
  font-weight: 500;
}

.wb-popup-field__label {
  display: inline-flex;
  color: #3E3E3E;
  font-size: .82rem;
  font-weight: 500;
}

.wb-popup-field__control::placeholder {
  color: transparent;
}

.wb-popup-field__control {
  min-height: 64px;
  border-width: 1.5px;
  font-size: .96rem;
  font-weight: 500;
}

.wb-popup-field__error {
  font-size: .92rem;
  font-weight: 500;
}

.wb-telegram-code__label,
.wb-telegram-resend,
.wb-telegram-resend__button {
  font-family: var(--wb-font-base) !important;
}

@media (max-width: 575.98px) {
  .wb-popup-modal__body {
    min-height: 100dvh;
  }

  .wb-popup-modal--city-confirm .wb-popup-modal__body,
  .wb-popup-modal--location .wb-popup-modal__body,
  .wb-popup-modal--message .wb-popup-modal__body,
  .wb-popup-modal--password-reset .wb-popup-modal__body,
  .wb-popup-modal--password-success .wb-popup-modal__body,
  .wb-popup-modal--arrival .wb-popup-modal__body,
  .wb-popup-modal--telegram .wb-popup-modal__body {
    min-height: 100dvh;
    justify-content: flex-start;
    padding-top: 76px;
  }

  .wb-location-dropdown {
    top: 63px;
  }
}

/* Контроль инпутов и раскрытого dropdown выбора города. */
.wb-popup-field__control,
.wb-popup-field__control:focus,
.wb-location-picker__input,
.wb-location-picker__input:focus {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  caret-color: #111;
  background-color: #fff !important;
  box-shadow: none;
}

.wb-popup-field__control:-webkit-autofill,
.wb-popup-field__control:-webkit-autofill:hover,
.wb-popup-field__control:-webkit-autofill:focus,
.wb-location-picker__input:-webkit-autofill,
.wb-location-picker__input:-webkit-autofill:hover,
.wb-location-picker__input:-webkit-autofill:focus {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 9999s ease-out 0s;
}

.wb-popup-field__control::placeholder,
.wb-location-picker__input::placeholder {
  color: #A9A9AE !important;
  -webkit-text-fill-color: #A9A9AE !important;
  opacity: 1;
}

.wb-popup-field__label + .wb-popup-field__icon + .wb-popup-field__control::placeholder,
.wb-location-picker.is-selected .wb-location-picker__input::placeholder,
.wb-location-picker.is-open .wb-location-picker__input::placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

.wb-location-picker.is-open .wb-location-picker__field {
  z-index: 31;
}

.wb-location-picker.is-open .wb-location-picker__input {
  border-color: var(--wb-ui-pink);
  border-bottom-color: transparent;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.wb-location-picker.is-open .wb-location-picker__arrow {
  color: var(--wb-ui-pink);
}

.wb-location-dropdown {
  top: calc(100% - 1.5px) !important;
  border-top: 0;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
}

.wb-location-dropdown__item {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

/* Popup mascot images are cropped assets from the UI kit; keep them contained in the designed boxes. */
.wb-popup-modal__mascot--reset,
.wb-popup-modal__mascot--reset-success,
.wb-popup-modal__mascot--arrival,
.wb-popup-modal__mascot--telegram,
.wb-popup-modal__mascot--sad {
  object-fit: contain;
}



/* MODX/SendIt bindings for layout auth forms. */
.wb-auth-form [data-si-error]:empty,
.wb-popup-form [data-si-error]:empty,
.wb-auth-form [data-wb-auth-form-error]:empty,
.wb-popup-form [data-wb-popup-error]:empty {
  display: none !important;
}

.wb-auth-form [data-wb-auth-form-error],
.wb-popup-form [data-wb-popup-error] {
  color: #ff3838;
  font-family: var(--wb-font-base);
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  margin: -4px 0 0;
}

.wb-icon-btn__badge:empty,
.wb-icon-btn__badge[data-favorites-count="0"],
.wb-icon-btn__badge[data-ms3-mini-cart-count="0"] {
  display: none;
}

/* WB_SENDIT_NOTIFY_TOAST_ONLY_GLOBAL_ERRORS */
[data-si-toast-error] {
    display: none !important;
}


/* Telegram Gateway auth modal integration. */
.wb-telegram-phone {
  gap: 16px;
  margin-top: 22px;
}

.wb-telegram-phone .wb-ui-control-field {
  margin-bottom: 0;
}

.wb-telegram-phone__hint {
  color: rgba(58, 47, 43, .65);
  font-size: 14px;
}

.wb-telegram-change-phone {
  justify-self: center;
  margin-top: 12px;
}

.wb-telegram-phone.is-loading .wb-telegram-code__submit > span:first-child {
  opacity: 0;
}

.wb-telegram-phone.is-loading .wb-telegram-code__spinner {
  opacity: 1;
}

/* wb-yandex-auth:start */
/* wb-yandex-auth */
.wb-auth-social__list {
    justify-items: center;
}

.wb-auth-social-btn--yandex {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    text-decoration: none;
}

.wb-auth-social-btn--yandex:hover,
.wb-auth-social-btn--yandex:focus {
    text-decoration: none;
}

.wb-auth-social-btn--yandex .wb-auth-social-btn__brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 1.35rem;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: #fc3f1d;
    color: #fff;
    font-weight: 800;
    line-height: 1;
}

.wb-auth-social-btn--yandex span:not(.wb-auth-social-btn__brand) {
    min-width: 0;
    flex: 1 1 auto;
}
/* wb-yandex-auth:end */
