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

.rc-catalog-simple-price {
  display: flex;

  flex-direction: column;

  align-items: flex-start;

  white-space: nowrap;

  font-size: $catalog-price-base-font-size;

  &--centered {
    align-items: center;
  }

  &--right {
    align-items: flex-end;
  }
}

.rc-catalog-simple-price__line {
  display: flex;
  flex-direction: row;

  color: $catalog-price-color;

  align-items: baseline;

  &--secondary {
    font-size: $catalog-price-secondary-font-size;
  }
}

.rc-catalog-simple-price__prefix {
  width: $catalog-price-from-width;

  padding-right: $catalog-price-from-padding;

  text-align: right;

  color: $catalog-price-from-color;

  font-size: $catalog-price-secondary-font-size;

  &--preventFixSize {
    width: auto;
  }
}

.rc-catalog-simple-price__period {
  font-size: $catalog-price-secondary-font-size;
}

.rc-catalog-simple-price__discount {
  display: flex;

  flex-direction: row;

  font-size: $catalog-price-discount-font-size;
}

.rc-catalog-simple-price--inheritFontSize {
  font-size: inherit;

  .rc-catalog-simple-price,
  .rc-catalog-simple-price__line,
  .rc-catalog-simple-price__prefix,
  .rc-catalog-simple-price__period,
  .rc-catalog-simple-price__discount {
    font-size: inherit;
  }
}

.rc-catalog-simple-price__old-price {
  color: $catalog-simple-old-price-color;
}

.rc-catalog-simple-price__discount-amount {
  color: $catalog-price-from-color;
}