.mapWrapper {
  --button-box-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
}

.mapWrapperWithCloseButton:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  background: linear-gradient(
    43deg,
    rgba(172, 172, 172, 0) 57.66%,
    rgba(0, 0, 0, 0.25) 92.45%
  );
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.ctaButtons {
  position: absolute;
  top: var(--Spacing-x2);
  right: var(--Spacing-x2);
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--Spacing-x7);
  align-items: flex-end;
  pointer-events: none;
}

.zoomButtons {
  display: grid;
  gap: var(--Spacing-x1);
  margin-top: auto;
}

.closeButton {
  display: none !important;
}

.zoomButton {
  width: var(--Spacing-x5);
  height: var(--Spacing-x5);
  padding: 0;
  pointer-events: initial;
  box-shadow: var(--button-box-shadow);
}

@media screen and (min-width: 950px) {
  .ctaButtons {
    top: var(--Spacing-x4);
    right: var(--Spacing-x4);
    bottom: var(--Spacing-x4);
    justify-content: space-between;
  }

  .zoomButtons {
    display: flex;
    flex-direction: row-reverse;
  }

  .closeButton {
    display: flex !important;
    pointer-events: initial;
    box-shadow: var(--button-box-shadow);
    gap: var(--Spacing-x-half);
  }

  /* Overriding Google maps infoWindow styles */
  .mapWrapper :global(.gm-style .gm-style-iw-c) {
    padding: 0 !important;
  }

  .mapWrapper :global(.gm-style .gm-style-iw-d) {
    padding: 0 !important;
    overflow: hidden !important;
  }
}
