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

.root {
  position: relative;
}

.error {
  color: var(--failColor);
  margin: 13px 0 22px 0;

  @media (--viewportMedium) {
    margin: 13px 0 23px 0;
  }
  @media (--viewportLarge) {
    margin: 12px 0 23px 0;
  }
}

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

  @media (--viewportLarge) {
    flex-direction: row;
    justify-content: center;
    max-width: 1156px; /* 1060 + (paddingLeft + paddingRight) */
    margin: 0 auto 57px auto;
    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 {
  margin-bottom: 210px;

  @media (--viewportLarge) {
    max-width: 538px;
    margin-right: 108px;
    margin-bottom: 0;
  }
}

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

  @media (--viewportMedium) {
    margin: 25px 24px 0 24px;
    max-width: 80%;
  }

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

.mainTitle {
  display: block;
}

.orderInfoText {
  margin: 18px 24px 0 24px;

  @media (--viewportMedium) {
    margin: 23px 24px 0 24px;
  }
  @media (--viewportLarge) {
    margin: 23px 0 0 0;
  }
}

.infoTextDivider {
  display: none;

  height: 1px;
  background-color: var(--matterColorNegative);
  border: none;
  margin: 37px 0 0 0;

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

.transitionDate {
  white-space: nowrap;
}

.breakdownMobile {
  margin-top: 47px;

  @media (--viewportMedium) {
    margin-top: 43px;
  }
  @media (--viewportLarge) {
    display: none;
  }
}

.breakdownDesktop {
  display: none;

  position: sticky;
  top: 24px;
  width: 409px;
  padding-bottom: 55px;
  background-color: var(--matterColorLight);
  border: 1px solid var(--matterColorNegative);
  border-radius: 2px;

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

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

.bookingBreakdownContainer {
  margin: 1px 0 0 0;

  @media (--viewportLarge) {
    margin-top: 121px;
    margin-left: 0;
    margin-right: 0;
  }
}

.breakdownHeadings {
  display: none;

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

.breakdownTitle {
  margin-bottom: 10px;

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

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

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

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

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

  margin: 0 24px 0 24px;

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

.breakdown {
  margin: 14px 24px 0 24px;

  @media (--viewportMedium) {
    margin: 18px 24px 0 24px;
  }
  @media (--viewportLarge) {
    margin: 14px 48px 0 48px;
  }
}

.feedContainer {
  margin: 46px 24px 0 24px;

  @media (--viewportMedium) {
    margin: 46px 24px 0 24px;
  }
  @media (--viewportLarge) {
    margin: 43px 0 0 0;
  }
}

.feedContainerWithInfoAbove {
  @media (--viewportLarge) {
    margin: 38px 0 0 0;
  }
}

.feedHeading {
  color: var(--matterColorAnti);
  margin: 0;

  @media (--viewportMedium) {
    margin: 0;
  }
}

.feed {
  margin-top: 17px;

  @media (--viewportMedium) {
    margin-top: 19px;
  }
}

.sendMessageForm {
  position: fixed;
  bottom: 0;
  width: 100%;
  box-shadow: var(--boxShadowBottomForm);

  @media (--viewportLarge) {
    margin-top: 47px;
    position: relative;
    box-shadow: none;
  }
}

.sendMessageFormFocusedInMobileSafari {
  position: absolute;

  @media (--viewportLarge) {
    position: relative;
  }
}
