.pika-single {
  font-family: "SpaceMyriadGeo", arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.01em;
  --day-button-size: 36px;
  z-index: 100;
  display: flex;
  position: relative !important;
  color: var(--text-color-primary);
  left: 0 !important;
  top: 0 !important;
  flex-grow: 1;
  flex-basis: 0;
  flex-shrink: 0;
  padding: 16px 0;
  min-height: 292px;

  &:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: -1;
    pointer-events: none;

    @include desktop-1280max() {
      width: 110%;
      left: 50%;
      transform: translateX(-50%);
      height: 100%;
    }
  }

  &.is-hidden {
    display: none;
    visibility: hidden;
    pointer-events: none;
  }

  .pika-lendar {
    margin: 0 auto;
    //max-width: 450px;
    width: 100%;

    .pika-title {
      //display: flex;
      position: relative;
      justify-content: center;
      align-items: center;
      height: 48px;
      margin-top: 12px;
      margin-bottom: 20px;
      display: none !important;

      .pika-label {
        font-size: 16px;
        line-height: 24px;
        letter-spacing: 0.005em;
        font-family: "SpaceMyriadGeo", arial, sans-serif;
        margin: 0 2px;

        select {
          display: none;
        }
      }

      .pika-prev,
      .pika-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 48px;
        height: 48px;
        cursor: pointer;
        border: none;
        background: none;
        color: transparent;
        user-select: none;

        .icon {
          position: relative;
          left: 50%;
          transform: translateX(-50%);
          pointer-events: none;
        }

        &:after {
          content: "";
          z-index: -1;
          background-color: var(--blue-10);
          width: 100%;
          height: 100%;
          position: absolute;
          top: 0;
          left: 0;
          border-radius: 50%;
          display: none;
          pointer-events: none;
        }

        &:hover {
          .icon svg path {
            fill: var(--blue);
          }

          &:after {
            display: block;
          }
        }
      }

      .pika-prev {
        left: 0;
      }

      .pika-next {
        right: 0;
      }
    }

    .pika-table {
      width: 100%;

      thead {
        tr {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 12px;

          th {
            width: 10.67%;
            position: relative;

            abbr {
              width: 100%;
              text-align: center;
              font-family: "SpaceMyriadGeoMtavruli", arial, sans-serif;
              color: var(--text-color-tertiary);
              border-bottom: none !important;
              text-decoration: none !important;
            }
          }
        }
      }

      tbody {
        tr {
          display: flex;
          align-items: center;
          justify-content: space-between;

          td {
            width: var(--day-button-size);
            padding-top: var(--day-button-size);
            position: relative;

            &:not(&:last-child) {
              margin-bottom: 4px;
            }

            button {
              width: 100%;
              height: 100%;
              border: none;
              background: none;
              outline: none;
              position: absolute;
              top: 0;
              left: 0;
              z-index: 1;
              cursor: pointer;
              color: inherit;
              font: inherit;
            }

            &:after {
              content: "";
              z-index: 0;
              background-color: var(--blue-10);
              width: 100%;
              height: 100%;
              position: absolute;
              top: 0;
              left: 0;
              border-radius: 50%;
              transform: scale(0);
              opacity: 0;
              transition: all 0.3s;
              pointer-events: none;
            }

            &:hover {
              &:after {
                transform: scale(1);
                opacity: 1;
              }
            }

            &.is-empty {
              pointer-events: none;
            }

            &.is-selected {
              color: var(--blue);

              &:after {
                transition: none;
                transform: scale(1);
                opacity: 1;
              }
            }

            &.is-disabled {
              button {
              }
              color: var(--text-color-tertiary);
              pointer-events: none;
            }
          }
        }
      }
    }
  }
}

@include screen-md() {
  .pika-single {
    padding: 24px 16px 8px;
    min-height: 300px;

    --day-button-size: 36px;

    .pika-lendar {
      .pika-table {
        thead {
          tr {
            padding: 0 6px;
            margin-bottom: 8px;
          }
        }
      }
    }
  }
}

@include screen-lg() {
  .pika-single {
    font-size: 16px;
    line-height: 24px;
    padding-top: 32px;
    --day-button-size: 42px;
    min-height: 348px;

    .pika-lendar {
      .pika-title {
        .pika-label {
          font-size: 18px;
          line-height: 26px;
        }
      }
    }
  }
}

//@include desktop-1440max() {
//  .pika-single {
//    font-size: 14px;
//    line-height: 20px;
//    padding: 24px 16px 8px;
//
//    --day-button-size: 36px;
//
//    .pika-lendar {
//      .pika-table {
//        thead {
//          tr {
//            padding: 0;
//            margin-bottom: 16px;
//          }
//        }
//      }
//
//      .pika-title {
//        .pika-label {
//          font-size: 16px;
//          line-height: 24px;
//        }
//      }
//    }
//  }
//}
//
//@include desktop-1280max() {
//  .pika-single {
//    padding: 32px 36px 24px;
//    min-height: 376px;
//
//    .pika-lendar {
//      .pika-table {
//        thead {
//          tr {
//
//          }
//        }
//      }
//    }
//
//  }
//}
