@import '../../marketplace.css';

.root {
  position: relative;
}

.container {
  display: flex;
  flex-direction: column;

  @media (--viewportLarge) {
    flex-direction: row;
    justify-content: center;
    max-width: 1156px; /* 1060 + (paddingLeft + paddingRight) */
    margin: 0 auto 60px;
    padding: 0 48px;
  }
}

.imageWrapperMobile {
  /* Layout */
  display: block;
  width: 100%;
  position: relative;

  @media (--viewportLarge) {
    display: none;
  }
}

/* Firefox doesn't support image aspect ratio inside flexbox */
.aspectWrapper {
  padding-bottom: 66.6667%; /* 3:2 Aspect Ratio */
  background-color: var(--matterColorNegative); /* Loading BG color */
}

.rootForImage {
  /* Layout - image will take space defined by aspect ratio wrapper */
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;

  @media (--viewportLarge) {
    border-radius: 2px 2px 0 0;
  }
}

.avatarWrapper {
  /* Position (over the listing image)*/
  margin-left: 24px;
  margin-top: -31px;

  /* Rendering context to the same lavel as listing image */
  position: relative;

  /* Layout */
  display: block;

  @media (--viewportLarge) {
    margin-left: 48px;
  }
}

.avatarMobile {
  @media (--viewportLarge) {
    display: none;
  }
}

.orderInfo {
  @media (--viewportLarge) {
    max-width: 519px;
    margin-right: 132px;
  }
}

.heading {
  margin: 28px 24px 0 24px;

  @media (--viewportMedium) {
    max-width: 80%;
  }

  @media (--viewportLarge) {
    max-width: 100%;
    margin: 177px 0 0 0;
  }
}

.mainTitle {
  display: block;
}

.messagesContainer {
  display: flex;
  flex-direction: column;
}

.message {
  display: flex;
  margin: 24px 24px 47px 24px;

  @media (--viewportLarge) {
    margin: 31px 0 0 0;
    line-height: 32px;
  }
}

.transitionDate {
  white-space: nowrap;
}

.breakdownMobile {
  @media (--viewportLarge) {
    display: none;
  }
}

.breakdownDesktop {
  display: none;

  @media (--viewportLarge) {
    width: 409px;
    display: block;
    padding-bottom: 55px;
  }
}

.breakdownImageWrapper {
  /* Layout */
  display: block;
  width: 100%;
  position: relative;
}

.bookingBreakdownContainer {
  margin: 1px 0 0 0;

  @media (--viewportLarge) {

    margin-top: 122px;
    margin-left: 0;
    margin-right: 0;
    background-color: var(--matterColorLight);
    border: 1px solid var(--matterColorNegative);
    border-radius: 2px;
  }
}

.breakdownHeadings {
  display: none;

  @media (--viewportLarge) {
    display: block;
    margin-left: 48px;
    margin-right: 48px;
  }
}

.breakdownTitle {
  margin-bottom: 10px;

  @media (--viewportLarge) {
    margin-top: 13px;
    margin-bottom: 0;
  }
}

.breakdownSubtitle {
  @apply --marketplaceH5FontStyles;
  color: var(--matterColorAnti);

  margin-top: 0;
  margin-bottom: 0;

  @media (--viewportLarge) {
    margin-top: 0;
    margin-bottom: 0;
  }
}

.bookingBreakdownTitle {
  /* Font */
  color: var(--matterColorAnti);

  margin-top: 5px;
  margin-bottom: 14px;
  margin-left: 24px;
  margin-right: 24px;

  @media (--viewportLarge) {
    margin-top: 38px;
    margin-bottom: 25px;
    margin-left: 48px;
    margin-right: 48px;
  }
}

.receipt {
  margin-left: 24px;
  margin-right: 24px;

  @media (--viewportLarge) {
    margin-left: 48px;
    margin-right: 48px;
  }
}
