/* V39_CONTACT_LANG_PHOTO_YANDEX_MAP_CSS_V6 */
#v88ContactGrid.v39-contact-grid {
  grid-template-columns: repeat(10, minmax(0, 1fr));
  align-items: end;
}

#v88ContactGrid .v39-contact-channel {
  grid-column: span 2;
  text-align: center;
}

#v88ContactGrid .v39-contact-channel label {
  text-align: center;
}

#v88ContactGrid .v39-contact-channel input {
  text-align: center;
}

#v88ContactGrid .v39-contact-checks {
  grid-column: 1 / -1;
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 7px;
}

#v88ContactGrid .v39-contact-email {
  grid-column: 1 / -1;
  width: min(760px, 100%);
  justify-self: center;
  text-align: center;
}

#v88ContactGrid .v39-contact-email input,
#v88ContactGrid .v39-contact-email label {
  text-align: center;
}

#v88ContactGrid .field:has(#genBusinessAddress) {
  grid-column: 1 / -1;
}

#v88ContactGrid .field:has(#genBusinessLat),
#v88ContactGrid .field:has(#genBusinessLon) {
  grid-column: span 5;
}

#v88BrandGrid .v39-language-field {
  grid-column: 1 / -1;
  text-align: center;
}

#v88BrandGrid .v39-language-row {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 5px 0 8px;
}

.v39-single-photo-mode {
  width: min(680px, 100%) !important;
  max-width: 680px !important;
}

.v39-single-photo-mode label {
  text-align: center;
}

.v39-yandex-map-picker {
  grid-column: 1 / -1;
  margin-top: 5px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, .24);
  border-radius: 16px;
  background: rgba(2, 12, 27, .48);
}

.v39-yandex-map-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.v39-yandex-map-head > div:first-child {
  display: grid;
  gap: 4px;
}

.v39-yandex-map-head b {
  color: #f8fafc;
  font-size: 16px;
}

.v39-yandex-map-head span {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.45;
}

.v39-yandex-map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.v39-yandex-map-actions button {
  min-height: 40px;
}

.v39-yandex-coordinate-summary {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
}

.v39-yandex-coordinate-summary span {
  padding: 7px 11px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, .18);
  border: 1px solid rgba(96, 165, 250, .2);
}

.v39-yandex-coordinate-summary b {
  color: #fff;
}

.v39-yandex-map-status {
  margin: 8px 0;
  padding: 9px 11px;
  border-radius: 11px;
  color: #bfdbfe;
  background: rgba(30, 64, 175, .1);
  border: 1px solid rgba(96, 165, 250, .18);
  text-align: center;
}

.v39-yandex-map-status.ok {
  color: #bbf7d0;
  background: rgba(22, 163, 74, .1);
  border-color: rgba(74, 222, 128, .22);
}

.v39-yandex-map-status.warn {
  color: #fde68a;
  background: rgba(202, 138, 4, .1);
  border-color: rgba(250, 204, 21, .22);
}

.v39-yandex-map-status.error {
  color: #fecaca;
  background: rgba(185, 28, 28, .1);
  border-color: rgba(248, 113, 113, .24);
}

.v39-yandex-map-canvas,
.v39-yandex-map-fallback iframe {
  width: 100%;
  height: 430px;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0b1220;
}

.v39-yandex-map-fallback {
  display: grid;
  gap: 9px;
  justify-items: center;
}

.v39-yandex-map-fallback[hidden],
.v39-yandex-map-canvas[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  #v88ContactGrid.v39-contact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #v88ContactGrid .v39-contact-channel {
    grid-column: span 2;
  }

  #v88ContactGrid .v39-contact-channel:nth-of-type(4),
  #v88ContactGrid .v39-contact-channel:nth-of-type(5) {
    grid-column: span 3;
  }

  #v88ContactGrid .field:has(#genBusinessLat),
  #v88ContactGrid .field:has(#genBusinessLon) {
    grid-column: span 3;
  }
}

@media (max-width: 720px) {
  #v88ContactGrid.v39-contact-grid {
    grid-template-columns: 1fr;
  }

  #v88ContactGrid .v39-contact-channel,
  #v88ContactGrid .v39-contact-channel:nth-of-type(4),
  #v88ContactGrid .v39-contact-channel:nth-of-type(5),
  #v88ContactGrid .v39-contact-email,
  #v88ContactGrid .field:has(#genBusinessAddress),
  #v88ContactGrid .field:has(#genBusinessLat),
  #v88ContactGrid .field:has(#genBusinessLon),
  .v39-yandex-map-picker {
    grid-column: 1;
  }

  #v88ContactGrid .v39-contact-checks,
  #v88BrandGrid .v39-language-row {
    justify-content: flex-start;
  }

  .v39-yandex-map-head,
  .v39-yandex-map-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .v39-yandex-map-actions button {
    width: 100%;
  }

  .v39-yandex-coordinate-summary {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
  }

  .v39-yandex-map-canvas,
  .v39-yandex-map-fallback iframe {
    height: 350px;
  }
}
