@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-simple-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-simple-price-color;

  align-items: baseline;

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

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

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

  text-align: right;

  color: $catalog-simple-price-from-color;

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

  &--preventFixSize {
    width: auto;
  }
}

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

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

  flex-direction: row;

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

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

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