/* Styles for the KGL map popup, which is part of a gm-map shadow dom.
/* It is linked to the application in the index.html.
/* For info see README of @geodan/gm-map.
*/

.ol-popup-container {
  --rev-primary-color: #FFB612;
  --rev-light-yellow-hover: #FFF4DC;
  --rev-black: #000000;
  --light-grey: #DEE4EB;
}

.ol-popup {
  position: absolute;
  background-color: white;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
  padding: 20px;
  border-radius: 4px;
  bottom: 12px;
  width: 195px;
  left: -112px;
}

.popup-closer-container {
  display: flex;
  justify-content: flex-end;
}

button#popup-closer {
  margin: -10px -10px 0 0;
}

.popup-tail {
  transform: rotate(45deg);
  position: absolute;
  height: 1rem;
  width: 1rem;
  background-color: white;
  top: -20px;
  margin-left: -7px;
}

.popup-tail.shadow {
  box-shadow: rgba(0, 0, 0, 0.08) 0 0 2px 2px;
}

.ol-popup-container button.no-default-styles {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.ol-popup-container .loading-container {
  display: flex;
  flex-flow: column;
  align-items: center;
}

.ol-popup-container .loading-spinner {
  display: inline-block;
  margin-top: 16px;
  border: 4px solid rgb(230, 230, 230);
  border-top: 4px solid rgb(0, 0, 0);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: kglmappopupspin 1.5s linear infinite;
}

.ol-popup-container .tag {
  height: 1.875rem;
  line-height: 1.875rem;
  width: 4.5rem;
  border-radius: 0.9375rem;
  text-align: center;
  font-weight: bold;
  font-size: 0.8125rem;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 0.375rem;
}

.ol-popup-container h3 {
  margin-bottom: 5px;
}

.ol-popup-container .search-results {
  margin-top: -34px;
}

.ol-popup-container .edit-button-container {
  margin-top: 15px;
  padding-top: 15px;
  border-top: solid 1px var(--light-grey);
}

.ol-popup-container .edit-button {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ol-popup-container .edit-button iron-icon {
  width: 22px;
  height: 22px;
}

.ol-popup-container .edit-button .button-label {
  font-weight: 600;
}

.kgl-map-popup-paging .paging-container {
  margin-top: 2rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  list-style-type: none;
  padding: 0;
}

.kgl-map-popup-paging .paging-button {
  display: block;
  text-align: center;
  width: 2.125rem;
  height: 2.125rem;
  line-height: 2.125rem;
  cursor: pointer;
}

.kgl-map-popup-paging .paging-button:hover {
  background-color: var(--rev-light-yellow-hover);
}

.kgl-map-popup-paging .paging-arrow {
  display: block;
  text-align: center;
  height: 2.125rem;
  line-height: 2.125rem;
  cursor: pointer;
  width: 1.25rem;
}

.kgl-map-popup-paging .arrow {
  height: 1rem;
  width: 0.67rem;
  color: var(--rev-black);
}

.kgl-map-popup-paging button.clicked-button {
  background: var(--rev-primary-color);
}

.kgl-map-popup-paging .arrow-column {
  text-align: center;
}

@keyframes kglmappopupspin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
