.ecupro-city-selector {
  margin-block: 6px;
  margin-inline: 36px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px 36px;
}

.ecupro-city-selector__col {
  display: grid;
  row-gap: 3px;
  min-width: 0;
  justify-items: end;
  text-align: right;
}

.ecupro-city-selector__col--location[data-role='location-open'] {
  cursor: pointer;
}

.ecupro-city-selector__col--contacts[data-role='contacts-open'] {
  cursor: pointer;
}

.ecupro-city-selector__row {
  min-width: 0;
  text-align: inherit;
}

.ecupro-city-selector__row--city {
  font-size: 1.2em;
  line-height: 1.15;
  justify-self: end;
  text-align: right;
}

.ecupro-city-selector__row--meta {
  display: block;
  align-items: center;
  font-size: 1em;
  line-height: 1.15;
}

.ecupro-city-selector__meta-link {
  display: inline-grid;
  grid-template-columns: max-content minmax(0, max-content);
  align-items: center;
  column-gap: 4px;
  width: auto;
  text-decoration: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  line-height: inherit;
  cursor: pointer;
}

.ecupro-city-selector__meta-text {
  display: inline-grid;
  grid-template-columns: max-content minmax(0, max-content);
  align-items: center;
  column-gap: 4px;
  width: auto;
}

.ecupro-city-selector__text {
  min-width: 0;
}

.ecupro-city-selector__icon {
  display: block;
  vertical-align: 0;
}

.ecupro-city-selector__trigger {
  display: inline-grid;
  grid-template-columns: max-content max-content max-content;
  align-items: center;
  column-gap: 4px;
  text-decoration-line: underline !important;
  text-decoration-style: dotted !important;
  text-underline-offset: 0.12em !important;
  text-decoration-thickness: 1px;
  font-size: 1em;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: inherit;
  line-height: inherit;
  cursor: pointer;
}

.ecupro-city-selector__trigger,
.ecupro-city-selector__city-label,
.ecupro-city-selector__phone-link {
  color: var(--wp--preset--color--accent, #d8771f);
}

.ecupro-city-selector__city-label {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.12em;
  text-decoration-thickness: 1px;
}

.ecupro-city-selector__icon-wrap {
  display: inline-grid;
  align-items: center;
}

.ecupro-city-selector__caret {
  display: inline-block;
  width: 0.32em;
  height: 0.32em;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-0.12em);
}

.ecupro-city-selector__select-anchor {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  color: #222;
  cursor: pointer;
}

.ecupro-city-selector__select {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: block !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
  background-image: none !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer;
  z-index: 2;
}

.ecupro-city-selector__phone-link {
  white-space: nowrap;
  text-decoration-line: underline !important;
  text-decoration-style: dotted !important;
  text-underline-offset: 0.12em !important;
  text-decoration-thickness: 1px;
}

.ecupro-city-selector__phone-text {
  white-space: nowrap;
}

.ecupro-city-selector__callback-link {
  text-decoration: none;
}

.ecupro-city-selector__row--phone {
  font-size: 1.2em;
  line-height: 1.15;
  justify-self: end;
  text-align: right;
}

.ecupro-city-selector__callback-link {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.ecupro-city-selector__address-placeholder[hidden],
.ecupro-city-selector [data-role='address-link'][hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .ecupro-city-selector {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    max-width: 100%;
    margin-inline: auto;
  }

  .ecupro-city-selector__col {
    width: auto;
    justify-items: center;
    text-align: center;
  }

  .ecupro-city-selector__row,
  .ecupro-city-selector__row--city,
  .ecupro-city-selector__row--phone,
  .ecupro-city-selector__row--meta {
    justify-self: center;
    text-align: center;
  }

}
