@import '~moda-themes';

.modal-popup-overlay .modal-popup {
  @media print, screen and (max-width: 900px) {
    box-shadow: none;
    border: none;
    background-color: inherit;
  }
}

.lookview-popup {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: row;
  max-height: 100%;
  min-height: 0;
  position: relative;
  background-color: color('white');

  @media print, screen and (max-width: 900px) {
    display: block;
    overflow: scroll;
  }

  .look-feature {
    height: auto;
    position: relative;
    width: 40%;
    margin-top: 40px;
    @media print, screen and (max-width: 900px) {
      overflow: hidden;
      width: 100%;
      max-height: 90vh;
      margin: 0px;
    }

    .trunkshow-name {
      color: color('black');
      font-size: 28px;
      position: absolute;
      top: 40%;
      margin-left: -28px;
      transform: translateX(-50%) rotate(270deg);
      white-space: nowrap;
      @media print, screen and (max-width: 900px) {
        display: none;
      }
    }

    .image-wrapper {
      width: 100%;
      height: 100%;
      display: inline-block;
      position: relative;
      img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        @media print, screen and (max-width: 900px) {
          width: 100%;
        }
      }
      @media print, screen and (max-width: 900px) {
        display: block;
        float: none;
        width: 100%;
      }
    }
  }

  .look-info {
    height: auto;
    width: 60%;
    padding: 30px 26px 0;
    position: relative;
    overflow: auto;
    margin-top: 40px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */

    &::-webkit-scrollbar {
      width: 0;
      height: 0;
    }
    @media print, screen and (max-width: 900px) {
      height: auto;
      width: 100%;
      overflow: hidden;
      padding: 0px;
      margin: 0px;
    }
    .grid {
      padding-bottom: 30px;
    }
    @media print, screen and (max-width: 900px) {
      .grid {
        padding-bottom: 0px;
        .ws-layout--float {
          width: 100%;
        }
        .grid-cell {
          width: 100%;
        }
      }
    }
    .trunkshow-details {
      padding: 20px 4px 0px;
      border-top: 1px solid color('cashmere');
      text-align: left;

      @media print, screen and (max-width: 900px) {
        padding: 4px 20px;
      }
      @media print, screen and (max-width: 360px) {
        padding: 4px 12px;
      }

      .countdown-info {
        display: flex;
        align-items: center;

        .timer-icon {
          margin-right: 4px;
          font-size: 14px;
          color: color('black');
        }
      }

      ul {
        padding-left: 16px;
        @media print, screen and (max-width: 360px) {
          font-size: 10px;
        }

        li {
          display: flex;
          align-items: center;
        }
      }

      .product-price-trunkshow-help-message {
        @media print, screen and (max-width: 900px) {
          left: -77px;
          &::after {
            left: 90%;
          }
        }
      }
    }

    .shop-more-looks {
      text-align: left;
      .shop-more-looks-headline {
        font-size: 16px;
        line-height: 1.5;
        margin: 20px 4px 0;
        @media print, screen and (max-width: 900px) {
          margin: 20px 20px 0 20px;
        }
        @media print, screen and (max-width: 360px) {
          margin: 12px 12px 0 12px;
        }
      }

      .Carousel {
        @media print, screen and (max-width: 900px) {
          margin: 10px;
        }
        .Carousel__content {
          @media print, screen and (max-width: 900px) {
            overflow: visible;
          }
        }
      }
    }
  }

  &.mobile-carousel {
    background: rgba(black, 0.7);
    flex-direction: column;
    overflow: hidden;

    .title-bar {
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 14px;
      line-height: 1.71;
      padding: 10px 20px;

      span {
        font-size: 14px;
        color: color('white');

        &.looks-count::after {
          content: '|';
          margin: 0px 10px;
        }
      }

      i {
        font-size: 16px;
        position: absolute;
        right: 20px;
        color: color('white');
      }
    }

    .Carousel {
      width: calc(100% - 60px);
      margin: 0 auto;

      .Carousel__content {
        overflow: visible;
      }

      .Carousel__item {
        padding: 0 5px;

        img {
          border-radius: 5px;
        }
      }
    }
  }
}

/*----------------------  Lookview Title Bar Styles ------------------------  */
.lookview-title-bar {
  position: absolute;
  z-index: 3;
  width: 60%;
  margin: 40px 0px 0px 40%;
  height: auto;
  color: color('black');
  background-color: color('white');
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 10px;

  @media print, screen and (max-width: 900px) {
    position: sticky;
    padding: 10px 20px;
    width: 100%;
    margin: 0px;
    top: 0px;
  }

  .title-bar-left {
    margin-right: auto;
    margin-left: 26px;

    .items-count {
      color: color('cement');
      white-space: nowrap;
      @media print, screen and (max-width: 900px) {
        display: inline-block;
        padding-left: 10px;
      }
    }

    .trunkshow-name {
      display: none;
    }

    @media print, screen and (max-width: 900px) {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-left: 0;

      .trunkshow-name {
        font-family: font-family('serif');
        display: inline-block;
        height: auto;
        padding-right: 10px;
        border-right: 1px solid color('black');
        color: color('black');
        font-size: 18px;
        line-height: 1.33;
        letter-spacing: 0.01em;
        text-transform: capitalize;
      }
    }
  }

  .title-bar-right {
    margin-left: auto;
    display: flex;
    align-items: center;

    .left-arrow {
      color: color('black');
      cursor: pointer;
      margin-right: 12px;
    }

    .right-arrow {
      color: color('black');
      cursor: pointer;
      margin: 0 30px 0px 12px;
    }

    .look-name {
      color: color('cement');
      user-select: none;
    }

    @media print, screen and (max-width: 900px) {
      margin: 32px 20px 0 0;
      display: none;
    }
  }

  .close-icon {
    display: inline-block;
    cursor: pointer;
    color: color('black');
    font-size: 14px;
    &:hover {
      text-decoration: none;
    }
    @media print, screen and (max-width: 900px) {
      font-size: 16px;
      padding-left: 10px;
    }
  }
}

/* Overwriting countdown styles */
.countdown-info {
  display: inline-block;

  .display-tooltip {
    vertical-align: -2px;
    @media print, screen and (max-width: 900px) {
      position: absolute;
    }
  }

  .countdown-timer {
    display: inline-block;
    color: color('black');
    position: relative;
    text-align: left;
    margin: 0px;

    @media print, screen and (max-width: 900px) {
      height: 8px;
      transform: translateY(-60%);
    }

    .coverline {
      font-family: font-family('sans');
      font-size: 12px;
      display: inline;
      @media print, screen and (max-width: 360px) {
        font-size: 10px;
      }
    }

    .counter {
      display: inline-block;
      min-width: 124px;
      width: 145px;
      @media print, screen and (max-width: 360px) {
        min-width: 108px;
        width: 135px;
      }

      .time-section {
        padding: 0 5px;

        &::before {
          font-size: 11px !important;
          top: 8px !important;
        }

        .number {
          font-size: 11px;
          display: inline;
          @media print, screen and (max-width: 900px) {
            font-size: 12px;
          }
          @media print, screen and (max-width: 360px) {
            font-size: 10px;
          }
        }

        .time {
          display: inline;
          font-size: 11px;
          margin-left: -3px;
          text-transform: none;
        }
      }
    }

    .has-ended {
      font-family: font-family('sans');
      margin-right: 4px;
      margin-top: 2px;
      font-size: 11px;

      @media print, screen and (max-width: 900px) {
        margin: 0 auto;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
      }

      span.has-ended-part-2 {
        font-family: font-family('sans');
        font-size: 11px;
      }
    }
  }
}
