@font-face {
  font-family: "Gilroy";
  src: url("./assets/admin-gilroy-light.woff") format("woff");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("./assets/admin-gilroy-regular.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("./assets/admin-gilroy-medium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Gilroy";
  src: url("./assets/admin-gilroy-bold.woff") format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --gmb-color-primary: #26b99a;
  --gmb-color-primary-hover: #169f85;
  /* Сегодня совпадает с акцентом, но остаётся своим токеном: ссылку в тексте
     может понадобиться отличить от кнопки, не перекрашивая кнопки. */
  --gmb-color-link: #26b99a;
  --gmb-color-link-hover: #169f85;
  --gmb-color-title: #3a3a3a;
  --gmb-color-text: #2b3134;
  --gmb-color-muted: #999999;
  --gmb-color-page: #f7f7f7;
  --gmb-color-surface: #ffffff;
  --gmb-color-border: #b0bac3;
  --gmb-color-border-hover: #858c92;
  --gmb-color-divider: #e8e8e8;
  --gmb-color-error: #ff5252;
  /* Billing status variants: these are not the form validation/alert palette. */
  --gmb-color-status-danger: #e30611;
  --gmb-color-status-warning: #fbb744;
  --gmb-font-heading: "Gilroy", "HelveticaNeue", Helvetica, Arial, sans-serif;
  --gmb-font-body: Arial, "HelveticaNeue", Helvetica, sans-serif;
  --gmb-radius-control: 8px;
  --gmb-radius-button: 4px;
  color: var(--gmb-color-text);
  background: var(--gmb-color-page);
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-synthesis: none;
}

/* Billing status-NI2LBV: dot, not a pill or a colored text label. */
.gmb-status { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 2px; color: #555; font: 400 13px/17px var(--gmb-font-body); cursor: default; }
.gmb-status__dot { display: block; flex: 0 0 12px; width: 12px; height: 12px; border-radius: 50%; background: #60728b; }
.gmb-status--success .gmb-status__dot { background: #26b99a; }
.gmb-status--danger .gmb-status__dot { background: var(--gmb-color-status-danger); }
.gmb-status--warning .gmb-status__dot { background: var(--gmb-color-status-warning); }
.gmb-status--na .gmb-status__dot { background: #b0bac3; }

/* Order-count mechanic: source overrides MDI with the original white SVG. */
.gmb-checkbox-group { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.gmb-checkbox-group__title { margin-bottom: 8px; padding: 0; color: #2b3134; font: 700 13px/17px var(--gmb-font-heading); }
.gmb-checkbox { position: relative; display: inline-flex; align-items: flex-start; width: fit-content; gap: 8px; margin: 0; cursor: pointer; color: #3a3a3a; font: 500 13px/17px var(--gmb-font-heading); }
.gmb-checkbox__input { position: absolute; top: 0; left: 0; width: 16px; height: 16px; margin: 0; opacity: 0; }
.gmb-checkbox__box { display: block; flex: 0 0 16px; width: 16px; height: 16px; border: 1px solid #b0bac3; border-radius: 2px; background: #fff; }
.gmb-checkbox:hover .gmb-checkbox__box { border-color: #26b99a; }
.gmb-checkbox__input:checked + .gmb-checkbox__box { border-color: #26b99a; background: #26b99a url('./assets/checkbox-check.svg') center no-repeat; }
.gmb-checkbox__input:indeterminate + .gmb-checkbox__box { border-color: #26b99a; background: #26b99a url('./assets/checkbox-minus.svg') center no-repeat; }
.gmb-checkbox:has(.gmb-checkbox__input:disabled) { opacity: .35; cursor: default; }
.gmb-checkbox:has(.gmb-checkbox__input:disabled):hover .gmb-checkbox__box { border-color: #b0bac3; }
.gmb-checkbox:has(.gmb-checkbox__input:disabled:checked):hover .gmb-checkbox__box { border-color: #26b99a; }
/* Accessible keyboard focus is a local addition, not the source's ripple. */
.gmb-checkbox__input:focus-visible + .gmb-checkbox__box { outline: 2px solid #26b99a; outline-offset: 2px; }
.gmb-checkbox__content { display: flex; flex-direction: column; min-width: 0; }
.gmb-checkbox__hint { margin-top: 4px; color: #999; font: 400 13px/17px var(--gmb-font-body); }

@font-face {
  font-family: "GMB Icons";
  src: url("./assets/gmb-icons.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "GMB Wallet";
  src: url("./assets/wallet-sf-pro-light.woff") format("woff");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "GMB Wallet"; src: url("./assets/wallet-sf-pro-bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* Снято с loyalty/mechanics: это сетка разделов механик, не универсальные KPI. */
.gmb-mechanics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.gmb-mechanic { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid #eaedf1; border-radius: 8px; background: #fff; }
.gmb-mechanic__icon { width: 64px; height: 64px; flex: 0 0 64px; }
.gmb-mechanic__body { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.gmb-mechanic__heading { display: flex; align-items: flex-start; }
.gmb-mechanic__title { margin: 0; padding-right: 32px; font: 700 16px/normal var(--gmb-font-heading); }
.gmb-mechanic__title a { color: #2b3134; }
.gmb-mechanic__title a::after { position: absolute; inset: 0; border-radius: 8px; content: ""; }
.gmb-mechanic__title a:focus-visible::after { outline: 2px solid var(--gmb-color-primary); outline-offset: 2px; }
.gmb-mechanic__description { margin: 0; color: #555; font: 400 13px/17px var(--gmb-font-body); }
.gmb-mechanic__badge { margin-right: 8px; padding: 2px 4px; border-radius: 4px; background: #f70; color: #fff; font: 700 10px/15px Arial, sans-serif; }
.gmb-mechanic__switch { position: absolute; top: 10px; right: 10px; z-index: 1; }
.gmb-mechanic--disabled { opacity: .7; }
.gmb-mechanic--disabled .gmb-mechanic__title a { pointer-events: none; }

/* Оригинальные вкладки newsletter/list. Красное подчёркивание — не акцент кнопок. */
.gmb-tabs { display: flex; align-items: center; padding-bottom: 1px; overflow-x: auto; box-shadow: inset 0 -1px #e4e1e1; }
.gmb-tabs__tab { position: relative; flex-shrink: 0; margin: 0 40px 0 0; padding: 0 0 10px; border: 0; background: none; color: #555; font: 300 14px/normal var(--gmb-font-body); white-space: nowrap; cursor: pointer; }
.gmb-tabs__tab:last-child { margin-right: 0; }
.gmb-tabs__tab[aria-selected="true"] { cursor: default; }
.gmb-tabs__tab[aria-selected="true"]::after { position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background: #e30611; content: ""; }
.gmb-tabs__tab:focus-visible { outline: 2px solid var(--gmb-color-primary); outline-offset: -2px; }
.gmb-tabs__tab:disabled { opacity: .3; cursor: default; }
.gmb-tab-panel { margin-top: 24px; }
.gmb-alert { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 16px 4px; border-radius: 8px; background: #33afe7; color: #fff; }
.gmb-alert::before { position: absolute; top: 0; bottom: 0; left: 0; width: 6px; border: 3px solid #fff; border-radius: 8px 0 0 8px; opacity: .26; content: ""; pointer-events: none; }
.gmb-alert--error { background: #ff5252; }
.gmb-alert__icon { flex: 0 0 24px; width: 24px; height: 24px; font: 400 24px/24px "GMB Icons"; }
.gmb-alert__icon::before { content: "\F002A"; }
.gmb-alert__text { flex: 1; margin: 5px 0; font: 700 13px/15.6px var(--gmb-font-heading); }

/* infobox с исходной лампочкой. Высота content-box 40 + padding/border = 58. */
.gmb-advice { position: relative; display: flex; align-items: center; gap: 8px; min-height: 58px; margin: 16px 0; padding: 8px; border: 1px solid #eaedf1; border-radius: 8px; background: #fff; color: #000; }
.gmb-advice__icon { flex: 0 0 48px; width: 48px; height: 48px; background: url("./assets/advice-bulb.svg") center no-repeat; }
.gmb-advice__text { margin: 0; font: 400 13px/17px var(--gmb-font-body); }
.gmb-advice__text a { text-decoration: underline; }

/* Tree multiselect из actions/edit/18: чипы, группы, поиск, удаление. */
.gmb-products { position: relative; max-width: 465px; font: 400 13px/1.8 var(--gmb-font-body); }
.gmb-products__control { display: flex; align-items: center; min-height: 36px; padding: 0 5px; border: 1px solid #b0bac3; border-radius: 8px; background: #fff; }
.gmb-products__control:hover { border-color: #858c92; }
.gmb-products:focus-within .gmb-products__control { border-color: #26b99a; }
.gmb-products[data-open] .gmb-products__control { border-radius: 8px 8px 0 0; border-color: #26b99a; }
.gmb-products__values { display: flex; flex: 1; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; padding: 4px 0; }
.gmb-products__chip { display: inline-flex; align-items: center; max-width: 100%; padding: 2px 0; border: 1px solid transparent; border-radius: 4px; background: #ededed; font-size: 12px; line-height: 18px; }
.gmb-products__chip span { padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmb-products__remove { padding: 0 5px; border: 0; border-left: 1px solid #fff; background: none; color: #839096; font-size: 14px; line-height: 18px; cursor: pointer; }
.gmb-products__remove:hover { color: #2b3134; }
.gmb-products__input { flex: 1; width: 5px; min-width: 40px; height: 24px; padding: 0 5px; border: 0; outline: none; background: transparent; font: inherit; }
.gmb-products__input:only-child { min-width: 180px; }
.gmb-products__toggle,.gmb-products__clear { flex-shrink: 0; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.gmb-products__toggle { color: rgb(0 0 0 / 54%); font: 400 24px/24px "GMB Icons"; }
.gmb-products__toggle::before { content: "\F0140"; display: block; transition: transform .3s; }
.gmb-products[data-open] .gmb-products__toggle::before { color: #26b99a; transform: rotate(180deg); }
.gmb-products__clear { color: #ccc; font-size: 16px; }
.gmb-products__menu { position: absolute; top: 100%; left: 0; z-index: 10; width: 100%; max-height: 300px; margin-top: -1px; padding: 5px 0; overflow: auto; border: 1px solid #b0bac3; border-top: 0; border-radius: 0 0 8px 8px; background: #fff; box-shadow: inset 0 1px #b0bac3; }
.gmb-products__group { display: flex; align-items: center; padding: 0 5px; }
.gmb-products__group button { padding: 0 5px; border: 0; background: none; color: #839096; cursor: pointer; }
.gmb-products__option { display: flex; align-items: center; gap: 5px; padding: 0 5px 0 25px; color: #384452; cursor: pointer; }
.gmb-products__option:hover,.gmb-products__option:focus-within,.gmb-products__group:hover { background: #bce9e0; }
.gmb-products input[type="checkbox"] { appearance: none; flex: 0 0 16px; width: 16px; height: 16px; margin: 0 2px; border: 1px solid #ccc; border-radius: 2px; background: #fff; cursor: pointer; }
.gmb-products input[type="checkbox"]:checked { border-color: #26b99a; background: #26b99a; }
.gmb-products input[type="checkbox"]:indeterminate { border-color: #26b99a; background: #26b99a; }
.gmb-products input[type="checkbox"]:indeterminate::after { display: block; color: #fff; text-align: center; font: 700 12px/14px Arial, sans-serif; content: "−"; }
.gmb-products input[type="checkbox"]:checked::after { display: block; color: #fff; font: 400 14px/14px "GMB Icons"; content: "\F012C"; }
.gmb-products input[type="checkbox"]:focus-visible { outline: 2px solid #26b99a; outline-offset: 2px; }
.gmb-products__empty { margin: 0; padding: 5px 10px; color: #999; }

/* Самостоятельный Wallet-preview, без связи с исходным iframe/API. */
.gmb-wallet-preview { position: relative; width: 298px; max-width: calc(100% - 56px); margin: 0 auto; }
.gmb-wallet-preview__title { margin: 0; color: #777; font: 300 14px/normal var(--gmb-font-body); }
.gmb-wallet-card { position: relative; display: flex; flex-direction: column; height: 438px; margin: 15px 0; padding-bottom: 12px; overflow: hidden; border-radius: 12px; background: #e0e6ff; color: #000; box-shadow: 0 0 15px rgb(0 0 0 / 10%); font: 300 16px/normal "GMB Wallet", Helvetica, sans-serif; }
.gmb-wallet-card__head { position: relative; top: 8px; flex: 0 0 55px; padding: 0 15px; }
.gmb-wallet-card__logo { position: absolute; width: 80%; height: 39px; background: url("./assets/wallet-logo.png") left center / contain no-repeat; }
.gmb-wallet-card__header-value { position: absolute; right: 15px; height: 45px; text-align: right; font-size: 11px; line-height: 12px; }
.gmb-wallet-card__strip { flex: 0 0 117px; padding: 15px; background: url("./assets/wallet-strip.png") center / cover no-repeat; }
.gmb-wallet-card__points { display: flex; align-items: center; padding: 10px 15px; }
.gmb-wallet-card__entry { width: 50%; }
.gmb-wallet-card__entry:last-child { text-align: right; }
.gmb-wallet-card__label { font-size: 10px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.gmb-wallet-card__value { font-size: 28px; }
.gmb-wallet-card__qr { width: 140px; height: 142px; flex: 0 0 142px; margin: auto auto 0; border-radius: 5px; background: #fff url("./assets/wallet-qr.svg") center 12px / 85% auto no-repeat; }
.gmb-wallet-preview__markers { position: absolute; inset: 0; pointer-events: none; }
.gmb-wallet-preview__marker { position: absolute; z-index: 1; width: 28px; height: 24px; }
.gmb-wallet-preview__marker--1 { top: 38px; left: 100%; background: url("./assets/wallet-marker-1.svg") center no-repeat; }
.gmb-wallet-preview__marker--2 { top: 140px; left: -28px; background: url("./assets/wallet-marker-2.svg") center no-repeat; }
.gmb-wallet-preview__marker--3 { top: 225px; left: -28px; background: url("./assets/wallet-marker-3.svg") center no-repeat; }
.gmb-wallet-preview__marker--4 { top: 225px; left: 100%; background: url("./assets/wallet-marker-4.svg") center no-repeat; }
.gmb-wallet-preview__controls { display: flex; justify-content: space-between; gap: 10px; }
.gmb-wallet-preview__controls .gmb-button { flex: 1; padding-left: 0; padding-right: 0; }
.gmb-wallet-card__back { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; width: 514px; height: 754px; padding: 30px; overflow: auto; border-radius: 17px; background: #f3f2f8; transform: scale(.6); transform-origin: left top; font: 300 16px/normal "GMB Wallet", Helvetica, sans-serif; }
.gmb-wallet-card__back-head { display: flex; flex-direction: column; justify-content: center; padding: 40px 0 65px; }
.gmb-wallet-card__back-head img { display: block; width: 197px; height: 138px; margin: 0 auto 25px; border-radius: 20px 20px 0 0; box-shadow: 0 0 20px rgb(0 0 0 / 20%); }
.gmb-wallet-card__back-title { text-align: center; font-size: 28px; font-weight: 700; }
.gmb-wallet-card__back-item { display: flex; align-items: center; min-height: 88px; margin-bottom: 70px; padding: 13px 30px; border-radius: 24px; background: #fff; font-size: 24px; }
.gmb-wallet-card__back-hint { margin: -50px 0 50px; padding: 0 30px; color: #78777d; font-size: 20px; }
.gmb-wallet-card__back-delete { color: #ee4727; }
.gmb-wallet-card__back-empty { height: 40px; border-radius: 24px; background: #fff; }
.gmb-wallet-card__back-switch { flex: 0 0 101px; width: 101px; height: 62px; margin-left: auto; border-radius: 30px; background: #34c85a; box-shadow: inset 0 0 3px rgb(0 0 0 / 33%); }
.gmb-wallet-card__back-switch::after { display: block; width: 54px; height: 54px; margin: 4px 3px 4px auto; border-radius: 50%; background: #fff; box-shadow: -1px 0 1px rgb(0 0 0 / 23%); content: ""; }
.gmb-products [hidden], .gmb-newsletter-demo [hidden], .gmb-wallet-demo [hidden] { display: none !important; }
@media (max-width: 700px) {
  .gmb-mechanics { grid-template-columns: minmax(0, 1fr); }
  .gmb-tabs__tab { margin-right: 20px; }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  background: var(--gmb-color-page);
}

body {
  color: var(--gmb-color-text);
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* Ссылка внутри текста.
   Без этого правила ссылки оставались браузерно-синими и выбивались из
   набора — в подсказках полей и описаниях секций это заметно сразу.
   Подчёркивание появляется при наведении: в плотном тексте подсказок
   постоянная линия рябит, а цвета для различения хватает. */
a {
  color: var(--gmb-color-link);
  text-decoration: none;
}

a:hover {
  color: var(--gmb-color-link-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid rgb(38 185 154 / 24%);
  outline-offset: 2px;
  border-radius: 2px;
}

.gmb-page {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
  padding: 0 0 12px;
}

.gmb-page--inset {
  padding: 10px 20px 24px;
}

.gmb-back {
  display: inline-flex;
  width: fit-content;
  height: 28px;
  margin: 0 0 16px;
  padding: 4px 0 0;
  align-items: center;
  border: 0;
  border-radius: var(--gmb-radius-button);
  color: var(--gmb-color-primary);
  background: transparent;
  cursor: pointer;
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

.gmb-back:hover {
  color: var(--gmb-color-primary-hover);
}

.gmb-back:focus-visible,
.gmb-button:focus-visible,
.gmb-switch__input:focus-visible + .gmb-switch__track {
  outline: 3px solid rgb(38 185 154 / 24%);
  outline-offset: 2px;
}

.gmb-back__icon {
  width: 18px;
  height: 18px;
  margin: 0 8px 0 -4px;
  flex: 0 0 auto;
}

.gmb-page__title {
  display: flex;
  min-width: 0;
  min-height: 40px;
  margin: 0 0 16px;
  align-items: center;
  color: var(--gmb-color-title);
  font-family: var(--gmb-font-heading);
  font-size: 34px;
  font-weight: 700;
  line-height: 40px;
}

.gmb-section {
  min-width: 0;
}

.gmb-section + .gmb-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gmb-color-divider);
}

.gmb-section--bounded {
  width: 100%;
  max-width: 1040px;
}

.gmb-section--plain.gmb-section {
  margin-top: 24px;
  padding-top: 0;
  border-top: 0;
}

.gmb-section__title {
  margin: 0 0 4px;
  color: var(--gmb-color-text);
  font-family: var(--gmb-font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
}

.gmb-section__description {
  margin: 0 0 8px;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

/* content/actions/edit/20: форма и контекстный Push-предпросмотр. */
.gmb-push-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; align-items: start; margin-top: 16px; }
.gmb-push-editor .gmb-field { margin-bottom: 0; }
.gmb-push-editor .gmb-textarea { min-height: 100px; height: 100px; line-height: 16.9px; }
.gmb-push-details { display: flex; justify-content: space-between; gap: 8px; padding: 5px 2px 0; min-height: 19px; }
.gmb-push-details .gmb-field__hint { flex: 1; margin: 0; }
.gmb-push-counter { flex-shrink: 0; color: rgb(0 0 0 / 60%); font: 500 12px/12px var(--gmb-font-body); }
.gmb-push-preview__label { margin: 0 0 5px; color: #2b2b2b; font: 700 13px/19.123px var(--gmb-font-heading); }
.gmb-push-preview__card { box-sizing: border-box; display: flex; align-items: flex-start; position: relative; width: 320px; max-width: 100%; min-height: 72px; padding: 18px; border-radius: 10px; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 10%); }
.gmb-push-preview__icon { flex-shrink: 0; width: 36px; height: 36px; margin-right: 23px; border-radius: 10px; background: #c4c4c4; }
.gmb-push-preview__content { min-width: 0; overflow-wrap: anywhere; }
.gmb-push-preview__title { margin: 0 0 5px; color: #2b3134; font: 700 13px/16px var(--gmb-font-heading); }
.gmb-push-preview__text { margin: 0; color: #2b3134; white-space: pre-wrap; font: 300 12px/14px var(--gmb-font-body); }
.gmb-push-demo[data-disabled] .gmb-push-layout { opacity: .4; }
@media (max-width: 767px) { .gmb-push-layout { gap: 24px; grid-template-columns: minmax(0, 1fr); } }

.gmb-settings-layout {
  display: grid;
  width: 100%;
  max-width: 1040px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 80px;
}

.gmb-form-column {
  width: min(100%, 480px);
}

.gmb-field {
  margin: 0 0 16px;
}

.gmb-field__label {
  display: block;
  margin: 0 0 4px;
  color: var(--gmb-color-title);
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
}

.gmb-field__hint {
  margin: 4px 0 0;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

.gmb-input {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--gmb-color-border);
  border-radius: var(--gmb-radius-control);
  outline: 0;
  color: rgb(0 0 0 / 87%);
  background: var(--gmb-color-surface);
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gmb-input:hover:not(:disabled) {
  border-color: var(--gmb-color-border-hover);
}

.gmb-input:focus {
  border-color: var(--gmb-color-primary);
  box-shadow: 0 0 0 3px rgb(38 185 154 / 12%);
}

.gmb-input:disabled {
  cursor: default;
  color: rgb(0 0 0 / 38%);
  background: rgb(0 0 0 / 4%);
}

.gmb-input[aria-invalid="true"] {
  border-color: var(--gmb-color-error);
}

.gmb-textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 10px 12px;
  resize: vertical;
  border: 1px solid var(--gmb-color-border);
  border-radius: var(--gmb-radius-control);
  outline: 0;
  color: rgb(0 0 0 / 87%);
  background: var(--gmb-color-surface);
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gmb-textarea:hover:not(:disabled) {
  border-color: var(--gmb-color-border-hover);
}

.gmb-textarea:focus {
  border-color: var(--gmb-color-primary);
  box-shadow: 0 0 0 3px rgb(38 185 154 / 12%);
}

.gmb-field__error {
  min-height: 14px;
  margin: 4px 0 0;
  color: var(--gmb-color-error);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

.gmb-switch {
  display: inline-flex;
  min-height: 28px;
  margin: 0 0 16px;
  align-items: center;
  color: var(--gmb-color-title);
  cursor: pointer;
  user-select: none;
}

.gmb-switch__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.gmb-switch__track {
  position: relative;
  width: 33px;
  height: 20px;
  flex: 0 0 33px;
  border-radius: 14px;
  background: rgb(0 0 0 / 12%);
  transition: background-color 160ms ease;
}

.gmb-switch__track::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gmb-color-surface);
  content: "";
  transition: transform 160ms ease;
}

.gmb-switch__input:checked + .gmb-switch__track {
  background: var(--gmb-color-primary);
}

.gmb-switch__input:checked + .gmb-switch__track::after {
  transform: translateX(13px);
}

.gmb-switch__input:disabled + .gmb-switch__track,
.gmb-switch__input:disabled ~ .gmb-switch__label {
  opacity: 0.42;
  cursor: default;
}

.gmb-switch__label {
  margin-left: 10px;
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  transform: translateY(2px);
}

.gmb-switch-field {
  margin: 0 0 16px;
}

.gmb-switch-field .gmb-switch {
  display: flex;
  width: fit-content;
  margin-bottom: 0;
}

.gmb-switch-field__hint {
  margin: 0;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

.gmb-radio-group {
  min-width: 0;
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.gmb-radio-group__title {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  color: var(--gmb-color-text);
  font-family: var(--gmb-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

.gmb-radio-group__options {
  display: grid;
  padding-left: 4px;
  gap: 8px;
}

.gmb-radio {
  position: relative;
  display: grid;
  width: fit-content;
  max-width: 100%;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 10px;
  cursor: pointer;
}

.gmb-radio__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.gmb-radio__control {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  align-items: center;
  justify-content: center;
  border: 2px solid #777777;
  border-radius: 50%;
  background: transparent;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.gmb-radio__control::after {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gmb-color-primary);
  content: "";
  transform: scale(0);
  transition: transform 120ms ease;
}

.gmb-radio__input:checked + .gmb-radio__control {
  border-color: var(--gmb-color-primary);
}

.gmb-radio__input:checked + .gmb-radio__control::after {
  transform: scale(1);
}

.gmb-radio__input:focus-visible + .gmb-radio__control {
  box-shadow: 0 0 0 3px rgb(38 185 154 / 24%);
}

.gmb-radio__content {
  display: block;
  min-width: 0;
}

.gmb-radio__label {
  display: block;
  color: var(--gmb-color-title);
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
}

.gmb-radio__hint {
  display: block;
  max-width: 420px;
  margin-top: 2px;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.gmb-radio:hover .gmb-radio__control {
  border-color: var(--gmb-color-border-hover);
}

.gmb-radio:hover .gmb-radio__input:checked + .gmb-radio__control {
  border-color: var(--gmb-color-primary-hover);
}

.gmb-radio__input:disabled ~ .gmb-radio__control,
.gmb-radio__input:disabled ~ .gmb-radio__content {
  opacity: 0.38;
}

.gmb-radio:has(.gmb-radio__input:disabled) {
  cursor: default;
}

.gmb-upload {
  margin: 0 0 16px;
}

.gmb-upload__label {
  display: block;
  min-height: 0;
  margin: 0 0 4px;
  color: var(--gmb-color-title);
  cursor: default;
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 17px;
}

.gmb-upload__items {
  display: flex;
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.gmb-upload__dropzone,
.gmb-upload__preview {
  width: 200px;
  height: 170px;
  flex: 0 0 200px;
  border-radius: var(--gmb-radius-control);
  background: var(--gmb-color-surface);
}

.gmb-upload__dropzone {
  position: relative;
  display: block;
  margin: 0 0 5px;
  border: 1px dashed var(--gmb-color-border);
  cursor: pointer;
  font-family: var(--gmb-font-heading);
  transition: border-color 160ms ease;
}

.gmb-upload__dropzone:hover,
.gmb-upload__dropzone--dragging {
  border-color: var(--gmb-color-border-hover);
}

.gmb-upload__dropzone:focus-within {
  border-color: var(--gmb-color-primary);
  box-shadow: 0 0 0 3px rgb(38 185 154 / 12%);
}

.gmb-upload__dropzone--error {
  border-color: var(--gmb-color-error);
}

.gmb-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.gmb-upload__empty {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--gmb-color-border);
  font-size: 16px;
  font-weight: 300;
  line-height: 24px;
  transition: color 160ms ease;
}

.gmb-upload__dropzone:hover .gmb-upload__empty,
.gmb-upload__dropzone--dragging .gmb-upload__empty {
  color: var(--gmb-color-border-hover);
}

.gmb-upload__icon {
  width: 50px;
  height: 50px;
  margin: 0;
  fill: currentColor;
}

.gmb-upload__preview {
  display: flex;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--gmb-color-border);
}

.gmb-upload__media {
  height: 125px;
  flex: 0 0 125px;
  overflow: hidden;
  border-radius: var(--gmb-radius-control);
  background: transparent;
}

.gmb-upload__media img,
.gmb-upload__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fafafa;
}

.gmb-upload__controls {
  display: flex;
  height: 14px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
}

.gmb-upload__filename {
  min-width: 0;
  padding-right: 6px;
  overflow: hidden;
  color: #8c8c8c;
  font-size: 11px;
  font-weight: 300;
  line-height: 16.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gmb-upload__buttons {
  display: flex;
  height: 19.5px;
  flex: 0 0 auto;
}

.gmb-upload__download,
.gmb-upload__remove {
  display: inline-flex;
  width: 16px;
  height: 19.5px;
  margin: 0 0 0 8px;
  padding: 0;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  outline: 0;
  color: rgb(0 0 0 / 54%);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.gmb-upload__download:hover,
.gmb-upload__remove:hover {
  color: #333333;
}

.gmb-upload__download:focus-visible,
.gmb-upload__remove:focus-visible {
  outline: 3px solid rgb(38 185 154 / 24%);
  outline-offset: 1px;
}

.gmb-upload__download svg,
.gmb-upload__remove svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.gmb-upload__download img,
.gmb-upload__remove img { display: block; flex: none; }
/* Optional replacement by clicking the existing loaded media slot. */
.gmb-upload__file { cursor: pointer; }
.gmb-upload__file:focus-within,
.gmb-upload__file.gmb-upload__dropzone--dragging { outline: 2px solid var(--gmb-color-primary); outline-offset: 2px; }

.gmb-upload__hint,
.gmb-upload__error {
  display: block;
  margin: -7px 0 0;
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 300;
  line-height: 14px;
}

.gmb-upload__hint {
  color: #8c8c8c;
}

.gmb-upload__error {
  margin-top: 4px;
  color: var(--gmb-color-error);
}

[hidden] {
  display: none !important;
}

.gmb-actions {
  display: flex;
  min-height: 36px;
  margin-top: 4px;
  align-items: center;
  gap: 12px;
}

.gmb-button {
  display: inline-flex;
  min-width: 0;
  height: 36px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--gmb-radius-button);
  outline: 0;
  color: var(--gmb-color-surface);
  background: var(--gmb-color-primary);
  cursor: pointer;
  font-family: var(--gmb-font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  transition: background-color 160ms ease;
}

.gmb-button:hover:not(:disabled) {
  background: var(--gmb-color-primary-hover);
}

.gmb-button:disabled {
  color: rgb(0 0 0 / 26%);
  background: rgb(0 0 0 / 12%);
  cursor: default;
}

.gmb-form-status {
  min-height: 17px;
  color: var(--gmb-color-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
}

.gmb-browser-preview {
  min-width: 0;
}

.gmb-browser-preview__label {
  margin: 0 0 4px;
  color: var(--gmb-color-text);
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
}

.gmb-browser-preview__window {
  width: 100%;
  overflow: hidden;
  border: 1px solid #c9cfd8;
  border-radius: 8px;
  background: var(--gmb-color-surface);
  box-shadow: 0 1px 2px rgb(43 49 52 / 8%);
}

.gmb-browser-preview__tabstrip {
  display: flex;
  height: 48px;
  padding: 8px 12px 0;
  align-items: flex-end;
  background: #d7e5fb;
}

.gmb-browser-preview__tab {
  display: flex;
  width: min(290px, calc(100% - 40px));
  height: 40px;
  min-width: 0;
  padding: 0 12px;
  align-items: center;
  gap: 10px;
  border-radius: 12px 12px 0 0;
  background: var(--gmb-color-surface);
}

.gmb-browser-preview__favicon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  align-items: center;
  justify-content: center;
  color: #5f6368;
}

.gmb-browser-preview__favicon svg,
.gmb-browser-preview__favicon img {
  display: block;
  width: 16px;
  height: 16px;
}

.gmb-browser-preview__favicon svg {
  fill: currentColor;
}

.gmb-browser-preview__favicon img {
  object-fit: contain;
}

.gmb-browser-preview__title {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: #3c4043;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gmb-browser-preview__close,
.gmb-browser-preview__new-tab {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: #5f6368;
}

.gmb-browser-preview__new-tab {
  margin: 0 0 11px 12px;
}

.gmb-browser-preview__toolbar {
  display: flex;
  height: 52px;
  padding: 10px 12px;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  background: var(--gmb-color-surface);
}

.gmb-browser-preview__address {
  display: flex;
  width: 100%;
  height: 32px;
  padding: 0 12px;
  align-items: center;
  gap: 8px;
  border-radius: 16px;
  color: #5f6368;
  background: #f1f3f4;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.gmb-browser-preview__address svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
}

.gmb-browser-preview__page {
  height: 96px;
  background: var(--gmb-color-surface);
}

.gmb-browser-preview__hint {
  margin: 8px 0 0;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
}

.gmb-seo-form {
  margin-top: 8px;
}

@media (max-width: 1000px) {
  .gmb-settings-layout {
    gap: 40px;
  }
}

@media (max-width: 800px) {
  .gmb-settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .gmb-form-column,
  .gmb-browser-preview {
    width: min(100%, 480px);
  }
}

@media (max-width: 500px) {
  .gmb-page--inset {
    padding: 10px 12px 20px;
  }

  .gmb-page__title {
    min-height: 34px;
    font-size: 28px;
    line-height: 34px;
  }

  .gmb-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .gmb-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* Ползунок ---------------------------------------------------------------- */

.gmb-range-field {
  display: grid;
  margin: 0 0 16px;
  gap: 8px;
}

.gmb-range-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.gmb-range-field__label {
  color: var(--gmb-color-text);
  font-family: var(--gmb-font-heading);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
}

/* Значение показываем всегда, а не только при перетаскивании: настройку
   называют вслух и переносят в другой кабинет, а «на глаз» её не повторить. */
.gmb-range-field__value {
  min-width: 44px;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 13px;
  line-height: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.gmb-range {
  width: 100%;
  height: 18px;
  margin: 0;
  padding: 0;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.gmb-range:focus-visible { outline: 2px solid var(--gmb-color-primary); outline-offset: 4px; }

/* Дорожка и бегунок описаны дважды: Firefox и WebKit не понимают
   псевдоэлементы друг друга и молча пропускают чужое правило целиком. */
.gmb-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--gmb-color-divider);
}

.gmb-range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--gmb-color-divider);
}

.gmb-range::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--gmb-color-primary);
}

.gmb-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border: 2px solid var(--gmb-color-primary);
  border-radius: 50%;
  background: var(--gmb-color-surface);
  appearance: none;
}

.gmb-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--gmb-color-primary);
  border-radius: 50%;
  background: var(--gmb-color-surface);
}

.gmb-range__hint {
  margin: 0;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 12px;
  line-height: 18px;
}

/* Страница со списком ------------------------------------------------------ */

.gmb-list-page {
  color: #333333;
  font-family: Arial, "Droid Sans", sans-serif;
}

.gmb-breadcrumbs {
  display: flex;
  min-height: 17px;
  margin: 0 0 10px;
  padding: 8px 0;
  align-items: center;
  gap: 6px;
  color: #999999;
  font-family: Arial, "Droid Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

.gmb-breadcrumbs a {
  color: var(--gmb-color-primary);
}

.gmb-list-page__header {
  display: flex;
  width: 100%;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.gmb-list-page__header .gmb-page__title {
  margin-bottom: 0;
}

.gmb-list-page__description {
  max-width: 820px;
  margin: 0 0 12px;
  color: var(--gmb-color-muted);
  font-family: Arial, "Droid Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
}

.gmb-list-count {
  margin: 0 0 8px;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.gmb-list-count strong {
  font-weight: 700;
}

.gmb-list-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid #e1e6ea;
  border-radius: var(--gmb-radius-control);
  background: var(--gmb-color-surface);
}

.gmb-list-toolbar {
  display: flex;
  min-height: 58px;
  padding: 12px 14px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e8ecef;
  gap: 16px;
}

.gmb-list-toolbar .gmb-switch {
  margin: 0;
}

.gmb-search {
  position: relative;
  display: block;
  width: 230px;
  max-width: 100%;
  flex: 0 1 230px;
}

.gmb-search__input {
  display: block;
  width: 100%;
  height: 28px;
  padding: 0 34px 0 12px;
  border: 1px solid #e1e6ea;
  border-radius: var(--gmb-radius-control);
  outline: 0;
  color: rgb(0 0 0 / 87%);
  background: var(--gmb-color-surface);
  font-family: Arial, "Droid Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 18px;
}

.gmb-search__input::-webkit-search-cancel-button {
  appearance: none;
}

.gmb-search__input:hover {
  border-color: var(--gmb-color-border);
}

.gmb-search__input:focus {
  border-color: var(--gmb-color-primary);
  box-shadow: 0 0 0 3px rgb(38 185 154 / 12%);
}

.gmb-search__icon {
  position: absolute;
  top: 3px;
  right: 7px;
  width: 22px;
  height: 22px;
  fill: #777777;
  pointer-events: none;
}

.gmb-table-scroll {
  width: 100%;
  overflow-x: auto;
}

.gmb-table {
  width: 100%;
  min-width: 680px;
  border-spacing: 0;
  border-collapse: collapse;
  color: #333333;
  background: var(--gmb-color-surface);
  font-family: Arial, "Droid Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.gmb-table th,
.gmb-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e8ecef;
  text-align: left;
  vertical-align: middle;
}

.gmb-table th {
  height: 36px;
  color: var(--gmb-color-text);
  background: #f7f7f7;
  font-family: var(--gmb-font-heading);
  font-weight: 700;
  white-space: nowrap;
}

.gmb-table th:first-child {
  width: 55%;
}

.gmb-table th:nth-child(2) {
  width: 25%;
}

.gmb-table th:nth-child(3) {
  width: 20%;
}

.gmb-table__row {
  height: 52px;
  outline: 0;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.gmb-table__row:hover {
  background: #fbfcfc;
}

.gmb-table__row:focus-visible {
  box-shadow: inset 0 0 0 3px rgb(38 185 154 / 20%);
}

.gmb-table__row:last-child td {
  border-bottom: 0;
}

.gmb-table__name,
.gmb-table__secondary {
  display: block;
}

.gmb-table__primary-action {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 2px;
  outline: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.gmb-table__primary-action:focus-visible {
  box-shadow: 0 0 0 3px rgb(38 185 154 / 24%);
}

.gmb-table__name {
  color: #333333;
  font-family: Arial, "Droid Sans", sans-serif;
  font-weight: 400;
  line-height: 18px;
}

.gmb-table__secondary {
  margin-top: 2px;
  color: var(--gmb-color-muted);
  font-size: 12px;
  line-height: 16px;
}

.gmb-table__active {
  width: 120px;
}

.gmb-table-status {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  gap: 6px;
  color: #555555;
  font-family: Arial, "Droid Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
}

.gmb-table-status svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: currentColor;
}

.gmb-table-status--yes svg {
  color: #4caf50;
}

.gmb-table-status--no svg {
  color: #ff5252;
}

.gmb-switch--table {
  min-height: 20px;
}

.gmb-table__actions-head,
.gmb-table__actions {
  width: 48px;
  padding-right: 8px !important;
  padding-left: 8px !important;
  text-align: center !important;
}

.gmb-icon-button {
  display: inline-flex;
  width: 32px;
  height: 32px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  outline: 0;
  color: #5f6468;
  background: transparent;
  cursor: pointer;
}

.gmb-icon-button:hover {
  background: rgb(43 49 52 / 7%);
}

.gmb-icon-button:focus-visible {
  box-shadow: 0 0 0 3px rgb(38 185 154 / 24%);
}

.gmb-icon-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gmb-list-empty {
  margin: 0;
  padding: 32px 16px;
  color: var(--gmb-color-muted);
  font-size: 13px;
  text-align: center;
}

.gmb-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Модальная карточка ------------------------------------------------------- */

body.gmb-modal-open {
  overflow: hidden;
}

.gmb-modal-layer {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  padding: 16px;
  overflow-y: auto;
  place-items: center;
  background: rgb(0 0 0 / 46%);
}

.gmb-modal {
  width: min(100%, 600px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: 8px;
  background: var(--gmb-color-surface);
  box-shadow: 0 12px 36px rgb(0 0 0 / 28%);
}

.gmb-modal__header {
  display: flex;
  min-height: 56px;
  padding: 12px 16px 12px 20px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e1e6ea;
}

.gmb-modal__title {
  margin: 0;
  color: var(--gmb-color-text);
  font-family: var(--gmb-font-heading);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
}

.gmb-modal__close {
  display: inline-flex;
  width: 32px;
  height: 32px;
  padding: 0;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  outline: 0;
  color: #92979d;
  background: transparent;
  cursor: pointer;
}

.gmb-modal__close:hover {
  color: var(--gmb-color-text);
  background: rgb(43 49 52 / 7%);
}

.gmb-modal__close:focus-visible {
  box-shadow: 0 0 0 3px rgb(38 185 154 / 24%);
}

.gmb-modal__close svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.gmb-modal__body {
  padding: 20px;
}

.gmb-modal__description {
  margin: 0 0 16px;
  color: var(--gmb-color-muted);
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
}

.gmb-modal__body .gmb-textarea {
  min-height: 90px;
}

.gmb-select {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--gmb-color-border);
  border-radius: var(--gmb-radius-control);
  outline: 0;
  color: rgb(0 0 0 / 87%);
  background: var(--gmb-color-surface);
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 500;
}

.gmb-select:hover {
  border-color: var(--gmb-color-border-hover);
}

.gmb-select:focus {
  border-color: var(--gmb-color-primary);
  box-shadow: 0 0 0 3px rgb(38 185 154 / 12%);
}

/* Поисковый выпадающий список -------------------------------------------- */

.gmb-combobox {
  position: relative;
  width: 100%;
}

.gmb-combobox__control {
  display: flex;
  width: 100%;
  height: 36px;
  align-items: center;
  border: 1px solid var(--gmb-color-border);
  border-radius: var(--gmb-radius-control);
  background: var(--gmb-color-surface);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.gmb-combobox__control:hover {
  border-color: var(--gmb-color-border-hover);
}

.gmb-combobox[data-open="true"] .gmb-combobox__control,
.gmb-combobox__control:focus-within {
  border-color: var(--gmb-color-primary);
  box-shadow: 0 0 0 3px rgb(38 185 154 / 12%);
}

.gmb-combobox__input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 4px 0 12px;
  border: 0;
  border-radius: var(--gmb-radius-control) 0 0 var(--gmb-radius-control);
  outline: 0;
  color: rgb(0 0 0 / 87%);
  background: transparent;
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 21px;
}

.gmb-combobox__toggle {
  display: inline-flex;
  width: 36px;
  height: 34px;
  padding: 0;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0 var(--gmb-radius-control) var(--gmb-radius-control) 0;
  outline: 0;
  color: #777777;
  background: transparent;
  cursor: pointer;
}

.gmb-combobox__toggle:hover {
  color: var(--gmb-color-text);
}

.gmb-combobox__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 160ms ease;
}

.gmb-combobox[data-open="true"] .gmb-combobox__toggle {
  color: var(--gmb-color-primary);
}

.gmb-combobox[data-open="true"] .gmb-combobox__toggle svg {
  transform: rotate(180deg);
}

.gmb-combobox__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 2px);
  left: 0;
  width: 100%;
  max-height: 224px;
  overflow-y: auto;
  border: 1px solid #e1e6ea;
  border-radius: 4px;
  background: var(--gmb-color-surface);
  box-shadow: 0 5px 12px rgb(0 0 0 / 22%);
  overscroll-behavior: contain;
}

.gmb-combobox__option {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 0;
  outline: 0;
  color: rgb(0 0 0 / 87%);
  background: var(--gmb-color-surface);
  cursor: pointer;
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  text-align: left;
}

.gmb-combobox__option:hover,
.gmb-combobox__option[data-active="true"] {
  background: #f1f8f6;
}

.gmb-combobox__option[aria-selected="true"] {
  color: var(--gmb-color-text);
  font-weight: 500;
}

.gmb-combobox__option:disabled {
  color: rgb(0 0 0 / 32%);
  cursor: default;
  background: var(--gmb-color-surface);
}

.gmb-combobox__empty {
  margin: 0;
  padding: 12px;
  color: var(--gmb-color-muted);
  font-size: 12px;
  line-height: 16px;
}

.gmb-modal__footer {
  display: flex;
  min-height: 60px;
  padding: 12px 20px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #e1e6ea;
}

.gmb-button--secondary {
  border: 1px solid var(--gmb-color-border);
  color: var(--gmb-color-text);
  background: var(--gmb-color-surface);
}

.gmb-button--secondary:hover:not(:disabled) {
  border-color: var(--gmb-color-border-hover);
  background: #f7f7f7;
}

@media (max-width: 700px) {
  .gmb-list-page__header {
    align-items: stretch;
    flex-direction: column;
  }

  .gmb-list-page__header .gmb-button {
    width: fit-content;
  }

  .gmb-modal-layer {
    padding: 8px;
    place-items: start center;
  }

  .gmb-modal {
    max-height: calc(100vh - 16px);
  }

  .gmb-modal__body,
  .gmb-modal__footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .gmb-modal__footer .gmb-button {
    width: auto;
  }
}

@media (max-width: 520px) {
  .gmb-list-toolbar {
    flex-wrap: wrap;
  }

  .gmb-search {
    width: 100%;
    flex-basis: 100%;
  }
}

/* Карточка деталей заказа ------------------------------------------------- */

.gmb-order-page {
  width: 100%;
}

.gmb-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.073fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.gmb-order-main,
.gmb-order-aside {
  min-width: 0;
}

.gmb-order-aside {
  display: grid;
  gap: 16px;
}

.gmb-order-status {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
}

.gmb-order-status__field {
  min-width: 0;
  flex: 1 1 180px;
}

.gmb-order-status__label {
  display: block;
  margin: 0 0 4px;
  color: #2b3134;
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
}

.gmb-order-status__value {
  display: flex;
  height: 36px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #b0bac3;
  border-radius: 8px;
  color: #2b3134;
  background: #fff;
  font-family: var(--gmb-font-body);
  font-size: 13px;
}

.gmb-order-status__button {
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  color: rgb(0 0 0 / 26%);
  background: rgb(0 0 0 / 12%);
  font-family: var(--gmb-font-heading);
  font-size: 14px;
}

.gmb-order-status__chevron {
  width: 18px;
  height: 18px;
  color: #777;
}

.gmb-order-stack {
  display: grid;
  gap: 16px;
}

.gmb-order-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #eaedf1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%);
}

.gmb-order-timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gmb-order-timeline::before {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 8px;
  width: 1px;
  background: rgb(0 0 0 / 12%);
  content: "";
}

.gmb-order-timeline__item {
  position: relative;
  display: flex;
  min-height: 23px;
  padding-left: 29px;
  align-items: center;
  color: var(--gmb-color-text);
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  line-height: 17px;
}

.gmb-order-timeline__item + .gmb-order-timeline__item {
  margin-top: 8px;
}

.gmb-order-timeline__item::before {
  position: absolute;
  z-index: 1;
  top: 3px;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #cdcdcd;
  content: "";
}

.gmb-order-timeline__status {
  font-weight: 700;
}

.gmb-order-timeline__date {
  font-weight: 400;
}

.gmb-order-metric {
  display: flex;
  flex-direction: column;
}

.gmb-order-metric__head {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.gmb-order-metric__value-line {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.gmb-order-metric__value {
  color: #2b3134;
  font-family: var(--gmb-font-heading);
  font-size: 36px;
  font-weight: 700;
  line-height: 45px;
  overflow-wrap: anywhere;
}

.gmb-order-metric__label {
  color: #b0bac3;
  font-family: var(--gmb-font-heading);
  font-size: 22px;
  font-weight: 700;
  line-height: 27px;
}

.gmb-order-metric__illustration {
  width: 39px;
  height: auto;
  flex: 0 0 39px;
}

.gmb-points-icon {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  background: currentColor;
  color: #2b3134;
  -webkit-mask: url("assets/points-star.svg") center / contain no-repeat;
  mask: url("assets/points-star.svg") center / contain no-repeat;
}

.gmb-points-icon--small {
  width: 16px;
  height: 16px;
  color: #839096;
}

.gmb-order-ledger {
  margin: 0;
}

.gmb-order-ledger__row {
  display: flex;
  min-height: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #839096;
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

.gmb-order-ledger__row dt,
.gmb-order-ledger__row dd {
  margin: 0;
}

.gmb-order-ledger__amount {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.gmb-order-ledger__divider {
  height: 1px;
  margin: 8px 0;
  border: 0;
  background: #eaedf1;
}

.gmb-order-ledger__row--total {
  min-height: 16px;
  margin-top: 16px;
  color: #384452;
  font-weight: 700;
  line-height: 16px;
}

.gmb-order-alert {
  display: flex;
  position: relative;
  overflow: hidden;
  min-height: 35px;
  padding: 5px 16px 4px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  color: #fff;
  background: #33afe7;
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
}

.gmb-order-alert::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 6px;
  border: 3px solid #fff;
  border-radius: 8px 0 0 8px;
  opacity: .26;
  content: "";
  pointer-events: none;
}

.gmb-order-alert__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.gmb-order-main .gmb-order-alert {
  margin-bottom: 16px;
}

.gmb-order-recipient {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8e8e8;
}

.gmb-order-comment {
  display: inline-flex;
  margin-top: 32px;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  color: #26b99a;
  background: transparent;
  cursor: pointer;
}

.gmb-order-comment__plus {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.gmb-order-comment__text {
  border-bottom: 1px dashed #555;
  color: #555;
  font-family: var(--gmb-font-heading);
  font-size: 12px;
  font-weight: 500;
  line-height: normal;
}

.gmb-order-payment {
  margin-top: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e8e8e8;
}

.gmb-order-detail {
  margin-top: 24px;
}

.gmb-order-detail__title {
  margin: 0 0 12px;
  color: #2b3134;
  font-family: var(--gmb-font-heading);
  font-size: 18px;
  font-weight: 700;
  line-height: 23px;
}

.gmb-order-detail__label {
  margin: 0 0 4px;
  color: #2b3134;
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
}

.gmb-order-detail__text {
  margin: 0;
  color: #2b3134;
  font-family: var(--gmb-font-body);
  font-size: 12px;
  font-weight: 400;
  line-height: 17px;
}

.gmb-order-detail__select {
  display: flex;
  width: min(100%, 408px);
  height: 36px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #b0bac3;
  border-radius: 8px;
  color: rgba(0, 0, 0, .87);
  background: #fff;
  font-family: var(--gmb-font-body);
  font-size: 13px;
}

.gmb-order-detail__disabled-field {
  opacity: .5;
}

.gmb-order-detail--pickup .gmb-order-detail__label {
  color: #3a3a3a;
}

.gmb-order-detail--recipient {
  margin-top: 16px;
}

.gmb-order-detail--items {
  margin-top: 17px;
}

.gmb-order-items__header {
  display: grid;
  min-height: 35px;
  grid-template-columns: 7fr 2fr 3fr;
  align-items: center;
  padding: 0;
  border: 1px solid #eaedf1;
  border-radius: 4px 4px 0 0;
  background: #f7f7f7;
  color: #2b3134;
  font-family: var(--gmb-font-heading);
  font-size: 13px;
  font-weight: 700;
}

.gmb-order-items__header > * {
  padding: 0 12px;
}

.gmb-order-items {
  background: #fff;
}

.gmb-order-item {
  padding: 16px;
  border-right: 1px solid #eaedf1;
  border-bottom: 1px solid #eaedf1;
  border-left: 1px solid #eaedf1;
}

.gmb-order-items__header + .gmb-order-item {
  margin-top: 0;
}

.gmb-order-item:last-child {
  border-radius: 0 0 5px 5px;
}

.gmb-order-item__head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding-right: 16px;
}

.gmb-order-item__head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.gmb-order-item__image {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 4px;
  object-fit: cover;
}

.gmb-order-item__name {
  width: 100%;
  color: #2b3134;
  font-family: var(--gmb-font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 17px;
}

.gmb-order-item__meta,
.gmb-order-item__caption {
  color: #999;
  font-family: var(--gmb-font-body);
  font-size: 12px;
  line-height: 17px;
}

.gmb-order-item__meta {
  overflow-wrap: anywhere;
}

.gmb-order-item__figures {
  display: flex;
  margin-top: 16px;
  justify-content: space-between;
  gap: 16px;
  color: #2b3134;
  font-family: var(--gmb-font-body);
  font-size: 13px;
  line-height: 17px;
}

.gmb-order-item__figures > :last-child {
  text-align: right;
}

.gmb-order-item__modifier {
  position: relative;
  margin: 16px 0 0 4px;
  padding-left: 12px;
  border-left: 1px solid #eaedf1;
}

.gmb-order-item__modifier::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 19px;
  width: 1px;
  background: #eaedf1;
  content: "";
  pointer-events: none;
}

.gmb-order-item__modifier-info {
  display: flex;
  flex-direction: column;
}

@media (min-width: 901px) {
  .gmb-order-item {
    display: grid;
    grid-template-columns: 7fr 2fr 3fr;
    align-items: center;
    padding: 0;
  }

  .gmb-order-item__head {
    grid-column: 1;
    grid-row: 1;
    padding: 12px;
  }

  .gmb-order-item__figures {
    display: contents;
  }

  .gmb-order-item__figures > :first-child {
    grid-column: 2;
    grid-row: 1;
    padding: 12px;
  }

  .gmb-order-item__figures > :last-child {
    grid-column: 3;
    grid-row: 1;
    padding: 12px;
    text-align: left;
  }

  .gmb-order-item__figures > :first-child .gmb-order-item__caption {
    display: none;
  }

  .gmb-order-item__modifier {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 7fr 2fr 3fr;
    min-height: 72px;
    margin: 0;
    padding: 0;
    border-top: 1px solid #eaedf1;
    border-left: 0;
    align-items: center;
  }

  .gmb-order-item__modifier::before {
    left: 31px;
  }

  .gmb-order-item__modifier-info {
    grid-column: 1;
    grid-row: 1;
    padding: 10px 12px 10px 44px;
  }

  .gmb-order-item__modifier > .gmb-order-item__figures {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .gmb-order-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .gmb-order-aside {
    grid-row: 1;
  }
}

@media (max-width: 500px) {
  .gmb-order-metric__value {
    font-size: 30px;
    line-height: 38px;
  }

  .gmb-order-metric__label {
    font-size: 18px;
    line-height: 23px;
  }

  .gmb-order-recipient {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
