@import "../variables/colors";
@import "../variables/dimensions";

.rc-catalog-list-details__content {
  display: flex;
  flex-direction: row;
}

.rc-catalog-list-details.narrow .rc-catalog-list-details__content {
  flex-direction: column;
}

.rc-catalog-list-details.narrow .rc-catalog-list-details__right {
  width: 100%;
  max-width: 100%;
}

.rc-catalog-list-details__description-container {
  display: flex;
  flex-grow: 1;

  width: 100%;

  padding: $catalog-list-item-padding $catalog-list-item-description-padding-right $catalog-list-item-padding $catalog-list-item-padding;

  border-right: 1px solid $catalog-list-item-border-color;
}


.rc-catalog-list-details.narrow .rc-catalog-list-details__description-container {
  border-bottom: 1px solid $catalog-list-item-border-color;
  border-right: none;
  padding: $catalog-list-item-padding;
}

.rc-catalog-list-details__titlebar {
  padding: $catalog-list-item-padding;
  font-size: $font-size-subheading;
  border-bottom: 1px solid $catalog-list-item-border-color;
}

.rc-catalog-list-details__right {
  display: flex;

  flex-direction: column;
  flex: none;

  padding: $catalog-list-item-padding-right 0;

  min-width: 265px + ($catalog-list-item-padding * 3);
  max-width: 33%;
}

.rc-catalog-list-details__price-container {
  display: flex;

  flex-direction: column;
  flex-grow: 1;

  justify-content: center;
}

.rc-catalog-list-details__actions {
  padding: $catalog-list-details-actions-padding $catalog-list-item-padding;

  border-top: 1px solid $catalog-list-item-border-color;
}

.rc-catalog-list-details__description-heading {
  font-weight: bold;
}

.rc-catalog-list-details__description-wrap,
.rc-catalog-list-details__description-heading-wrap {
  width: 100%;
}
