div:has(> div.crsnn-store-selector) {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  column-gap: 36px;
}

div:has(> div.crsnn-store-selector) > .crsnn-store-popup {
  display: none;
  position: fixed;
}

div:has(> div.crsnn-store-selector) > .crsnn-store-popup.is-open {
  display: flex;
}

.crsnn-store-selector {
  display: inline-flex;
  flex: 0 1 220px;
  align-items: center;
  align-self: center;
  width: auto;
  max-width: 220px;
  min-width: 0;
  margin: 0;
  vertical-align: middle;
}

.crsnn-store-selector > button.crsnn-store-btn {
  display: inline-flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: auto;
  max-width: 220px;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #111;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
  text-align: left;
  cursor: pointer;
}

.crsnn-store-selector > button.crsnn-store-btn .crsnn-store-btn__pin {
  display: block;
  flex: 0 0 16px;
  width: 16px;
  height: 21px;
  margin-top: 1px;
  color: #e21e23;
}

.crsnn-store-mobile {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 15px;
  border-bottom: 1px solid #ebebeb;
}

.crsnn-store-mobile .crsnn-store-selector,
.crsnn-store-mobile .crsnn-store-selector > button.crsnn-store-btn {
  display: flex;
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
}

.crsnn-store-selector > button.crsnn-store-btn .crsnn-store-btn__text {
  display: block;
  min-width: 0;
  color: #111;
  font-weight: 700;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: left;
}

.crsnn-store-popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.crsnn-store-popup.is-open {
  display: flex;
}

.crsnn-store-popup.is-forced {
  z-index: 2147483000;
}

.crsnn-store-popup.is-forced .crsnn-store-popup__close {
  display: none;
}

.crsnn-store-popup.is-forced .crsnn-store-popup__backdrop {
  background: rgba(40, 40, 40, 0.7);
  cursor: default;
}

body.crsnn-store-popup-open {
  overflow: hidden;
}

.crsnn-store-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(70, 70, 70, 0.45);
}

.crsnn-store-popup__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1200px, calc(100vw - 48px));
  height: 560px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow: hidden;
  box-sizing: border-box;
  margin: 0;
  padding: 28px 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
}

.crsnn-store-popup__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 28px;
  line-height: 32px;
  cursor: pointer;
}

.modal-store.crsnn-store-popup__dialog {
  width: min(1200px, calc(100vw - 48px));
  height: 560px;
}

.modal-store.crsnn-store-popup__dialog.is-map-hidden,
.crsnn-store-popup.is-map-hidden .crsnn-store-popup__dialog {
  width: min(520px, 100%);
}

.modal-store h2.title {
  margin: 0 36px 8px 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}

.modal-store p.subtitle {
  margin: 0;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
  color: #8a8a8a;
}

.crsnn-store-search {
  display: block;
  position: relative;
  z-index: 5;
  flex: 0 0 auto;
  margin: 16px 0 0;
}

.crsnn-store-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.crsnn-store-search input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #d6d5d5;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.crsnn-store-search input:focus {
  outline: none;
  border-color: #e21e23;
  box-shadow: 0 0 0 3px rgba(226, 30, 35, 0.15);
}

.modal-store .modal-store-flex {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: space-between;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
}

.modal-store-left {
  display: flex;
  flex: 0 0 380px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 380px;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
}

.modal-store.is-map-hidden .modal-store-left {
  width: 100%;
}

.modal-store-left .modal-store-left-choises {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.crsnn-store-choice {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 4px 14px 0;
  box-sizing: border-box;
  border-bottom: 1px solid #d6d5d5;
  color: #222;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}

.crsnn-store-choice.is-filtered-out {
  display: none;
}

.crsnn-store-choice__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.crsnn-store-choice__name {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}

.crsnn-store-choice__address {
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
}

.crsnn-address {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.crsnn-address__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  width: auto;
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
  border: 1px solid #d6d5d5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.crsnn-address__list[hidden] {
  display: none;
}

.crsnn-address__list li {
  margin: 0;
  padding: 0;
}

.crsnn-address__list button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.crsnn-address__list li:last-child button {
  border-bottom: 0;
}

.crsnn-address__list button:hover,
.crsnn-address__list button:focus {
  background: #f7f7f7;
  outline: none;
}

.crsnn-address__error {
  flex: 0 0 auto;
  margin: 0 0 10px;
  color: #e21e23;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.crsnn-address__error[hidden] {
  display: none;
}

.crsnn-address-details {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 0;
}

.crsnn-address-details__house {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0;
  color: #222;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.crsnn-address-details__house input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: #e21e23;
  cursor: pointer;
}

.crsnn-address-details__field[hidden] {
  display: none;
}

.crsnn-address-details__field {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
  color: #222;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.crsnn-address-details__field input {
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #d6d5d5;
  border-radius: 8px;
  background: #fff;
  color: #222;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.crsnn-address-details__field input:focus {
  outline: none;
  border-color: #e21e23;
  box-shadow: 0 0 0 3px rgba(226, 30, 35, 0.15);
}

.crsnn-store-empty {
  flex: 0 0 auto;
  margin: 16px 0;
  color: #8a8a8a;
  font-size: 15px;
}

.crsnn-store-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.crsnn-store-choice__mark {
  display: inline-flex;
  flex: 0 0 20px;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid #cfcfcf;
  border-radius: 50%;
  box-sizing: border-box;
  background: #fff;
}

.crsnn-store-choice__mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
}

.crsnn-store-choice input:checked + .crsnn-store-choice__mark,
.crsnn-store-choice.is-selected .crsnn-store-choice__mark {
  border-color: #e21e23;
}

.crsnn-store-choice input:checked + .crsnn-store-choice__mark::after,
.crsnn-store-choice.is-selected .crsnn-store-choice__mark::after {
  background: #e21e23;
}

.crsnn-store-choice:focus-within .crsnn-store-choice__mark {
  box-shadow: 0 0 0 3px rgba(226, 30, 35, 0.18);
}

.modal-store-left button.js-crsnn-apply-store,
.modal-store-left button.js-main-select-btn {
  flex: 0 0 auto;
  width: 100%;
  margin-top: auto;
  padding: 14px 16px;
  border: 0;
  border-radius: 4px;
  background: #e21e23;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.modal-store-left button.js-crsnn-apply-store:disabled,
.modal-store-left button.js-main-select-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.modal-store-right {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin-left: 16px;
  overflow: hidden;
  border-radius: 4px;
  background: #f3f3f3;
}

.crsnn-store-map {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #f3f3f3;
}

.crsnn-store-map-page .crsnn-store-map {
  min-height: 500px;
}

@media (max-width: 1024px) {
  .crsnn-store-popup {
    align-items: center;
    padding: 16px;
  }

  .crsnn-store-popup__dialog,
  .modal-store.crsnn-store-popup__dialog {
    width: min(1200px, calc(100vw - 32px));
    height: 560px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    padding: 20px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 16px;
  }

  .modal-store.crsnn-store-popup__dialog.is-map-hidden,
  .crsnn-store-popup.is-map-hidden .crsnn-store-popup__dialog {
    width: min(520px, 100%);
  }
}

@media (max-width: 720px) {
  .crsnn-store-popup__dialog,
  .modal-store.crsnn-store-popup__dialog {
    height: auto;
  }

  .modal-store h2.title {
    font-size: 20px;
  }

  .crsnn-store-choice {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .modal-store .modal-store-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .modal-store-left,
  .modal-store-right {
    width: 100%;
  }

  .modal-store-left {
    flex: 1 1 auto;
  }

  .modal-store-left .modal-store-left-choises {
    flex: 1 1 auto;
    height: 300px;
    min-height: 240px;
    max-height: 320px;
  }

  .modal-store-right {
    flex: 0 0 140px;
    height: 140px;
    min-height: 140px;
    margin: 12px 0 0;
  }
}
