/* IKD_REGION_BRANCH_CONTEXT_V2 */

/*
 * Старый маленький chip оставляем в DOM только как
 * технический триггер существующего выбора магазина.
 * Визуально он больше не участвует в layout.
 */
#ikd-region-store-chip {
  display: none !important;
}

.ikd-branch-phone-link {
  color: inherit;
  text-decoration: none;
}

.ikd-branch-context-v2 {
  position: relative;
  z-index: 38;
  background:
    linear-gradient(
      90deg,
      #fff9f3 0%,
      #fff 48%,
      #fff9f3 100%
    );
  border-bottom: 1px solid #eadfd3;
  box-shadow: 0 5px 16px rgba(66, 43, 24, .04);
}

.ikd-branch-context-v2__inner {
  min-height: 72px;
  display: grid;
  grid-template-columns:
    auto
    minmax(220px, 1.25fr)
    minmax(165px, .9fr)
    minmax(105px, .55fr)
    minmax(175px, .85fr)
    auto;
  align-items: center;
  gap: 18px;
}

.ikd-branch-context-v2__pin {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f47a20;
  color: #fff;
  box-shadow: 0 9px 22px rgba(244, 122, 32, .22);
}

.ikd-branch-context-v2__pin svg {
  width: 21px;
  height: 21px;
}

.ikd-branch-context-v2__main,
.ikd-branch-context-v2__detail,
.ikd-branch-context-v2__phone {
  min-width: 0;
}

.ikd-branch-context-v2__main span,
.ikd-branch-context-v2__detail span,
.ikd-branch-context-v2__phone span {
  display: block;
  margin-bottom: 3px;
  color: #8a7665;
  font-size: 11px;
  line-height: 1.1;
}

.ikd-branch-context-v2__main strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
  color: #211a16;
}

.ikd-branch-context-v2__detail strong,
.ikd-branch-context-v2__phone strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
  color: #211a16;
}

.ikd-branch-context-v2__phone {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 13px;
  border: 1px solid #eadfd3;
  background: #fff;
}

.ikd-branch-context-v2__phone:hover {
  border-color: #f47a20;
}

.ikd-branch-context-v2__actions {
  display: flex;
  align-items: center;
  gap: 7px;
  justify-content: flex-end;
}

.ikd-branch-context-v2__actions button {
  border: 0;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 13px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.ikd-branch-context-v2__change-store {
  background: #f47a20;
  color: #fff;
}

.ikd-branch-context-v2__change-city {
  background: #f2ece6;
  color: #3c332c;
}

/* City switch modal */

.ikd-city-switch-v2 {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: grid;
  place-items: center;
  padding: 18px;
}

.ikd-city-switch-v2__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 17, 13, .58);
  backdrop-filter: blur(5px);
}

.ikd-city-switch-v2__panel {
  position: relative;
  width: min(560px, 100%);
  border-radius: 26px;
  background: #fff;
  padding: 27px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .28);
}

.ikd-city-switch-v2__x {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: #f3eee8;
  font-size: 24px;
  line-height: 1;
}

.ikd-city-switch-v2__eyebrow {
  color: #f47a20;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ikd-city-switch-v2__panel h2 {
  margin: 7px 0 8px;
  font-size: 31px;
  line-height: 1.05;
}

.ikd-city-switch-v2__panel > p {
  margin: 0 0 19px;
  color: #74685e;
  line-height: 1.45;
}

.ikd-city-switch-v2__list {
  display: grid;
  gap: 9px;
}

.ikd-city-switch-v2__list a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e8ded5;
  border-radius: 17px;
  padding: 15px 16px;
  text-decoration: none;
  color: #221b17;
  background: #fff;
}

.ikd-city-switch-v2__list a:hover,
.ikd-city-switch-v2__list a.is-current {
  border-color: #f47a20;
  background: #fff9f3;
}

.ikd-city-switch-v2__list strong {
  font-size: 16px;
}

.ikd-city-switch-v2__list span {
  color: #786b61;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .ikd-branch-context-v2__inner {
    grid-template-columns:
      auto
      minmax(210px, 1fr)
      minmax(150px, .8fr)
      minmax(160px, .8fr)
      auto;
  }

  .ikd-branch-context-v2__detail:nth-of-type(3) {
    display: none;
  }
}

@media (max-width: 900px) {
  .ikd-branch-context-v2__inner {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
    gap: 12px;
  }

  .ikd-branch-context-v2__detail,
  .ikd-branch-context-v2__phone {
    display: none;
  }

  .ikd-branch-context-v2__actions {
    gap: 5px;
  }

  .ikd-branch-context-v2__actions button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }
}

@media (max-width: 620px) {
  .ikd-branch-context-v2__inner {
    width: calc(100% - 22px);
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 0;
  }

  .ikd-branch-context-v2__pin {
    width: 38px;
    height: 38px;
  }

  .ikd-branch-context-v2__main span {
    font-size: 10px;
  }

  .ikd-branch-context-v2__main strong {
    font-size: 13px;
  }

  .ikd-branch-context-v2__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .ikd-branch-context-v2__actions button {
    flex: 1;
  }

  .ikd-city-switch-v2 {
    align-items: end;
    padding: 10px;
  }

  .ikd-city-switch-v2__panel {
    padding: 24px 18px 18px;
    border-radius: 24px 24px 16px 16px;
  }
}


/* REGION CONTEXT COMPACT FIX */

.branch-context,
.region-context,
.store-context,
.branch-card {

    padding-top: 8px !important;
    padding-bottom: 8px !important;

}


.branch-phone,
.store-phone,
.phone-store {

    display:none !important;

}


.branch-context .info,
.region-context .info {

    display:flex !important;
    align-items:center;
    gap:20px;

}


.branch-context button,
.region-context button {

    padding:8px 14px !important;
    border-radius:20px !important;

}

