@import "variables";

.epaka-map{
  .epaka-d-flex{
    display: flex;
  }

  .epaka-flex-column{
    flex-direction: column;
  }

  .epaka-d-block{
    display: block;
  }

  .epaka-ml-auto{
    margin-left: auto;
  }

  .epaka-mr-auto{
    margin-right: auto;
  }

  .epaka-w-100 {
    width: 100% !important;
  }

  .mapLoadingSplash{
    z-index: 99999!important;
  }

  .epaka-pl-leaflet-map-container {
    height: 100%;
    position: relative;
    z-index: 2147483646;

    .controls {
      position: absolute;
      width: 0;
      height: 100%;
      right: 0;
      top: 0;
      z-index: 2147483647;

      .top {
        position: absolute;
        top: 0;
        right: 1rem;
      }

      .bottom {
        position: absolute;
        bottom: 1rem;
        right: 1rem;
      }

      .background {
        margin-top: 1rem;
        padding: 10px;
        border-radius: 25px;
        background-color: white;

        .separator {
          height: 18px;
        }
      }

      .locationMobile {
        display: flex;
        flex-direction: row;
        padding: 0;
        margin-bottom: 15px;
        margin-right: 10px;
        background-color: white;
        color: black;
        white-space: nowrap;
        border-radius: 16px;
        font-size: 14px;

        span {
          padding: 7px 10px 7px 5px;
        }

        .controlButton {
          display: inline-block;
        }
      }

      .controlButton {
        display:flex!important;
        justify-content: center;
        align-content: center;
        width: 1.875rem;
        height: 1.875rem;
        line-height: 1.875rem;
        border-radius: 50%;
        background-color: black;
        padding: 0;
        margin: 0;
        text-align: center;
        cursor: pointer;
        border: 0;

        &.bgBlue{
          background-color: #4B86FA;
        }

        img {
          //margin-top: -0.1rem;
          max-width: 80%;
        }

        .controlIcon {
          position: relative;
          color: white;
          font-style: normal;
          font-size: 1.425rem;
        }
      }
    }
  }

  .mapMainBox {
    display: flex;
    flex-flow: column;
    width: 100%;

    .searchArea {
      @media (max-width: $beforeBreakPointMd) {
        width: 100%;
      }

      @media (min-width: $breakPointMd) {
        width: 32.5rem;
      }

      position: absolute;
      top: 0;
      left: 0;
      padding-top: 1.25rem;
      padding-left: 2rem;
      padding-right: 2rem;
      z-index: 1000;
      display: flex;
      flex-flow: row;
      background-color: transparent;
      transition: background-color 200ms ease-in-out;
    }
  }

  .searchAreaFullscreen {
    @media (max-width: $beforeBreakPointMd) {
      width: 100%!important;
      background-color: white!important;
      height: 100vh!important;
      z-index: 2147483647 !important;
    }
  }

  .mapArea {
    flex: 1;
    margin-bottom: -5px;
    width: 100%;
    z-index: 1;

    .userLocationMarkerWrapper {
      width: 1.875rem !important;
      height: 1.875rem !important;
      line-height: 1.875rem;
      border-radius: 50%;
      background-color: var(--epaka-color-blue);
      text-align: center;
      .userLocationMarker {
        margin-top: 0.2rem;
        margin-left: 0.2rem;
      }
    }
  }

  .listArea {
    background-color: white;
    border-radius: 5px;
    bottom: 0;
    width: 100%;
    z-index: 2147483646!important;
    position: relative;
    padding: 12px 0 0 0;
    //padding: 12px 12px 0px 12px;
    flex-direction: column;

    .listHandle {
      width: 165px;
      height: 8px;
      background-color: var(--epaka-color-gray-300);
      border-radius: 4px;
      margin-left: auto;
      margin-right: auto;
      margin-bottom: 16px;
    }

    .listContents {
      flex: 1;
      box-sizing: border-box;
    }
  }

  .epakaBtnMobileWrapper{
    margin-top: 0.8rem;
  }

  .pointsList{
    overflow-y: scroll;
    height: 98.5%;
  }

  .listAreaState0 {
    // transition: height 200ms ease-in-out;
    height: 40px;
  }
  .listAreaState05 {
    // transition: height 200ms ease-in-out;
    height: 110px;
  }
  .listAreaState1 {
    // transition: height 200ms ease-in-out;
    height: 50%;
  }
  .listAreaState2 {
    // transition: height 200ms ease-in-out;
    height: calc(100% - 118px);
  }



  .back {
    width: 3.14rem;
    height: 2.833rem;
    padding-top: 0.5rem;
    padding-left: 0.3rem;
    margin-top: 0.667rem;
    margin-right: 1.083rem;
    border: 0;
    text-align: center;

    img {
      margin-top: -50%;
      margin-left: -50%;
    }
  }

  .autocompleteListMapContainer {
    position: relative;
    width: 100%;
    height: 0;
    z-index: 10;
    margin-top: 1.667rem;
  }

  .autocompleteListModalContainer {
    position: relative;
    width: 100%;
    max-width: 265px;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 10;
  }

  .autocompleteMapList {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 5px 0px 5px 0px;

    @media (min-width: $breakPointMd) {
      background-color: white;
      border: 1px solid black;
      border-radius: 0.833rem;
    }

    @media (max-width: $breakPointMd) {
      height: 90vh!important;
    }
  }

  .scroll-y{
    overflow-y: scroll;
    &::-webkit-scrollbar {
      width: 5px;
      border-radius: 10px;
    }
    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 10px;
    }
    &::-webkit-scrollbar-thumb {
      background: #a1a1a1;
      border-radius: 10px;
    }
    &::-webkit-scrollbar-thumb:hover {
      background: #727272;
      border-radius: 10px;
    }
  }

  .autocompleteInactive {
    color: var(--color-error);
    font-size: 1.333rem;
    text-align: center;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;

    img {
      display: block;
      margin-left: auto;
      margin-right: auto;
    }
  }

  .autocompleteModalList {
    width: 100%;
    padding: 5px 0px 5px 0px;
  }

  .autocompleteListHeader {
    padding: 14px 15px;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: var(--epaka-color-gray);
  }

  .autocompleteListElement {
    cursor: pointer;
    padding: 14px 15px;
    font-size: 14px;
    line-height: 18px;
    color: var(--epaka-color-black-400);
  }

  .popup {
    min-width: 20.667rem;
    margin-bottom: 0;
    opacity: 1 !important;

    [class='leaflet-popup-content-wrapper'] {
      transition: opacity 250ms ease-in-out;
      transition-delay: 220ms;
      position: relative;
      left: 50%;
      border-radius: 8px;
      box-shadow: 0px -4px 16px var(--epaka-color-black-a15);
      padding: 8px;
      font-weight: 700;
      font-size: 14px;
      line-height: 18px;
      border: 2px solid var(--epaka-color-primary, #E94F50);
      background: var(--epaka-color-primary-active, #FCE3E3);

      [class='leaflet-popup-content'] {
        margin: 0;
        color: var(--epaka-color-black-400, #121212);
        font-family: Mulish;
        font-size: 1rem;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
        display: flex;
        flex-direction: column;
        gap: 0.667rem;
      }
    }

    [class='leaflet-popup-tip-container'] {
      display: none;
    }
  }

  .popup:last-child {
    visibility: hidden;
    [class='leaflet-popup-content-wrapper'] {
      opacity: 0;
    }
  }

  .popup:first-child {
    visibility: visible;
    [class='leaflet-popup-content-wrapper'] {
      opacity: 1;
    }
  }

  .searchIcon {
    width: 26px;
    margin-right: 10px;
    text-align: center;
  }

  .icon-iks {
    width: 20px;
    color: black;
    cursor: pointer;
  }

  .mapSearchInput {
    > label {
      font-size: 1.167rem!important;
      font-style: normal!important;
      font-weight: 400!important;

      > p {
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
  }

  .mapSearchInputBackImg{
    margin: 13px 7px;
  }

  .mapFilterSpinnerText {
    font-weight: 700;
    font-size: 1.17rem;
    text-align: center;
    color: var(--epaka-color-black-400);
  }

  .autocompleteSpinnerContainer {
    text-align: center;
  }

  .circle {
    height: 42px;
    width: 42px;
    background-color: rgba(253, 156, 115, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    .innerCircle{
      background-color: rgba(253,156,115,0.6);
      border-radius: 50%;
      height: 35px;
      width: 35px;
      display: flex;
      align-items: center;
      justify-content: center;
      span{
        font-size: 0.75rem;
      }
    }
  }

  .filters {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid var(--epaka-color-gray-100);
    padding-bottom: 14px;
    margin: 0px 15px;

    @media (min-width: $breakPointMd) {
      padding-top: 14px;
    }

    .label {
      font-size: 20px;
      color: var(--epaka-color-gray);
      padding-right: 20px;
    }

    .checkbox {
      font-size: 16px;
      margin-right: 10px;
    }
  }

  .filterParcelLockerIconWrapper{
    display: flex!important;
    width: 1.5rem;
    height: 1.5rem;
    justify-content: center;
    align-items: center;
  }

  .filterPointIconWrapper{
    display: flex!important;
    width: 1.5rem;
    height: 1.5rem;
    padding: 1.5px 0 0 3.75px;
    justify-content: center;
    align-items: center;
  }

  .noPointsInViewSnackbar{
    color: #FFF;
    display: flex;
    padding: 0.833rem 0;
    margin: 0.5rem 1.333rem;
    justify-content: center;
    align-items: baseline;
    border-radius: 8px;
    background: #4B86FA;
  }

  .noPointsInViewSnackbarIcon{
    font-size: 18px;
  }

  .noPointsInViewSnackbarText{
    margin-left: 0.833rem;
  }

  .noPointsInViewLabel{
    color: #6D6D6D;
    margin: 0.5rem 0.667rem;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
  }

  .list {
    max-height: 50vh;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .punktSzczegolyWrapper{
    padding: 12px 12px;
  }

  .punktSzczegolyOverlay{
    padding: 6px 11.5px;
    border: 1px solid #E94F50;
    border-radius: 8px;
    background: #FCE3E3;
  }

  .epaka-active{
    border-radius: 10px;
    border: 2px solid #E94F50;
    background: #FCE3E3;
  }

  .epaka-punktPadding{
    padding: 0.5835rem;
    margin: 0.5835rem;
  }

  .epaka-punkt {
    color: var(--epaka-color-black-400);
    line-height: 1.5rem;
    border-bottom: 1px solid #EBEBEB;

    .punktAddress {
      display: flex;
      flex-flow: column;
      position: relative;
      line-height: normal;
      font-style: normal;
      font-weight: 400;
      font-size: 0.875rem;
      padding-top: 0.333rem;
      cursor: pointer;
    }

    .punktTitle {
      display: flex;
      flex-flow: row;
      position: relative;
      line-height: 18px;
      font-weight: bold;
      font-size: 0.875rem;
      cursor: pointer;
      align-items: center;

      .punktIkona {
        width: 1.5rem;
        height: 1.5rem;
        margin-right: 0.1rem;
      }

      .punktTitleText{
        margin: 0 0.2rem;
      }
    }

    .punktInfoClickable {
      cursor: pointer;
    }

    .punktInfoNoIcon {
      padding-left: 0 !important;
    }
  }

  //.expand {
  //  font-weight: 700;
  //  text-decoration: underline;
  //  cursor: pointer;
  //}

  .epaka-return {
    font-size: 1.333rem;
    color: var(--epaka-color-gray);
    font-weight: 400;
    cursor: pointer;
    margin-top: 1px;
    margin-left: 3px;
    padding: 0 12px;

    i {
      font-size: 0.9rem;
      position: relative;
      top: -0.2rem;
    }
  }

  .epaka-separator {
    margin-top: 12px;
    margin-bottom: 12px;
    border-color: var(--epaka-color-gray-100);
  }

  .epakaBtn {
    display: flex;
    align-content: center;
    justify-content: center;
    width: 100%;
    background-color: var(--epaka-color-black);
    box-shadow: 0px 4px 16px var(--epaka-color-black-a15);
    border-radius: 10px;
    position: relative;
    height: 3rem;
    border: 0;
    cursor: pointer;
    transition: background-color 150ms;
    -webkit-transition: background-color 150ms;
    -moz-transition: background-color 150ms;
    -ms-transition: background-color 150ms;
    -o-transition: background-color 150ms;

    @media (pointer: fine) {
      &:not(.locked):hover {
        background-color: var(--epaka-color-gray-900);
      }
    }

    &:focus {
      outline: 0;
    }

    &:active {
      background-color: var(--epaka-color-gray-800);
    }

    img {
      z-index: 2;
    }

    .label {
      font-style: normal;
      font-weight: 700;
      color: var(--epaka-color-white);
      letter-spacing: -0.02em;
      font-size: 1.125rem;
    }

    i {
      position: absolute;
      right: 1.667rem;
    }

    &::before {
      content: '';
      background-color: #fff;
      opacity: 0;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: -1;
      transition: all 0.3s ease-in-out;
      -webkit-transition: all 0.3s ease-in-out;
      -moz-transition: all 0.3s ease-in-out;
      -ms-transition: all 0.3s ease-in-out;
      -o-transition: all 0.3s ease-in-out;
    }
    &.locked {
      &::before {
        z-index: 1;
        opacity: 0.5;
      }
    }

    &.disabled {
      background-color: var(--epaka-color-gray-200);

      &:hover,
      &:active {
        background-color: none;
      }

      & .label {
        color: var(--epaka-color-gray);
      }
    }
    &.bg-green {
      background-color: var(--epaka-color-green-700);
    }
  }
}
