:root {
  --WIDTH: 546px;
  --HEIGHT: 206px;
  --PADDING: 30px;
  --MAP-WIDTH: 3000px;
  --MAP-HEIGHT: 1750px;
}

@media (max-width: 761px) {
  :root {
    --WIDTH: calc(100vw - 40px);
  }
}

.givRSE-map {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10000;
  background-color: #fff;
}

.givRSE-close {
  background-image: url(images/close.svg);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  height: 16px;
  width: 16px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 10;
}

/**************************************************/
.givRSE-map__background {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.givRSE-map__background img {
  width: var(--MAP-WIDTH);
  height: var(--MAP-HEIGHT);
  max-width: var(--MAP-WIDTH);
  filter: opacity(0.5);
}

.givRSE-map__background[data-touch="1"] {
  overflow: scroll;
}

.givRSE-map__background > * {
  display: block;
}

.givRSE-pins {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--MAP-WIDTH);
  height: var(--MAP-HEIGHT);
  cursor: grab;
}

.givRSE-map__background[data-pan="1"] .givRSE-pins {
  cursor: grabbing;
}

.givRSE-pins__sourcing {
  position: absolute;
}

.givRSE-pins__sourcing::before {
  content: "";
  position: absolute;
  width: 36px;
  height: 44px;
  cursor: pointer;
  background-image: url(./images/pin.svg);
  background-repeat: no-repeat;
  background-size: 100% auto;
  transition: transform ease-in-out 0.2s;
  transform-origin: center bottom;
  margin-top: -44px;
  margin-left: -18px;
}

.givRSE-pins__sourcing:hover::before {
  transform: scale(1.2);
}

.givRSE-pins__sourcing:active {
  transform: translateY(2px);
}

.givRSE-pins__sourcing[data-open="1"]::before {
  background-image: url(./images/pin-selected.svg);
}

#popin-1 {
  top: 60%;
  left: 20%;
}

#popin-2 {
  top: 30%;
  left: 60%;
}

/****************************************/
.givRSE-popin {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  transition: opacity ease-in-out 0.2s;
}

.givRSE-popin[data-open="0"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.givRSE-popin[data-open="1"] {
  opacity: 1;
}

.givRSE-popin .givRSE-popin__wrapper {
  transition: all ease-in-out 0.2s;
  overflow: hidden;
  position: relative;
  z-index: 2;
  background-color: white;
  display: block;
  width: 100%;
  border-radius: 2px;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.05);
}

.givRSE-popin[data-open="0"] .givRSE-popin__wrapper {
  max-width: 0;
  max-height: 0;
}

.givRSE-popin[data-open="1"] .givRSE-popin__wrapper {
  max-width: var(--WIDTH);
}

.givRSE-popin__background {
  background-color: rgba(0, 0, 0, 0);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 1;
}

.givRSE-popin__content {
  padding: var(--PADDING);
  padding-bottom: calc(0.5 * var(--PADDING));
  box-sizing: border-box;
  width: var(--WIDTH);
}

.givRSE-popin[data-open="0"] .givRSE-popin__content {
  opacity: 0;
}

.givRSE-popin[data-open="1"] .givRSE-popin__content {
  opacity: 1;
  transition: opacity ease-in-out 0.8s;
  transition-delay: 0.2s;
}

.givRSE-popin__scroller {
  width: calc(var(--WIDTH) - 2 * var(--PADDING));
  white-space: nowrap;
  font-size: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  box-sizing: border-box;
}

/* width */
.givRSE-popin__scroller::-webkit-scrollbar {
  height: 4px;
  margin-top: 4px;
}

/* Track */
.givRSE-popin__scroller::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Handle */
.givRSE-popin__scroller::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 2px;
}

/* Handle on hover */
.givRSE-popin__scroller::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.givRSE-popin__item {
  width: calc(var(--WIDTH) - 2 * var(--PADDING));
  display: inline-block;
  box-sizing: border-box;
  scroll-snap-align: start;
  white-space: normal;
  font-size: 16px;
  text-align: left;
  vertical-align: top;
  padding-bottom: calc(0.5 * var(--PADDING));
}

.givRSE-popin__item p {
  margin: 0;
}
