/* Chargers map */

#map {
    /*75px*/
    height: calc(100vh - 200px);
    width: 83%;
    margin-left: auto;
    margin-right: auto;
}

.oxy-map {
  background-color: #f6fafd;
}

#chargingStationInfo {
    cursor: pointer;
}

#banner {
  margin: -1em -4em -1em -4em;
  margin-top: 30px;
  height: 100px;
  background-color: #303030;
}

.modal {
    position: fixed;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    visibility: hidden;
    width: 100%;
    height: 100%;
    z-index: 9999999999;
}

.modal.is-visible {
    visibility: visible;
}

.modal-overlay {
  position: fixed;
  z-index: -10;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: hsla(0, 0%, 0%, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.3s, opacity 0.3s;
}

.modal.is-visible .modal-overlay {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.modal-wrapper {
  max-height: 90vh;
  overflow-y: auto;
  width: 600px;
  background-color: #fff;
  box-shadow: 0 0 1.5em hsla(0, 0%, 0%, 0.35);
}

.modal-transition {
  transition: all 0.3s 0.12s;
  transform: translateY(-10%);
  opacity: 0;
}

.modal.is-visible .modal-transition {
  transform: translateY(0);
  opacity: 1;
}

.modal-header {
    background-color: #09adb6;
    display: flex;
    justify-content: center;
    color: white;
}

.modal-heading {
    font-size: 18px;
    color: white;
}

.modal-close {
    all: unset;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 30px;
}

.modal-header,
.modal-content {
  padding: 1em 4em 1em 4em;
}

#hours-header, #localization-header, #update-header, #payment-header, #provider-header {
  text-align: left;
}

#hours-content, #localization-content, #update-header, #payment-content, #provider-content {
  align-self: center;
  white-space: nowrap;
  text-align: right;
}

@media (max-width: 991px) {
  #map {
    width: 100%;
    height: calc(70vh - 75px);
  }

  #link_button-31-87 {
    display: none;
  }

  #_header_center-26-87 {
    justify-content: flex-end;
  }
}

@media (max-width: 550px) {
  .modal-wrapper {
      align-self: center;
      width: 300px !important;
  }

  .modal-header,
  .modal-content {
      top: 150px;
      padding: 1em 1em 1em 1em;
  }
  #banner {
      margin: -1em -1em -1em -1em;
      margin-top: 50px;
  }

  #address, #voivodeship, #modal-hours-bar, #modal-localization-bar, #modal-update-bar, #modal-payment-bar, #modal-provider-header {
      padding: 5px 0px 5px 0px;
  }

  #hours-header, #localization-header, #update-header, #payment-header, #provider-header {
      text-align: left;
  }

  #hours-content, #localization-content, #update-header, #payment-content, #provider-content {
      align-self: center;
      white-space: nowrap;
  }

  .modal-middle-bar {
    margin-left: 0px !important;
  }

  #hours, #localization, #payment, #update, #provider {
    margin-left: 0px !important;
  }

  #charger-icon {
    display: none;
  }

  #address, #voivodeship {
    margin-left: 0px !important;
  }

  .modal-close {
    top: 0px;
    right: 5px;
    font-size: 24px;
  }

  #modal-buttons {
    justify-content: center !important;
  }
}

.modal-content-top {
  width: 50%;
  height: 3em;
}

#charger-icon {
  align-self: center;
}

#modal-address-bar {
  flex-grow: 1;
}

#modal-top-bar {
  display: flex;
  padding-bottom: 10px;
  border-bottom: 1px solid #09adb6;
}

.modal-middle-bar {
  margin-top: 10px;
  margin-left: 55px;
  margin-bottom: 10px;
}

.modal-bar-inner {
  display: flex;
  justify-content: space-between;
  text-align: right;
}

#address, #voivodeship {
  margin-left: 20px;
}

#hours {
    margin-top: 25px;
}

#hours, #localization, #payment, #update, #provider {
  margin-left: 55px;
}

#modal-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: end;
  gap: 10px;
}

#navigate-button {
  padding: 10px 20px 10px 20px;
  background-color: #09adb6;
  color: white;
  transition: background-color 0.2s ease-out;
}

#share-button {
    padding: 10px 20px 10px 20px;
    border: 1px solid #09adb6;
    color: #09adb6;
    transition: background-color 0.2s ease-out;
    cursor: pointer;
}

#navigate-button:hover {
    background-color: #0fd4df;
}

#share-button:hover {
    background-color: #e3effaea;
}

/* Chargers listing */

#cl-search {
    display: none;
}

#cl-search-box {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

#cl-filter-box {
  width: 75%;
  display: flex;
  gap: 20px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

#cl-search-bar {
    border: none;
    border-top: 1px solid #09adb6;
    border-left: 1px solid #09adb6;
    border-bottom: 1px solid #09adb6;
    text-align: center;
    width: 50%;
    height: 3em;
}

#cl-search-bar:focus {
    outline: none;
}

#cl-search-button {
    background-color: #09adb6;
    width: 3em;
    height: 3em;
    color: white;
    border: none;
    cursor: pointer;
}

#cl-clear-button {
    background-color: #be3249;
    width: 3em;
    height: 3em;
    color: white;
    border: none;
    cursor: pointer;
}

#cl-search-button:hover {
    background-color: #2a445a;
}

#cl-clear-button:hover {
  background-color: #861729;
}

#cl-list-container {
    display: none;
}

#cl-list {
    display: flex;
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 80px;
    justify-content: center;
    flex-direction: column;
}

.cl-charger-bar {
    border-bottom: 1px solid #09adb6;
    display: flex;
    width: 100%;
    padding: 1em 2em 1em 2em;
    justify-content: space-between;
    transition: background-color 0.2s ease-out;
}

.cl-charger-bar:hover {
  background-color: #e3effaea;
  cursor: pointer;
}

.cl-charger-icon {
    display: flex;
    padding: 0em 2em 0em 2em;
    align-items: center;
}

.cl-charger-description {
    width: 50em;
    text-align: left;
}

.cl-charger-address {
    width: 30em;
    text-align: left;
}

.cl-charger-address, .cl-charger-description {
    display: flex;
    align-items: center;
    padding: 0em 4em 0em 4em;
    text-align: left;
}

.cl-icons {
    display: flex;
    gap: 1em;
    align-items: center;
}

.cl-icon {
    font-size: 24px;
    color: #09adb6;
}

.cl-icon > a {
    cursor: pointer;
}

#cl-navigation {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    padding: 0em 4em 2em 0em;
    gap: 10px;
}

.cl-navigation-button {
    display: flex;
    border: 1px solid #09adb6;
    color: #09adb6;
    width: 3em;
    height: 3em;
    justify-content: center;
    align-items: center;
}

.cl-navigation-button:hover {
    cursor: pointer;
    border: 1px solid #2a445a;
}

.cl-navigation-button-active {
    border: 1px solid #2a445a;
    color: #2a445a;
}

.cl-navigation-separator {
    display: flex;
    color: #09adb6;
    font-size: 24px;
    justify-content: flex-end;
    align-items: flex-end;
}

.cl-charger-bar-header {
    transition: none !important;
}

.cl-charger-bar-header:hover {
    background-color: white;
    cursor: default;
}

@media (max-width: 991px) {
    .cl-charger-bar-header {
      display: none;
    }

    .cl-charger-bar {
        flex-direction: column;
        gap: 20px;
        padding: 1em 0em 1em 0em;
    }

    .cl-charger-icon, .cl-charger-address, .cl-charger-description, .cl-icons {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}