.mm-map-section {
  display: block;
  width: 100%;
}

.contacts-map {
  display: block;
  width: 100%;
  max-width: 100%;
  height: var(--mm-map-height, 600px);
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  background: #e8eee6;
}

@media (max-width: 767px) {
  .contacts-map {
    height: var(--mm-map-height-mobile, 720px);
  }
}

.contacts-balloon {
  position: absolute;
  width: 360px;
  font-family: 'Roboto', sans-serif;
  color: #212529;
  z-index: 1;
}

.contacts-balloon,
.contacts-balloon * {
  box-sizing: border-box;
}

.contacts-balloon__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.14);
}

.contacts-balloon__header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contacts-balloon__titles {
  flex: 1 1 auto;
  min-width: 0;
}

.contacts-balloon__title {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 600;
  color: #212529;
}

.contacts-balloon__subtitle {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #7d7d7d;
}

.contacts-balloon__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.contacts-balloon__close img {
  display: block;
}

.contacts-balloon__divider {
  height: 1px;
  background: #e9ecef;
}

.contacts-balloon__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contacts-balloon__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contacts-balloon__icon {
  flex-shrink: 0;
  padding-top: 1px;
}

.contacts-balloon__icon img {
  display: block;
}

.contacts-balloon__content {
  flex: 1 1 auto;
  min-width: 0;
}

.contacts-balloon__hours-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.contacts-balloon__status {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: #009748;
  white-space: nowrap;
}

.contacts-balloon__status.is-closed {
  color: #c45c5c;
}

.contacts-balloon__hint {
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #212529;
  white-space: nowrap;
}

.contacts-balloon__chevron {
  display: none;
  flex-shrink: 0;
}

.contacts-balloon__chevron--down {
  display: block;
}

.contacts-balloon__chevron--up {
  display: none;
}

.contacts-balloon.is-expanded .contacts-balloon__chevron--down {
  display: none;
}

.contacts-balloon.is-expanded .contacts-balloon__chevron--up {
  display: block;
}

.contacts-balloon__schedule {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  font-size: 14px;
  line-height: 20px;
  transition: grid-template-rows 0.32s ease;
}

.contacts-balloon.is-expanded .contacts-balloon__schedule {
  grid-template-rows: 1fr;
}

.contacts-balloon__schedule-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 0;
  transition: padding-top 0.32s ease;
}

.contacts-balloon.is-expanded .contacts-balloon__schedule-inner {
  padding-top: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .contacts-balloon__schedule,
  .contacts-balloon__schedule-inner {
    transition: none;
  }
}

.contacts-balloon__day {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  width: 100%;
  font-weight: 400;
}

.contacts-balloon__day-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #7d7d7d;
}

.contacts-balloon__day-time {
  flex-shrink: 0;
  color: #212529;
  white-space: nowrap;
}

.contacts-balloon__day.is-today {
  font-weight: 500;
}

.contacts-balloon__day.is-today .contacts-balloon__day-name,
.contacts-balloon__day.is-today .contacts-balloon__day-time {
  color: #212529;
}

.contacts-balloon__address {
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #212529;
}

a.contacts-balloon__address {
  color: #212529;
  text-decoration: none;
}

.contacts-balloon__phones {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contacts-balloon__phone {
  display: flex;
  flex-direction: column;
}

.contacts-balloon__phone-link {
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  color: #008dd2;
  text-decoration: none;
}

.contacts-balloon__phone-note {
  margin: 0;
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  color: #7d7d7d;
}

.contacts-balloon__site {
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: #008dd2;
  text-decoration: underline;
}

.contacts-balloon__tail {
  display: block;
  margin: 0 auto;
}

.contacts-balloon__phone-link:hover,
.contacts-balloon__site:hover {
  color: #0077b3;
}

.contacts-balloon__close:focus-visible,
.contacts-balloon__hours-toggle:focus-visible,
.contacts-balloon__phone-link:focus-visible,
.contacts-balloon__site:focus-visible,
a.contacts-balloon__address:focus-visible {
  outline: 2px solid #008dd2;
  outline-offset: 2px;
}
