/* MON branch Google Map modal — square corners, anchored to GoogleMap button */

.mon-map-root {
  position: fixed;
  inset: 0;
  z-index: 100040;
  box-sizing: border-box;
  pointer-events: none;
}

.mon-map-root,
.mon-map-root * {
  box-sizing: border-box;
}

.mon-map-root[hidden] {
  display: none !important;
}

.mon-map-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  background: rgba(17, 24, 39, 0.28);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.mon-map-root.is-open .mon-map-backdrop {
  opacity: 1;
}

.mon-map-dialog {
  position: fixed;
  z-index: 1;
  pointer-events: auto;
  width: min(400px, 90vw);
  height: min(350px, 85dvh);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  overflow: visible;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  opacity: 0;
  transform: translate3d(8px, 0, 0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.mon-map-root.is-open .mon-map-dialog {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.mon-map-dialog.is-caret-right {
  transform: translate3d(-8px, 0, 0);
}

.mon-map-root.is-open .mon-map-dialog.is-caret-right {
  transform: translate3d(0, 0, 0);
}

.mon-map-dialog.is-caret-top {
  transform: translate3d(0, 8px, 0);
}

.mon-map-root.is-open .mon-map-dialog.is-caret-top {
  transform: translate3d(0, 0, 0);
}

.mon-map-caret {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border-left: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  transform: rotate(45deg);
  pointer-events: none;
  z-index: 3;
}

.mon-map-dialog.is-caret-left .mon-map-caret {
  border-left: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-right: 0;
  border-top: 0;
}

.mon-map-dialog.is-caret-right .mon-map-caret {
  border-right: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  border-left: 0;
  border-bottom: 0;
}

.mon-map-dialog.is-caret-top .mon-map-caret {
  border-left: 1px solid #e5e7eb;
  border-top: 1px solid #e5e7eb;
  border-right: 0;
  border-bottom: 0;
}

.mon-map-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: #f3f4f6;
  overflow: hidden;
}

.mon-map-close {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  cursor: pointer;
  box-shadow: none;
}

.mon-map-close:hover,
.mon-map-close:focus {
  background: rgba(17, 24, 39, 0.9);
  color: #fff;
  box-shadow: none;
}

.mon-map-close-ico {
  width: 18px;
  height: 18px;
  display: block;
}

body.mon-map-open {
  overflow: hidden;
}

@media (max-width: 781px) {
  .mon-map-close {
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mon-map-backdrop,
  .mon-map-dialog {
    transition: none;
  }
}
